Package VASSAL.counters
Interface StateMergeable
- All Known Implementing Classes:
ActionButton
,AreaOfEffect
,BasicPiece
,CalculatedProperty
,Clone
,CounterGlobalKeyCommand
,Deck
,Decorator
,Delete
,DynamicProperty
,Embellishment
,Embellishment0
,Footprint
,FreeRotator
,GlobalHotKey
,Hideable
,Immobilized
,Labeler
,Marker
,MenuSeparator
,MovementMarkable
,NonRectangular
,Obscurable
,Pivot
,PlaceMarker
,PlaySound
,PropertySheet
,Replace
,ReportState
,RestrictCommands
,Restricted
,ReturnToDeck
,SendToLocation
,SetGlobalProperty
,Stack
,SubMenu
,TableInfo
,Translate
,TriggerAction
,UsePrototype
public interface StateMergeable
GamePiece
s 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
Modifier and Type Method Description void
mergeState(String newState, String oldState)
Compute the difference betweennewState
andoldState
and appy that difference to the current state
-
Method Details
-
mergeState
Compute the difference betweennewState
andoldState
and appy that difference to the current state- Parameters:
newState
-oldState
-
-