Modifier and Type | Method and Description |
---|---|
Train |
Goal.getTrain() |
Modifier and Type | Method and Description |
---|---|
void |
Goal.assignTrain(Train train)
Assigns a goal to a train and registers listeners
|
void |
Goal.stationPassed(Station station,
Train train)
Listener trigger when a train passes a station
|
Modifier and Type | Method and Description |
---|---|
Train |
Game_Map_MapObj.getRouteTrain() |
Modifier and Type | Method and Description |
---|---|
void |
Game_Map_Train.createBlip(Train train) |
void |
Game_Map_MapObj.setRouteAvailable(Train train,
Connection connection) |
Modifier and Type | Method and Description |
---|---|
void |
Obstacle.applyTo(Train t)
Applies the obstacle to a train.
|
Constructor and Description |
---|
Obstacle(java.lang.String name,
java.lang.String description,
double speedFactor,
int noTurns,
Train target)
Instantiates a new obstacle and applies it to a train
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Train> |
Player.getTrains() |
Modifier and Type | Method and Description |
---|---|
void |
Player.stationPassed(Station station,
Train train) |
Constructor and Description |
---|
Player(java.lang.String name,
int points,
Gold gold,
Coal coal,
Electric electric,
Nuclear nuclear,
Oil oil,
java.util.ArrayList<Card> cards,
java.util.ArrayList<Goal> goals,
java.util.ArrayList<Train> trains) |
Modifier and Type | Class and Description |
---|---|
class |
CoalTrain |
class |
ElectricTrain |
class |
NuclearTrain |
class |
OilTrain |
Modifier and Type | Field and Description |
---|---|
Train |
Route.train |
Train |
TrainInfoUI.train |
Train |
TrainUpgrade.train |
Modifier and Type | Method and Description |
---|---|
void |
TrainInfoUI.showLabel(Train train) |
void |
RouteListener.stationPassed(Station station,
Train train) |
Constructor and Description |
---|
FuelUpgrade(Train train) |
SpeedUpgrade(Train train) |
TrainUpgrade(Train train,
int price) |
Modifier and Type | Method and Description |
---|---|
void |
ReplayGame.addObstacle(org.json.simple.JSONObject obstacle,
Train train)
Update trains method.
|