public class NewGame extends CoreGame
Constructor and Description |
---|
NewGame(java.lang.String Player1Name,
java.lang.String Player2Name,
Station Player1StationStart,
Station Player2StationStart,
int turnLimit)
Initialises a Game object.
|
Modifier and Type | Method and Description |
---|---|
void |
EndTurn()
Ends the turn of a player.
|
void |
fixFault(Station station)
Saves any fixed stations to Replay.
|
void |
forceSave() |
void |
lockMapObj(MapObj object)
Saves any locked stations to Replay.
|
void |
saveTurn() |
void |
StartTurn()
Starts a players turn.
|
void |
unlockMapObj(MapObj object)
Saves any unlocked stations to Replay.
|
getBaseResources, getGameMap, getNonPlayerTurn, getPlayer1, getPlayer2, getPlayerTurn, getTurnCount, getTurnLimit, hasFinished
public NewGame(java.lang.String Player1Name, java.lang.String Player2Name, Station Player1StationStart, Station Player2StationStart, int turnLimit)
Player1Name
- The name of Player1Player2Name
- The name of Player2Player1StationStart
- Player1 should have selected a station to buy at the beginning
of the game. This is their selected Station's object.Player2StationStart
- Player2 should have selected a station to buy at the beginning
of the game. This is their selected Station's object.turnLimit
- The number of turns before the end of the game.public void fixFault(Station station)
public void lockMapObj(MapObj object)
public void unlockMapObj(MapObj object)
public void StartTurn()
public void EndTurn()
public void saveTurn()
public void forceSave()