Modifier and Type | Method and Description |
---|---|
static void |
GameScreen.createCoreGame(Station p1Station,
Station p2Station) |
java.util.HashMap<java.lang.String,Resource> |
CoreGame.getBaseResources(Station station)
Generates the resources a player will start with based on their start
location
|
Modifier and Type | Method and Description |
---|---|
Station |
Goal.getFStationObject() |
Station |
Goal.getSStationObject() |
Modifier and Type | Method and Description |
---|---|
void |
Goal.stationPassed(Station station,
Train train)
Listener trigger when a train passes a station
|
Constructor and Description |
---|
Goal(Station startStation,
Station finalStation,
int noOfStations,
java.lang.String cargo,
int reward)
Initializes the goal.
|
SpecialGoal(Station Startstation,
Station FinalStation,
int constraint,
java.lang.String cargo,
int reward2) |
Modifier and Type | Field and Description |
---|---|
static java.util.ArrayList<Station> |
GoalGenerationAlgorithm.stations |
static java.util.ArrayList<Station> |
Dijkstra.stations |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Station> |
GoalGenerationAlgorithm.generateGoalPath()
Uses getGoalPathNodeList to generate a list of Nodes, then converts it into a list
of stations using a lookup table and returns it.
|
Modifier and Type | Method and Description |
---|---|
Station |
Station.getStation() |
Station |
MapObj.getStation() |
Station |
MapInstance.getStationWithName(java.lang.String name) |
Station[] |
MapInstance.stationList() |
Modifier and Type | Method and Description |
---|---|
boolean |
Station.equals(Station station) |
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
|
Modifier and Type | Field and Description |
---|---|
static Station |
Game_Map_StationBtn.tempP1Station |
Modifier and Type | Method and Description |
---|---|
void |
Game_Map_Station.ownerChanged(Station station,
Player player)
Deprecated.
replaced with updateButton();
|
static void |
Game_Map_Manager.showEditStation(Station station) |
void |
Game_Map_Station.updateButton(Station station,
Player player) |
Constructor and Description |
---|
Game_Map_Station(Station station,
float actorX,
float actorY) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Station> |
Player.getStations() |
Modifier and Type | Method and Description |
---|---|
void |
Shop.buyNewTrain(Station station) |
void |
Player.purchaseStation(Station station) |
void |
Shop.repairStation(Station station,
boolean testCase) |
void |
Player.sellStation(Station station) |
void |
Player.stationPassed(Station station,
Train train) |
Modifier and Type | Method and Description |
---|---|
Station |
Route.getStation() |
Modifier and Type | Method and Description |
---|---|
void |
RouteListener.stationPassed(Station station,
Train train) |
Modifier and Type | Method and Description |
---|---|
void |
NewGame.fixFault(Station station)
Saves any fixed stations to Replay.
|
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 |
Replay.addFault(Station station) |
void |
Replay.removeFault(Station station)
called when a station is fixed to remove it from the list of faulty stations
|