public abstract class CoreGame
extends java.lang.Object
Constructor and Description |
---|
CoreGame(java.lang.String Player1Name,
java.lang.String Player2Name,
int turnLimit)
Initialises a Game object.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
EndTurn()
Ends the turn of a player.
|
java.util.HashMap<java.lang.String,Resource> |
getBaseResources(Station station)
Generates the resources a player will start with based on their start
location
|
MapInstance |
getGameMap() |
Player |
getNonPlayerTurn() |
Player |
getPlayer1() |
Player |
getPlayer2() |
Player |
getPlayerTurn() |
int |
getTurnCount() |
int |
getTurnLimit() |
boolean |
hasFinished() |
abstract void |
StartTurn()
Starts a players turn.
|
public CoreGame(java.lang.String Player1Name, java.lang.String Player2Name, 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 abstract void EndTurn()
public abstract void StartTurn()
public java.util.HashMap<java.lang.String,Resource> getBaseResources(Station station)
station
- A player's starting location.public boolean hasFinished()
public MapInstance getGameMap()
public Player getPlayer1()
public Player getPlayer2()
public int getTurnCount()
public int getTurnLimit()
public Player getPlayerTurn()
public Player getNonPlayerTurn()