VASSAL.counters
Interface StateMergeable

All Known Implementing Classes:
Decorator, Stack, BasicPiece

public interface StateMergeable

GamePieces may implement this interface to implement "merge" functionality of their state. The merge method applies the diff between an "old" and a "new" state to the current state of the piece.


Method Summary
 void mergeState(java.lang.String newState, java.lang.String oldState)
          Compute the difference between newState and oldState and appy that difference to the current state
 

Method Detail

mergeState

public void mergeState(java.lang.String newState,
                       java.lang.String oldState)
Compute the difference between newState and oldState and appy that difference to the current state
Parameters:
newState -  
oldState -