>xabsl
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> own-team-scored
>>>
initial
>>>
scored1
>>>
scored2
>>>
scored3
>>>
scored4
>>>
finished
Option own-team-scored
The own team just scored a goal
State Machine
This browser can't display the SVG file
svg/option_own-team-scored.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State initial
If that state is active,
>
The basic behavior
stand
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_own-team-scored_state_initial.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
if
(
random
< 0.25
)
// chance of 1/4
{
transition-to-state(
scored1
);
}
else if
(
random
< 0.333
)
// chance of 1/3
{
transition-to-state(
scored2
);
}
else if
(
random
< 0.5
)
// chance of 1/2
{
transition-to-state(
scored3
);
}
else
{
transition-to-state(
scored4
);
}
State scored1
If that state is active,
>
The basic behavior
special-action
is executed. Parameters:
special-action-id
=
special-action.cheer-happy1
;
The decision tree:
This browser can't display the SVG file
svg/option_own-team-scored_state_scored1.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
if
(
time-of-state-execution
> 5000
)
// after 5 seconds
{
transition-to-state(
finished
);
}
else
{
transition-to-state(
scored1
);
}
State scored2
If that state is active,
>
The basic behavior
special-action
is executed. Parameters:
special-action-id
=
special-action.cheer-happy2
;
The decision tree:
This browser can't display the SVG file
svg/option_own-team-scored_state_scored2.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
if
(
time-of-state-execution
> 5000
)
// after 5 seconds
{
transition-to-state(
finished
);
}
else
{
transition-to-state(
scored2
);
}
State scored3
If that state is active,
>
The basic behavior
special-action
is executed. Parameters:
special-action-id
=
special-action.cheer-happy3
;
The decision tree:
This browser can't display the SVG file
svg/option_own-team-scored_state_scored3.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
if
(
time-of-state-execution
> 5000
)
// after 5 seconds
{
transition-to-state(
finished
);
}
else
{
transition-to-state(
scored3
);
}
State scored4
If that state is active,
>
The basic behavior
special-action
is executed. Parameters:
special-action-id
=
special-action.cheer-happy4
;
The decision tree:
This browser can't display the SVG file
svg/option_own-team-scored_state_scored4.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
if
(
time-of-state-execution
> 5000
)
// after 5 seconds
{
transition-to-state(
finished
);
}
else
{
transition-to-state(
scored4
);
}
State finished
This state is a target state.
If that state is active,
>
The basic behavior
stand
is executed.
>
These output symbols are set:
head-control-mode
=
head-control-mode.search-for-landmarks
The decision tree:
This browser can't display the SVG file
svg/option_own-team-scored_state_finished.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
transition-to-state(
finished
);