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
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 java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MoveCommand
public MoveCommand()
- Creates a robot command.
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.