Option pass_player

Pass-Player for Pass Playing Challenge 2007 decides role for passings

State Machine

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



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

State pass_sender

This state has a capacity of 1. Only 1 of the cooperating agents that are executing this option can enter it at the same time.



If that state is active,
 >  This decimal output symbol is set:
    strategy.sync_ticks  = 
0
 >  This enumerated output symbol is set:
    strategy.role  = 
strategy.role.striker
 >  The option estimate_time_to_reach_ball_for_pass_challenge is executed.
 >  The option pass is executed. Parameters:
    pass.sender  =  true ;
 
The decision tree:
  This browser can't display the SVG file svg/option_pass_player_state_pass_sender.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 ( strategy.estimated_time_to_reach_ball > (strategy.min_teammate_time_to_reach_ball() + 1000))
{
  
goto wait;
}
else
{
  
stay;
}

State pass_receiver

If that state is active,
 >  This decimal output symbol is set:
    strategy.sync_ticks  = 
0
 >  This enumerated output symbol is set:
    strategy.role  = 
strategy.role.offensive_supporter
 >  The option estimate_time_to_reach_ball_for_pass_challenge is executed.
 >  The option pass is executed. Parameters:
    pass.sender  =  false ;
 
The decision tree:
  This browser can't display the SVG file svg/option_pass_player_state_pass_receiver.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 (
!(strategy.player.role( passing_challenge.sender_number() ) == strategy.role.striker)
)
{
  
goto wait;
}
else
{
  
/** */
if ( strategy.estimated_time_to_reach_ball > (strategy.min_teammate_time_to_reach_ball() + 1000))
{
  
stay;
}
else
{
  
goto pass_sender;
}
}

State wait

If that state is active,
 >  This decimal output symbol is set:
    strategy.sync_ticks  = 
0
 >  This enumerated output symbol is set:
    strategy.role  = 
strategy.role.defensive_supporter
 >  The option estimate_time_to_reach_ball_for_pass_challenge is executed.
 >  The option prepare_receive_pass is executed.
 >  The option localize is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_pass_player_state_wait.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 ( strategy.player.role( passing_challenge.sender_number() ) == strategy.role.striker)
{
  
goto pass_receiver;
}
else
{
  
/** */
if ( strategy.estimated_time_to_reach_ball > (strategy.min_teammate_time_to_reach_ball() + 1000))
{
  
stay;
}
else
{
  
goto pass_sender;
}
}