Package VASSAL.command
Class RemovePiece
java.lang.Object
VASSAL.command.Command
VASSAL.command.RemovePiece
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Removes a piece by invokingMap.removePiece(VASSAL.counters.GamePiece)
if the piece belongs to aMap
, followed byGameState.removePiece(java.lang.String)
.getId()
protected Command
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, isAtomic, isLoggable, isNull, isNullOrContainsOnly, stripSubCommands, toString
-
Constructor Details
-
RemovePiece
-
RemovePiece
-
-
Method Details
-
executeCommand
protected void executeCommand()Removes a piece by invokingMap.removePiece(VASSAL.counters.GamePiece)
if the piece belongs to aMap
, followed byGameState.removePiece(java.lang.String)
.- 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
-
getTarget
-
getId
-