player.strategy
Class PlanA

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

public class PlanA
extends Strategy

This class implements the Plan A strategy.

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

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

Constructor Detail

PlanA

public PlanA()
Creates a Plan A strategy.
Method Detail

initialize

public void initialize(Player player)
Method to initialize the Plan A strategy.
Overrides:
initialize in class Strategy
Parameters:
player - The player on whose behalf this strategy will operate.

nextCommand

public Command nextCommand()
Method to calculate the player's robot next command using "Plan A."
Overrides:
nextCommand in class Strategy
Returns:
The next command to send to the player's robot.


Copyright 2002 Allen D. Ball. All rights reserved.