VASSAL.command
Class TrackPiece

java.lang.Object
  |
  +--VASSAL.command.Command
        |
        +--VASSAL.command.ChangePiece
              |
              +--VASSAL.command.TrackPiece

Deprecated. Use ChangeTracker

public class TrackPiece
extends ChangePiece

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

TrackPiece

public TrackPiece(GamePiece p)
Deprecated. 
Method Detail

getNewState

public java.lang.String getNewState()
Deprecated. 
Overrides:
getNewState in class ChangePiece

finalize

public void finalize()
Deprecated. 
Overrides:
finalize in class java.lang.Object