player.strategy
Class DumbSitAndWait
java.lang.Object
|
+--player.Strategy
|
+--player.strategy.DumbSitAndWait
- public class DumbSitAndWait
- extends Strategy
A dumb sit-and-wait strategy.
- Version:
- $Revision: 1.3 $
- Author:
- Allen D. Ball
Constructor Summary |
DumbSitAndWait()
Creates a dumb sit-and-wait player strategy. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DumbSitAndWait
public DumbSitAndWait()
- Creates a dumb sit-and-wait player strategy.
nextCommand
public Command nextCommand()
- Description copied from class:
Strategy
- Method to calculate the player's robot next command.
- Overrides:
nextCommand
in class Strategy
- Following copied from class:
player.Strategy
- Returns:
- The next command to send to the player's
robot.
Copyright 2002 Allen D. Ball. All rights reserved.