de.adom.jade.ui.commands
Class RepeatingCommand

java.lang.Object
  extended by de.adom.jade.ui.commands.Command
      extended by de.adom.jade.ui.commands.RepeatingCommand

public abstract class RepeatingCommand
extends Command

Implements the base class for commands that repeat until some special condition is fulfilled.


Field Summary
 
Fields inherited from class de.adom.jade.ui.commands.Command
E, ENTER_LOCATION, N, NE, NW, S, SE, SW, W, WAIT, WALK_E, WALK_N, WALK_NE, WALK_NW, WALK_S, WALK_SE, WALK_SW, WALK_W, WALK_WAIT
 
Constructor Summary
RepeatingCommand(java.lang.String name)
          Builds a new repeating command.
 
Method Summary
abstract  Command getRepeatingCommand(Being being)
          Determines if the command can be repeated once more for a given being.
 
Methods inherited from class de.adom.jade.ui.commands.Command
execute, executeImpl, getCommand, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepeatingCommand

public RepeatingCommand(java.lang.String name)
Builds a new repeating command.

Parameters:
name -
Method Detail

getRepeatingCommand

public abstract Command getRepeatingCommand(Being being)
Determines if the command can be repeated once more for a given being.

Parameters:
being - the being for which the command might be repeated
Returns:
the command to be executed again or null if the command can't or shouldn't be repeated