public class GameModel
extends java.util.Observable
Constructor and Description |
---|
GameModel(int numAgents,
int numAssPerRound) |
GameModel(int numAgents,
int numAssPerRound,
int index) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Agent> |
getAgentList()
Which Agents are currently playing the game?
|
int |
getCurrentRoundNumber()
Returns the current round index.
|
java.util.List<java.lang.String> |
getNewStories()
Returns new exiting stories that have not been read yet!
|
int |
getNumberOfActiveAgents()
Return the number of agent remaining in the game
|
void |
nextStep()
Takes the next step in the simulation.
|
void |
simulateAll()
Causes the GameModel to keep taking steps until the game ends.
|
void |
stopSimulation()
Stops the Simulation, but not the program.
|
public GameModel(int numAgents, int numAssPerRound)
public GameModel(int numAgents, int numAssPerRound, int index)
public java.util.ArrayList<Agent> getAgentList()
public void stopSimulation()
public void nextStep()
public java.util.List<java.lang.String> getNewStories()
public void simulateAll()
public int getCurrentRoundNumber()
public int getNumberOfActiveAgents()