Package VASSAL.command
Class FlareCommand
java.lang.Object
VASSAL.command.Command
VASSAL.command.FlareCommand
public class FlareCommand extends Command
-
Constructor Summary
Constructors Constructor Description FlareCommand(Flare flare) -
Method Summary
Modifier and Type Method Description protected voidexecuteCommand()Executes the command (starts a Flare at the specified location)PointgetClickPoint()StringgetId()intgetValue()protected CommandmyUndoCommand()If the action can be undone, return a Command that performs the inverse action.Methods inherited from class VASSAL.command.Command
append, execute, getDetails, getSubCommands, getUndoCommand, hasNullSubcommands, 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:
executeCommandin classCommand
-
myUndoCommand
Description copied from class:CommandIf 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:
myUndoCommandin 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
-