2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file misc_cmd.h Miscellaneous command definitions. */
13 #include "command_type.h"
14 #include "economy_type.h"
16 enum PauseMode
: uint8_t;
18 enum class LoanCommand
: uint8_t {
24 CommandCost
CmdMoneyCheat(DoCommandFlag flags
, Money amount
);
25 CommandCost
CmdChangeBankBalance(DoCommandFlag flags
, TileIndex tile
, Money delta
, CompanyID company
, ExpensesType expenses_type
);
26 CommandCost
CmdIncreaseLoan(DoCommandFlag flags
, LoanCommand cmd
, Money amount
);
27 CommandCost
CmdDecreaseLoan(DoCommandFlag flags
, LoanCommand cmd
, Money amount
);
28 CommandCost
CmdSetCompanyMaxLoan(DoCommandFlag flags
, CompanyID company
, Money amount
);
29 CommandCost
CmdPause(DoCommandFlag flags
, PauseMode mode
, bool pause
);
31 DEF_CMD_TRAIT(CMD_MONEY_CHEAT
, CmdMoneyCheat
, CMD_OFFLINE
, CMDT_CHEAT
)
32 DEF_CMD_TRAIT(CMD_CHANGE_BANK_BALANCE
, CmdChangeBankBalance
, CMD_DEITY
, CMDT_MONEY_MANAGEMENT
)
33 DEF_CMD_TRAIT(CMD_INCREASE_LOAN
, CmdIncreaseLoan
, 0, CMDT_MONEY_MANAGEMENT
)
34 DEF_CMD_TRAIT(CMD_DECREASE_LOAN
, CmdDecreaseLoan
, 0, CMDT_MONEY_MANAGEMENT
)
35 DEF_CMD_TRAIT(CMD_SET_COMPANY_MAX_LOAN
, CmdSetCompanyMaxLoan
, CMD_DEITY
, CMDT_MONEY_MANAGEMENT
)
36 DEF_CMD_TRAIT(CMD_PAUSE
, CmdPause
, CMD_SERVER
| CMD_NO_EST
, CMDT_SERVER_SETTING
)
38 #endif /* MISC_CMD_H */