player
Class MoveCommand

java.lang.Object
  |
  +--player.Command
        |
        +--player.MoveCommand
All Implemented Interfaces:
Direction

public class MoveCommand
extends Command
implements Direction

Class that implements robot move commmands.

Version:
$Revision: 1.3 $
Author:
Allen D. Ball
See Also:
Direction

Fields inherited from interface world.Direction
EAST, NORTH, SOUTH, WEST
 
Constructor Summary
MoveCommand()
          Creates a robot command.
 
Method Summary
 String getArguments()
          Method to get the optional arguments for a command
 String getName()
          Method to get the name of this command.
 void setDirection(int direction)
          Method to set the movement direction of this command.
 
Methods inherited from class player.Command
getBid, getCost, pkgAdd, pkgRemove, setBid, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MoveCommand

public MoveCommand()
Creates a robot command.
Method Detail

getName

public final String getName()
Description copied from class: Command
Method to get the name of this command.
Overrides:
getName in class Command
Following copied from class: player.Command
Returns:
The name of this command.

setDirection

public final void setDirection(int direction)
Method to set the movement direction of this command.
Overrides:
setDirection in class Command
Parameters:
direction - The direction of the movement.
See Also:
Direction

getArguments

public final String getArguments()
Description copied from class: Command
Method to get the optional arguments for a command
Overrides:
getArguments in class Command
Following copied from class: player.Command
Returns:
The optional arguments for this commnd.


Copyright 2002 Allen D. Ball. All rights reserved.