|
enum | Quarter {
CURRENT_QUARTER
,
EARLIEST_QUARTER
} |
| The range of possible quarters to get company information of. More...
|
|
enum | CompanyID {
COMPANY_FIRST
,
COMPANY_LAST
,
COMPANY_INVALID
,
COMPANY_SELF
,
COMPANY_SPECTATOR
} |
| Different constants related to CompanyID. More...
|
|
enum | Gender {
GENDER_MALE
,
GENDER_FEMALE
,
GENDER_INVALID
} |
| Possible genders for company presidents. More...
|
|
enum | LiveryScheme {
LS_DEFAULT
,
LS_STEAM
,
LS_DIESEL
,
LS_ELECTRIC
,
LS_MONORAIL
,
LS_MAGLEV
,
LS_DMU
,
LS_EMU
,
LS_PASSENGER_WAGON_STEAM
,
LS_PASSENGER_WAGON_DIESEL
,
LS_PASSENGER_WAGON_ELECTRIC
,
LS_PASSENGER_WAGON_MONORAIL
,
LS_PASSENGER_WAGON_MAGLEV
,
LS_FREIGHT_WAGON
,
LS_BUS
,
LS_TRUCK
,
LS_PASSENGER_SHIP
,
LS_FREIGHT_SHIP
,
LS_HELICOPTER
,
LS_SMALL_PLANE
,
LS_LARGE_PLANE
,
LS_PASSENGER_TRAM
,
LS_FREIGHT_TRAM
,
LS_INVALID
} |
| List of different livery schemes. More...
|
|
enum | Colours {
COLOUR_DARK_BLUE
,
COLOUR_PALE_GREEN
,
COLOUR_PINK
,
COLOUR_YELLOW
,
COLOUR_RED
,
COLOUR_LIGHT_BLUE
,
COLOUR_GREEN
,
COLOUR_DARK_GREEN
,
COLOUR_BLUE
,
COLOUR_CREAM
,
COLOUR_MAUVE
,
COLOUR_PURPLE
,
COLOUR_ORANGE
,
COLOUR_BROWN
,
COLOUR_GREY
,
COLOUR_WHITE
,
COLOUR_INVALID = ::INVALID_COLOUR
} |
| List of colours.
|
|
enum | ExpensesType : int {
EXPENSES_CONSTRUCTION
,
EXPENSES_NEW_VEHICLES
,
EXPENSES_TRAIN_RUN
,
EXPENSES_ROADVEH_RUN
,
EXPENSES_AIRCRAFT_RUN
,
EXPENSES_SHIP_RUN
,
EXPENSES_PROPERTY
,
EXPENSES_TRAIN_INC
,
EXPENSES_ROADVEH_INC
,
EXPENSES_AIRCRAFT_INC
,
EXPENSES_SHIP_INC
,
EXPENSES_LOAN_INT
,
EXPENSES_OTHER
,
EXPENSES_INVALID
} |
| Types of expenses. More...
|
|
|
static CompanyID | ResolveCompanyID (CompanyID company) |
| Resolved the given company index to the correct index for the company. More...
|
|
static bool | IsMine (CompanyID company) |
| Check if a CompanyID is your CompanyID, to ease up checks. More...
|
|
static bool | SetName (Text *name) |
| Set the name of your company. More...
|
|
static string | GetName (CompanyID company) |
| Get the name of the given company. More...
|
|
static bool | SetPresidentName (Text *name) |
| Set the name of your president. More...
|
|
static string | GetPresidentName (CompanyID company) |
| Get the name of the president of the given company. More...
|
|
static bool | SetPresidentGender (Gender gender) |
| Set the gender of the president of your company. More...
|
|
static Gender | GetPresidentGender (CompanyID company) |
| Get the gender of the president of the given company. More...
|
|
static bool | SetLoanAmount (Money loan) |
| Sets the amount to loan. More...
|
|
static bool | SetMinimumLoanAmount (Money loan) |
| Sets the minimum amount to loan, i.e. More...
|
|
static Money | GetLoanAmount () |
| Gets the amount your company have loaned. More...
|
|
static Money | GetMaxLoanAmount () |
| Gets the maximum amount your company can loan. More...
|
|
static bool | SetMaxLoanAmountForCompany (CompanyID company, Money amount) |
| Sets the max amount of money company can loan. More...
|
|
static bool | ResetMaxLoanAmountForCompany (CompanyID company) |
| Makes the max amount of money company can loan follow the global max loan setting. More...
|
|
static Money | GetLoanInterval () |
| Gets the interval/loan step. More...
|
|
static Money | GetBankBalance (CompanyID company) |
| Gets the bank balance. More...
|
|
static bool | ChangeBankBalance (CompanyID company, Money delta, ExpensesType expenses_type, TileIndex tile) |
| Changes the bank balance by a delta value. More...
|
|
static Money | GetQuarterlyIncome (CompanyID company, int quarter) |
| Get the income of the company in the given economy-quarter. More...
|
|
static Money | GetQuarterlyExpenses (CompanyID company, int quarter) |
| Get the expenses of the company in the given economy-quarter. More...
|
|
static int | GetQuarterlyCargoDelivered (CompanyID company, int quarter) |
| Get the amount of cargo delivered by the given company in the given economy-quarter. More...
|
|
static int | GetQuarterlyPerformanceRating (CompanyID company, int quarter) |
| Get the performance rating of the given company in the given economy-quarter. More...
|
|
static Money | GetQuarterlyCompanyValue (CompanyID company, int quarter) |
| Get the value of the company in the given economy-quarter. More...
|
|
static bool | BuildCompanyHQ (TileIndex tile) |
| Build your company's HQ on the given tile. More...
|
|
static TileIndex | GetCompanyHQ (CompanyID company) |
| Return the location of a company's HQ. More...
|
|
static bool | SetAutoRenewStatus (bool autorenew) |
| Set whether autorenew is enabled for your company. More...
|
|
static bool | GetAutoRenewStatus (CompanyID company) |
| Return whether autorenew is enabled for a company. More...
|
|
static bool | SetAutoRenewMonths (int months) |
| Set the number of months before/after max age to autorenew an engine for your company. More...
|
|
static int | GetAutoRenewMonths (CompanyID company) |
| Return the number of months before/after max age to autorenew an engine for a company. More...
|
|
static bool | SetAutoRenewMoney (Money money) |
| Set the minimum money needed to autorenew an engine for your company. More...
|
|
static Money | GetAutoRenewMoney (CompanyID company) |
| Return the minimum money needed to autorenew an engine for a company. More...
|
|
static bool | SetPrimaryLiveryColour (LiveryScheme scheme, Colours colour) |
| Set primary colour for your company. More...
|
|
static bool | SetSecondaryLiveryColour (LiveryScheme scheme, Colours colour) |
| Set secondary colour for your company. More...
|
|
static GSCompany::Colours | GetPrimaryLiveryColour (LiveryScheme scheme) |
| Get primary colour of a livery for your company. More...
|
|
static GSCompany::Colours | GetSecondaryLiveryColour (LiveryScheme scheme) |
| Get secondary colour of a livery for your company. More...
|
|
Class that handles all company related functions.