Define the WormRailManager class which handles trains.
More...
Public Member Functions |
constructor | WormRailManager () |
| Create an instance of WormRailManager and initialize our variables.
|
function | UpdateRailType () |
| Updates the current rail type of the AI based on the maximum number of cargoes transportable.
|
function | BuildRailway () |
| Main function for building a railway which decides all the details.
|
Static Public Member Functions |
static function | SetRailType () |
| Sets the current rail type of the AI based on the maximum number of cargoes transportable.
|
Detailed Description
Define the WormRailManager class which handles trains.
Constructor & Destructor Documentation
constructor WormRailManager::WormRailManager |
( |
| ) |
|
|
inline |
Member Function Documentation
function WormRailManager::SetRailType |
( |
| ) |
|
|
static |
Sets the current rail type of the AI based on the maximum number of cargoes transportable.
- Returns
- The new railtype that has been set.
- Todo:
- Possible better evaluation what rail type is the most profitable.
The documentation for this class was generated from the following file: