roboplayer.fsm.state
Class ShootState

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

public class ShootState
extends State

This state is used to shoot at goal

Version:
1.0
Author:
Krzysztof Langner

Constructor Summary
ShootState()
           
 
Method Summary
 void execute(RoboCore rc)
          This function tries to score goal.
 
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

ShootState

public ShootState()
Method Detail

execute

public void execute(RoboCore rc)
This function tries to score goal. If there is some space to shoot at goal than player kicks in this direction. Otherwise it tries to move to another place.

Specified by:
execute in class State