roboplayer.fsm.condition
Class IsNearestToBall

java.lang.Object
  |
  +--roboplayer.fsm.Condition
        |
        +--roboplayer.fsm.condition.IsNearestToBall

public class IsNearestToBall
extends Condition

This condition check if can kick the ball

Version:
1.0
Author:
Krzysztof Langner

Constructor Summary
IsNearestToBall()
           
 
Method Summary
 boolean evaluate(RoboCore rc)
          Check distance to the ball
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsNearestToBall

public IsNearestToBall()
Method Detail

evaluate

public boolean evaluate(RoboCore rc)
Check distance to the ball

Specified by:
evaluate in class Condition
Returns:
true if condition is met.