Package VASSAL.counters
Interface StateMergeable
- All Known Implementing Classes:
ActionButton
,AreaOfEffect
,Attachment
,BasicName
,BasicPiece
,BorderOutline
,CalculatedProperty
,Clone
,Comment
,CounterGlobalKeyCommand
,Deck
,Decorator
,Delete
,Deselect
,DynamicProperty
,Embellishment
,Embellishment0
,Footprint
,FreeRotator
,GlobalHotKey
,Hideable
,Immobilized
,Labeler
,Marker
,Mat
,MatCargo
,MenuSeparator
,MovementMarkable
,MultiLocationCommand
,NonRectangular
,Obscurable
,Pivot
,PlaceMarker
,PlaySound
,PropertySheet
,Replace
,ReportState
,RestrictCommands
,Restricted
,ReturnToDeck
,SendToLocation
,SetGlobalProperty
,SetPieceProperty
,Stack
,SubMenu
,TableInfo
,TranslatableMessage
,Translate
,TriggerAction
,UsePrototype
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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 TypeMethodDescriptionvoid
mergeState
(String newState, String oldState) Compute the difference betweennewState
andoldState
and apply that difference to the current state
-
Method Details
-
mergeState
-