roboplayer.fsm.state
Class ControlBallState

java.lang.Object
  |
  +--roboplayer.fsm.State
        |
        +--roboplayer.fsm.state.ControlBallState

public class ControlBallState
extends State

This state is used to control the ball.

Version:
1.0
Author:
Krzysztof Langner

Constructor Summary
ControlBallState()
           
 
Method Summary
 void execute(RoboCore rc)
          This function tries to do something with ball.
 
Methods inherited from class roboplayer.fsm.State
addParam, addTransition, makeTransition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlBallState

public ControlBallState()
Method Detail

execute

public void execute(RoboCore rc)
This function tries to do something with ball. If we are near opponent goal then score If there is teammate before us then pass If we are alone then move with ball If there are opponents near us then pass

Specified by:
execute in class State