Option defender

Waits behind the ball

State Machine

This browser can't display the SVG file svg/option_defender.svg.



The Adobe SVG Viewer 3.0 can be downloaded from http://www.adobe.com/svg/viewer/install/main.html

State own_team_has_ball

If that state is active,
 >  The basic behavior go_to is executed. Parameters:
    go_to.x  =  (ball.x() + 12) ;
    go_to.y  =  ball.y() ;
 
The decision tree:
  This browser can't display the SVG file svg/option_defender_state_own_team_has_ball.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:
 
/** opponent team has ball */
if ( most_westerly_teammate.x() < ball.x() )
{
  
goto opponent_team_has_ball;
}
else
{
  
stay;
}

State opponent_team_has_ball

If that state is active,
 >  The basic behavior go_to is executed. Parameters:
    go_to.x  =  (ball.x() + 10) ;
    go_to.y  =  ball.y() ;
 
The decision tree:
  This browser can't display the SVG file svg/option_defender_state_opponent_team_has_ball.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 has ball */
if ( most_westerly_teammate.x() >= ball.x() )
{
  
goto own_team_has_ball;
}
else
{
  
stay;
}