simulations.core.history
Class GameHistory

java.lang.Object
  extended by simulations.core.history.GameHistory

public class GameHistory
extends java.lang.Object

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

GameHistory

public GameHistory(java.util.ArrayList turnList)
Creates a new instance of GameHistory

Parameters:
turnList - The list of all turns of game

GameHistory

public GameHistory()
Contructor

Method Detail

add

public void add(Turn turn)
Add a turn in the game history

Parameters:
turn - The turn to add

print

public void print()
Print the turn


getTurnList

public java.util.ArrayList getTurnList()
Getter for property turnList.

Returns:
Value of property turnList.

setTurnList

public void setTurnList(java.util.ArrayList turnList)
Setter for property turnList.

Parameters:
turnList - New value of property turnList.