|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--VASSAL.command.Command
|
+--VASSAL.command.ChangePiece
|
+--VASSAL.command.TrackPiece
ChangeTracker
This class makes it more convenient to create a ChangePiece command. A TrackPiece is instantiated with a GamePiece and later finalized. The old state is the state of the GamePIece at instantiation, while the new state is the state of the GamePiece at finalization.
| Fields inherited from class VASSAL.command.ChangePiece |
newState, oldState |
| Constructor Summary | |
TrackPiece(GamePiece p)
Deprecated. |
|
| Method Summary | |
void |
finalize()
Deprecated. |
java.lang.String |
getNewState()
Deprecated. |
| Methods inherited from class VASSAL.command.ChangePiece |
append, executeCommand, getId, getOldState, isNull, myUndoCommand |
| Methods inherited from class VASSAL.command.Command |
execute, getSubCommands, getUndoCommand, hasNullSubcommands, isLoggable, stripSubCommands, toString |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TrackPiece(GamePiece p)
| Method Detail |
public java.lang.String getNewState()
getNewState in class ChangePiecepublic void finalize()
finalize in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||