roboplayer.fsm.state
Class InterceptBallState

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

public class InterceptBallState
extends State

This state is used to intercept ball.

Version:
1.0
Author:
Krzysztof Langner

Constructor Summary
InterceptBallState()
           
 
Method Summary
 void execute(RoboCore rc)
          This function tries to be a little smart.
 
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

InterceptBallState

public InterceptBallState()
Method Detail

execute

public void execute(RoboCore rc)
This function tries to be a little smart. The player is moved to the position where the ball should be in the next step. But still it can be improved. At the end this function uses dashTo skill. This skill should allow us to go around any obstacles which are between player and the ball.

Specified by:
execute in class State