public class Turn
extends java.lang.Object
Constructor and Description |
---|
Turn(int turnCount,
int playerCount)
Creates an instance of the turn class.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlayers(Player[] listOfPlayers)
adds the players to the turn class at the end of the turn
|
java.lang.String |
toJSON(java.util.ArrayList<java.lang.String> faultyStations,
java.util.ArrayList<java.lang.String> lockedStations,
java.util.ArrayList<java.lang.String> unlockedStations)
Recursively generates a JSON of the Turn instance and all its variables
|
public Turn(int turnCount, int playerCount)
the
- number of the current turnthe
- number of players in the gamepublic void addPlayers(Player[] listOfPlayers)
list
- of current playerspublic java.lang.String toJSON(java.util.ArrayList<java.lang.String> faultyStations, java.util.ArrayList<java.lang.String> lockedStations, java.util.ArrayList<java.lang.String> unlockedStations)