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 company_cmd.h Command definitions related to companies. */
13 #include "command_type.h"
14 #include "company_type.h"
17 enum ClientID
: uint32
;
20 CommandCost
CmdCompanyCtrl(DoCommandFlag flags
, CompanyCtrlAction cca
, CompanyID company_id
, CompanyRemoveReason reason
, ClientID client_id
);
21 CommandCost
CmdGiveMoney(DoCommandFlag flags
, uint32 money
, CompanyID dest_company
);
22 CommandCost
CmdRenameCompany(DoCommandFlag flags
, const std::string
&text
);
23 CommandCost
CmdRenamePresident(DoCommandFlag flags
, const std::string
&text
);
24 CommandCost
CmdSetCompanyManagerFace(DoCommandFlag flags
, CompanyManagerFace cmf
);
25 CommandCost
CmdSetCompanyColour(DoCommandFlag flags
, LiveryScheme scheme
, bool primary
, Colours colour
);
27 DEF_CMD_TRAIT(CMD_COMPANY_CTRL
, CmdCompanyCtrl
, CMD_SPECTATOR
| CMD_CLIENT_ID
| CMD_NO_EST
, CMDT_SERVER_SETTING
)
28 DEF_CMD_TRAIT(CMD_GIVE_MONEY
, CmdGiveMoney
, 0, CMDT_MONEY_MANAGEMENT
)
29 DEF_CMD_TRAIT(CMD_RENAME_COMPANY
, CmdRenameCompany
, 0, CMDT_OTHER_MANAGEMENT
)
30 DEF_CMD_TRAIT(CMD_RENAME_PRESIDENT
, CmdRenamePresident
, 0, CMDT_OTHER_MANAGEMENT
)
31 DEF_CMD_TRAIT(CMD_SET_COMPANY_MANAGER_FACE
, CmdSetCompanyManagerFace
, 0, CMDT_OTHER_MANAGEMENT
)
32 DEF_CMD_TRAIT(CMD_SET_COMPANY_COLOUR
, CmdSetCompanyColour
, 0, CMDT_OTHER_MANAGEMENT
)
34 #endif /* COMPANY_CMD_H */