>xabsl 2
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> opponent-team-scored
>>>
initial
>>>
jaul1
>>>
jaul2
>>>
jaul3
>>>
jaul4
>>>
finished
Option opponent-team-scored
The opponent team just scored a goal
State Machine
This browser can't display the SVG file
svg/option_opponent-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_opponent-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(
jaul1
);
}
else if
(
random
< 0.333
)
// chance of 1/3
{
transition-to-state(
jaul2
);
}
else if
(
random
< 0.5
)
// chance of 1/2
{
transition-to-state(
jaul3
);
}
else
{
transition-to-state(
jaul4
);
}
State jaul1
If that state is active,
>
The basic behavior
special-action
is executed. Parameters:
special-action-id
=
special-action.cheer-sad1
;
The decision tree:
This browser can't display the SVG file
svg/option_opponent-team-scored_state_jaul1.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(
jaul1
);
}
State jaul2
If that state is active,
>
The basic behavior
special-action
is executed. Parameters:
special-action-id
=
special-action.cheer-sad2
;
The decision tree:
This browser can't display the SVG file
svg/option_opponent-team-scored_state_jaul2.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(
jaul2
);
}
State jaul3
If that state is active,
>
The basic behavior
special-action
is executed. Parameters:
special-action-id
=
special-action.cheer-sad3
;
The decision tree:
This browser can't display the SVG file
svg/option_opponent-team-scored_state_jaul3.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(
jaul3
);
}
State jaul4
If that state is active,
>
The basic behavior
special-action
is executed. Parameters:
special-action-id
=
special-action.cheer-sad4
;
The decision tree:
This browser can't display the SVG file
svg/option_opponent-team-scored_state_jaul4.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(
jaul4
);
}
State finished
This state is a target state.
If that state is active,
>
The basic behavior
stand
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_opponent-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
);