games.strategy.engine.data
Class CompositeChange
java.lang.Object
games.strategy.engine.data.Change
games.strategy.engine.data.CompositeChange
- All Implemented Interfaces:
- java.io.Serializable
public class CompositeChange
- extends Change
A Change made of several changes.
- Author:
- Sean Bridges
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CompositeChange
public CompositeChange(Change... changes)
CompositeChange
public CompositeChange()
CompositeChange
public CompositeChange(java.util.List<Change> changes)
add
public void add(Change... changes)
invert
public Change invert()
- Specified by:
invert in class Change
perform
protected void perform(GameData data)
- Specified by:
perform in class Change
isEmpty
public boolean isEmpty()
- Overrides:
isEmpty in class Change
- Returns:
- true if this change is empty, or composed of empty changes
getChanges
public java.util.List<Change> getChanges()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object