Option playing-defensive-supporter

The defensive supporter playing

State Machine

This browser can't display the SVG file svg/option_playing-defensive-supporter.svg.



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

State position-near-ball

If that state is active,
 >  The option position-supporter-near-ball is executed. Parameters:
 
    position-supporter-near-ball.x  =  -600 ;
    position-supporter-near-ball.y  =  0 ;
 
 >  These output symbols are set:
 
    head-control-mode  =  head-control-mode.search-auto
 
The decision tree:
  This browser can't display the SVG file svg/option_playing-defensive-supporter_state_position-near-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:
 
if (the-striker-is-playing-near-the-own-goal)   // striker plays near the own goal
{
  
transition-to-state(position-near-own-goal);
}
else
{
  
if (ball.known.x > 200)   // ball in opponent half
{
  
transition-to-state(ball-in-opponent-half);
}
else if (ball.known.distance < 1000)   // near-ball
{
  
transition-to-state(position-near-ball);
}
else
{
  
transition-to-state(get-to-far-ball);
}
}

State get-to-far-ball

If that state is active,
 >  The option get-to-ball-and-avoid-obstacles is executed.
 
 >  These output symbols are set:
 
    head-control-mode  =  head-control-mode.search-auto
 
The decision tree:
  This browser can't display the SVG file svg/option_playing-defensive-supporter_state_get-to-far-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:
 
if (the-striker-is-playing-near-the-own-goal)   // striker plays near the own goal
{
  
transition-to-state(position-near-own-goal);
}
else
{
  
if (ball.known.x > 200)   // ball in opponent half
{
  
transition-to-state(ball-in-opponent-half);
}
else if (ball.known.distance < 800)   // near-ball
{
  
transition-to-state(position-near-ball);
}
else
{
  
transition-to-state(get-to-far-ball);
}
}

State ball-in-opponent-half

If that state is active,
 >  The option position-supporter-on-line is executed. Parameters:
 
    position-supporter-on-line.x  =  -1000 ;
 
The decision tree:
  This browser can't display the SVG file svg/option_playing-defensive-supporter_state_ball-in-opponent-half.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 (the-striker-is-playing-near-the-own-goal)   // striker plays near the own goal
{
  
transition-to-state(position-near-own-goal);
}
else
{
  
if (ball.known.x < -200)   // ball in own half
{
  
transition-to-state(get-to-far-ball);
}
else
{
  
transition-to-state(ball-in-opponent-half);
}
}

State position-near-own-goal

If that state is active,
 >  The option position-defensive-supporter-near-own-goal is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_playing-defensive-supporter_state_position-near-own-goal.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 (the-striker-is-playing-near-the-own-goal)   // striker plays near the own goal
{
  
transition-to-state(position-near-own-goal);
}
else
{
  
if (the-striker-is-not-playing-near-the-own-goal)   // striker plays not near the own goal
{
  
transition-to-state(position-near-ball);
}
else
{
  
transition-to-state(position-near-own-goal);
}
}