>xabsl
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> display_kickoff
>>>
own
>>>
opponent
Option display_kickoff
Use the yellow back led to display the kickoff team
State Machine
This browser can't display the SVG file
svg/option_display_kickoff.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State own
If that state is active,
>
This enumerated output symbol is set:
leds.back_middle_orange
=
leds.blink.llll
The decision tree:
This browser can't display the SVG file
svg/option_display_kickoff_state_own.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:
/** own team color is red */
if
(
game.own_team_color
()
==
game.kickoff_team
()
)
{
goto
own
;
}
else
{
/** own team color is blue */
if
(
!(
game.own_team_color
()
==
game.kickoff_team
()
)
)
{
goto
opponent
;
}
else
{
stay;
}
}
State opponent
If that state is active,
>
This enumerated output symbol is set:
leds.back_middle_orange
=
leds.blink.oooo
The decision tree:
This browser can't display the SVG file
svg/option_display_kickoff_state_opponent.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:
/** own team color is red */
if
(
game.own_team_color
()
==
game.kickoff_team
()
)
{
goto
own
;
}
else
{
/** own team color is blue */
if
(
!(
game.own_team_color
()
==
game.kickoff_team
()
)
)
{
goto
opponent
;
}
else
{
stay;
}
}