Class FlareCommand
java.lang.Object
VASSAL.command.Command
VASSAL.command.FlareCommand
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Command
append, execute, getDetails, getSubCommands, getUndoCommand, isAtomic, isLoggable, isNull, isNullOrContainsOnly, stripSubCommands, toStringModifier and TypeMethodDescriptionAppend a subcommand to this Command.voidexecute()Execute this command by first invokingCommand.executeCommand(), then invoking itself recursively on all subcommands.Detailed information for toString()Command[]protected booleanisAtomic()Return true if this command has no sub-commands attached to it (other than null commands).booleanbooleanisNull()booleanisNullOrContainsOnly(Class<?> target) Return true if this Command is a NullCommand or only contains Null Commands or commands of the same type as targetvoidRemove all subcommands.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
-