betir
Class GoalieReturnToZoneBehavior

java.lang.Object
  |
  +--betir.RobocupBehavior
        |
        +--betir.GoalieReturnToZoneBehavior

public class GoalieReturnToZoneBehavior
extends RobocupBehavior

This behavior brings the goalie back to the goal when he wanders too far away.


Fields inherited from class betir.RobocupBehavior
m_bLastWasTurn
 
Constructor Summary
GoalieReturnToZoneBehavior(RobocupEnvironment env, DatagramWrapper dg)
           
 
Method Summary
 boolean canFire()
          Determines if a behavior can fire or not
 boolean fire()
          Execute the behavior
 boolean inhibits(RobocupBehavior rb)
          Determines if this behavior inhibits another behavior
 
Methods inherited from class betir.RobocupBehavior
angleToAngle, angleToPoint, catchBall, changeView, dash, dashToBall, dashToPoint, findInterceptBall, getZoneDist, kick, move, say, turn, turnHead, withinRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoalieReturnToZoneBehavior

public GoalieReturnToZoneBehavior(RobocupEnvironment env,
                                  DatagramWrapper dg)
Method Detail

canFire

public boolean canFire()
Description copied from class: RobocupBehavior
Determines if a behavior can fire or not
Overrides:
canFire in class RobocupBehavior

inhibits

public boolean inhibits(RobocupBehavior rb)
Description copied from class: RobocupBehavior
Determines if this behavior inhibits another behavior
Overrides:
inhibits in class RobocupBehavior
Following copied from class: betir.RobocupBehavior
Parameters:
rb - the behavior to be checked

fire

public boolean fire()
Description copied from class: RobocupBehavior
Execute the behavior
Overrides:
fire in class RobocupBehavior