OpenTTD Source: src/industry_cmd.h Source File

OpenTTD Source 13.1

industry_cmd.h
Go to the documentation of this file.
1 /*
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/>.
6 */
7
10 #ifndef INDUSTRY_CMD_H
11 #define INDUSTRY_CMD_H
12
13 #include "command_type.h"
14 #include "company_type.h"
15 #include "industry_type.h"
16
17 enum class IndustryAction : byte;
18 enum IndustryControlFlags : byte;
19
20 CommandCost CmdBuildIndustry(DoCommandFlag flags, TileIndex tile, IndustryType it, uint32 first_layout, bool fund, uint32 seed);
21 CommandCost CmdIndustryCtrl(DoCommandFlag flags, IndustryID ind_id, IndustryAction action, IndustryControlFlags ctlflags, Owner company_id, const std::string &text);
22
23 DEF_CMD_TRAIT(CMD_BUILD_INDUSTRY, CmdBuildIndustry, CMD_DEITY, CMDT_LANDSCAPE_CONSTRUCTION)
24 DEF_CMD_TRAIT(CMD_INDUSTRY_CTRL, CmdIndustryCtrl, CMD_DEITY | CMD_STR_CTRL, CMDT_OTHER_MANAGEMENT)
25
26 void CcBuildIndustry(Commands cmd, const CommandCost &result, TileIndex tile, IndustryType indtype, uint32, bool, uint32);
27
28 #endif /* INDUSTRY_CMD_H */
CmdBuildIndustry
enum IndustryAction byte enum IndustryControlFlags byte CommandCost CmdBuildIndustry(DoCommandFlag flags, TileIndex tile, IndustryType it, uint32 first_layout, bool fund, uint32 seed)
Build/Fund an industry.
Definition: industry_cmd.cpp:2013
IndustryAction
IndustryAction
Definition: industry.h:36
CommandCost
Common return value for all commands.
Definition: command_type.h:24
industry_type.h
command_type.h
CcBuildIndustry
void CcBuildIndustry(Commands cmd, const CommandCost &result, TileIndex tile, IndustryType indtype, uint32, bool, uint32)
Command callback.
Definition: industry_gui.cpp:227
IndustryControlFlags
IndustryControlFlags
Flags to control/override the behaviour of an industry.
Definition: industry.h:47
CmdIndustryCtrl
CommandCost CmdIndustryCtrl(DoCommandFlag flags, IndustryID ind_id, IndustryAction action, IndustryControlFlags ctlflags, Owner company_id, const std::string &text)
Change industry properties.
Definition: industry_cmd.cpp:2110
company_type.h