OpenTTD Source
20240917-master-g9ab0a47812
|
Go to the documentation of this file.
18 enum class LoanCommand : uint8_t {
CommandCost CmdDecreaseLoan(DoCommandFlag flags, LoanCommand cmd, Money amount)
Decrease the loan of your company.
@ CMD_OFFLINE
the command cannot be executed in a multiplayer game; single-player only
Owner
Enum for all companies/owners.
@ CMD_INCREASE_LOAN
increase the loan from the bank
@ CMD_NO_EST
the command is never estimated.
@ CMD_DECREASE_LOAN
decrease the loan from the bank
@ CMDT_CHEAT
A cheat of some sorts.
DoCommandFlag
List of flags for a command.
@ CMD_DEITY
the command may be executed by COMPANY_DEITY
Common return value for all commands.
PauseMode
Modes of pausing we've got.
@ CMD_PAUSE
pause the game
CommandCost CmdPause(DoCommandFlag flags, PauseMode mode, bool pause)
Pause/Unpause the game (server-only).
CommandCost CmdChangeBankBalance(DoCommandFlag flags, TileIndex tile, Money delta, CompanyID company, ExpensesType expenses_type)
Change the bank bank balance of a company by inserting or removing money without affecting the loan.
@ CMD_MONEY_CHEAT
do the money cheat
CommandCost CmdSetCompanyMaxLoan(DoCommandFlag flags, CompanyID company, Money amount)
Sets the max loan amount of your company.
CommandCost CmdMoneyCheat(DoCommandFlag flags, Money amount)
Change the financial flow of your company.
@ CMDT_SERVER_SETTING
Pausing/removing companies/server settings.
ExpensesType
Types of expenses.
@ CMD_SET_COMPANY_MAX_LOAN
sets the max loan for the company
CommandCost CmdIncreaseLoan(DoCommandFlag flags, LoanCommand cmd, Money amount)
Increase the loan of your company.
@ CMD_SERVER
the command can only be initiated by the server
@ CMD_CHANGE_BANK_BALANCE
change bank balance to charge costs or give money from a GS
@ CMDT_MONEY_MANAGEMENT
Management of money, i.e. loans.