player.strategy
Class DumbHeadNorth

java.lang.Object
  |
  +--player.Strategy
        |
        +--player.strategy.DumbHeadNorth

public class DumbHeadNorth
extends Strategy

A dumb "head north" strategy.

Version:
$Revision: 1.3 $
Author:
Allen D. Ball

Fields inherited from class player.Strategy
player
 
Constructor Summary
DumbHeadNorth()
          Creates a dumb "head north" player strategy.
 
Method Summary
 Command nextCommand()
          Method to calculate the player's robot next command.
 
Methods inherited from class player.Strategy
getPlayer, initialize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumbHeadNorth

public DumbHeadNorth()
Creates a dumb "head north" player strategy.
Method Detail

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.