Modifier and Type | Method and Description |
---|---|
Player |
Card.getOwner() |
Modifier and Type | Method and Description |
---|---|
static void |
Game_CardHand.Game_CardHandManager.changePlayer(Player player)
Change Player gets the cards from the new player when a turn is ended and puts the player's cards back.
|
void |
Card.setOwner(Player owner) |
Constructor and Description |
---|
Card(Player player,
org.json.simple.JSONObject cardJSON) |
Card(Player player,
com.badlogic.gdx.graphics.Texture image,
java.lang.String name)
Initialise's the Card's key parameters.
|
CardFactory(Player player)
The initialiser.
|
CoalCard(Player player)
Initialises the CoalCard
|
ElectricCard(Player player)
Initialises the ElectricCard
|
GoFasterStripesCard(Player player) |
GoldCard(Player player) |
NuclearCard(Player player) |
OilCard(Player player) |
ResourceCard(Player owner,
com.badlogic.gdx.graphics.Texture cardTexture,
java.lang.String fuelType)
Initialises the card.
|
TeleportCard(Player player)
Initialises the card
|
Modifier and Type | Method and Description |
---|---|
Player |
CoreGame.getNonPlayerTurn() |
Player |
CoreGame.getPlayer1() |
Player |
CoreGame.getPlayer2() |
Player |
CoreGame.getPlayerTurn() |
Modifier and Type | Method and Description |
---|---|
static void |
PlayerGoals.changePlayer(Player player)
Change Player is used when we end turn to get the goals of the player whose turn it is.
|
Modifier and Type | Method and Description |
---|---|
Player |
Station.getOwner() |
Modifier and Type | Method and Description |
---|---|
void |
Station.notifyStationPurchased(Station station,
Player player)
Called when you want to notify listeners that a station has changed ownership, such as
changing the texture on the map or setting the text of the players gold
|
void |
StationListener.ownerChanged(Station station,
Player player)
Any class than implements this will be notified of a change in ownership
of the station
|
void |
Station.setOwner(Player newOwner)
Changes the owner of this station and notifies listeners
|
Modifier and Type | Method and Description |
---|---|
void |
Game_Map_Station.ownerChanged(Station station,
Player player)
Deprecated.
replaced with updateButton();
|
void |
Game_Map_Station.updateButton(Station station,
Player player) |
Modifier and Type | Method and Description |
---|---|
Obstacle |
ObstacleFactory.getObstacle(Player p) |
Constructor and Description |
---|
Shop(Player customer)
The initialiser for shop.
|
Modifier and Type | Method and Description |
---|---|
Player |
Train.getOwner() |
Constructor and Description |
---|
CoalTrain(int speedMod,
boolean inStation,
Route route,
Player player) |
CoalTrain(org.json.simple.JSONObject train,
Route route,
Player player)
Reinstantiates train from JSON Object
|
ElectricTrain(int speedMod,
boolean inStation,
Route route,
Player player) |
ElectricTrain(org.json.simple.JSONObject train,
Route route,
Player player)
Reinstantiates train from JSON Object
|
NuclearTrain(int speedMod,
boolean inStation,
Route route,
Player player) |
NuclearTrain(org.json.simple.JSONObject train,
Route route,
Player player)
Reinstantiates train from JSON Object
|
OilTrain(int speedMod,
boolean inStation,
Route route,
Player player) |
OilTrain(org.json.simple.JSONObject train,
Route route,
Player player)
Reinstantiates train from JSON Object
|
Train(java.lang.String name,
Fuel fuelType,
int baseSpeed,
int speedMod,
int value,
boolean inStation,
Route route,
Player owner)
The superclass of Train types, Creates a Train for player.
|
Modifier and Type | Method and Description |
---|---|
void |
Turn.addPlayers(Player[] listOfPlayers)
adds the players to the turn class at the end of the turn
|
void |
Replay.endTurn(Player[] listOfPlayers)
called at the end of each turn to add the current turn to the list of turns
|