games.strategy.engine.data
Class CompositeChange

java.lang.Object
  extended by games.strategy.engine.data.Change
      extended by 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

Constructor Summary
CompositeChange()
           
CompositeChange(Change... changes)
           
CompositeChange(java.util.List<Change> changes)
           
 
Method Summary
 void add(Change... changes)
           
 java.util.List<Change> getChanges()
           
 Change invert()
           
 boolean isEmpty()
           
protected  void perform(GameData data)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeChange

public CompositeChange(Change... changes)

CompositeChange

public CompositeChange()

CompositeChange

public CompositeChange(java.util.List<Change> changes)
Method Detail

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