Class ChangePiece
java.lang.Object
VASSAL.command.Command
VASSAL.command.ChangePiece
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAppend a subcommand to this Command.protected void
Changes the state of aGamePiece
by invokingGamePiece.setState(java.lang.String)
Detailed information for toString()getId()
boolean
isNull()
protected Command
If the action can be undone, return a Command that performs the inverse action.Methods inherited from class VASSAL.command.Command
execute, getSubCommands, getUndoCommand, isAtomic, isLoggable, isNullOrContainsOnly, stripSubCommands, toString
-
Field Details
-
newState
-
oldState
-
-
Constructor Details
-
ChangePiece
-
-
Method Details
-
executeCommand
protected void executeCommand()Changes the state of aGamePiece
by invokingGamePiece.setState(java.lang.String)
- Specified by:
executeCommand
in classCommand
-
append
-
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
-
getId
-
getNewState
-
getOldState
-
isNull
-
getDetails
Description copied from class:Command
Detailed information for toString()- Overrides:
getDetails
in classCommand
-