12 #ifndef COMPANY_FUNC_H 13 #define COMPANY_FUNC_H 26 void CompanyAdminBankrupt(
CompanyID company_id);
static bool IsLocalCompany()
Is the current company the local company?
void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
Change the ownership of all the items of a company.
CompanyManagerFace _company_manager_face
for company manager face storage in openttd.cfg
void UpdateLandscapingLimits()
Update the landscaping limits per company.
Common return value for all commands.
void SubtractMoneyFromCompanyFract(CompanyID company, CommandCost cost)
Subtract money from a company, including the money fraction.
Types related to commands.
CompanyByte _local_company
Company controlled by the human player at this client. Can also be COMPANY_SPECTATOR.
bool CheckCompanyHasMoney(CommandCost &cost)
Verify whether the company can pay the bill.
uint32 CompanyManagerFace
Company manager face bits, info see in company_manager_face.h.
void GetNameOfOwner(Owner owner, TileIndex tile)
Set the right DParams to get the name of an owner.
VehicleType
Available vehicle types.
void SubtractMoneyFromCompany(CommandCost cost)
Subtract money from the _current_company, if the company is valid.
bool MayCompanyTakeOver(CompanyID cbig, CompanyID small)
May company cbig buy company csmall?
void SetLocalCompany(CompanyID new_company)
Sets the local company and updates the settings that are set on a per-company basis to reflect the co...
Colours _company_colours[MAX_COMPANIES]
NOSAVE: can be determined from company structs.
Maximum number of companies.
static bool IsInteractiveCompany(CompanyID company)
Is the user representing company?
CompanyByte _current_company
Company currently doing an action.
void ShowBuyCompanyDialog(CompanyID company)
Show the query to buy another company.
uint32 TileIndex
The index/ID of a Tile.
Types related to vehicles.
CommandCost CheckTileOwnership(TileIndex tile)
Check whether the current owner owns the stuff on the given tile.
void CompanyAdminUpdate(const Company *company)
Called whenever company related information changes in order to notify admins.
Types related to companies.
Owner
Enum for all companies/owners.
int CompanyServiceInterval(const Company *c, VehicleType type)
Get the service interval for the given company and vehicle type.
CommandCost CheckOwnership(Owner owner, TileIndex tile=0)
Check whether the current owner owns something.
Types related to the graphics and/or input devices.