|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.core.history.GameHistory
public class GameHistory
This class describes the whole game history
Constructor Summary | |
---|---|
GameHistory()
Contructor |
|
GameHistory(java.util.ArrayList turnList)
Creates a new instance of GameHistory |
Method Summary | |
---|---|
void |
add(Turn turn)
Add a turn in the game history |
java.util.ArrayList |
getTurnList()
Getter for property turnList. |
void |
print()
Print the turn |
void |
setTurnList(java.util.ArrayList turnList)
Setter for property turnList. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameHistory(java.util.ArrayList turnList)
turnList
- The list of all turns of gamepublic GameHistory()
Method Detail |
---|
public void add(Turn turn)
turn
- The turn to addpublic void print()
public java.util.ArrayList getTurnList()
public void setTurnList(java.util.ArrayList turnList)
turnList
- New value of property turnList.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |