games.strategy.engine.data
Class GameSequence
java.lang.Object
games.strategy.engine.data.GameDataComponent
games.strategy.engine.data.GameSequence
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<GameStep>
public class GameSequence
- extends GameDataComponent
- implements java.lang.Iterable<GameStep>
- Version:
- 1.0
- Author:
- Sean Bridges
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GameSequence
public GameSequence(GameData data)
addStep
protected void addStep(GameStep step)
remove
protected void remove(GameStep step)
- Removes the first instance of step.
removeStep
protected void removeStep(int index)
removeAllSteps
protected void removeAllSteps()
getRound
public int getRound()
getStepIndex
public int getStepIndex()
next
public boolean next()
- Returns:
- boolean wether the round has changed
getStep
public GameStep getStep()
getStep
public GameStep getStep(int index)
iterator
public java.util.Iterator<GameStep> iterator()
- Specified by:
iterator in interface java.lang.Iterable<GameStep>