Class FlareCommand
java.lang.Object
VASSAL.command.Command
VASSAL.command.FlareCommand
-
Constructor Summary
-
Method Summary
Methods inherited from class VASSAL.command.Command
append, execute, getDetails, getSubCommands, getUndoCommand, isAtomic, isLoggable, isNull, isNullOrContainsOnly, stripSubCommands, toString
-
Constructor Details
-
FlareCommand
- Parameters:
flare
- Flare object to define our new action from
-
-
Method Details
-
executeCommand
protected void executeCommand()Executes the command (starts a Flare at the specified location)- Specified by:
executeCommand
in classCommand
-
myUndoCommand
Description copied from class:Command
If the action can be undone, return a Command that performs the inverse action. The Command returned should only undoCommand.executeCommand()
, not the actions of subcommands- Specified by:
myUndoCommand
in classCommand
- Returns:
- null - no undo needed for Flare commands
-
getValue
public int getValue()- Returns:
- 0
-
getClickPoint
- Returns:
- specified flare location on map
-
getId
- Returns:
- unique ID of the Flare object that this flare command is intended to activate
-