Fix 03cc0d6: Mark level crossings dirty when removing road from them, not from bridge...
[openttd-github.git] / src / economy_cmd.h
blob4a17e7a814494aa4de08b986c11f4a151edc7858
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 */
8 /** @file economy_cmd.h Command definitions related to the economy. */
10 #ifndef ECONOMY_CMD_H
11 #define ECONOMY_CMD_H
13 #include "command_type.h"
14 #include "company_type.h"
16 CommandCost CmdBuyShareInCompany(DoCommandFlag flags, CompanyID target_company);
17 CommandCost CmdSellShareInCompany(DoCommandFlag flags, CompanyID target_company);
18 CommandCost CmdBuyCompany(DoCommandFlag flags, CompanyID target_company);
20 DEF_CMD_TRAIT(CMD_BUY_SHARE_IN_COMPANY, CmdBuyShareInCompany, 0, CMDT_MONEY_MANAGEMENT)
21 DEF_CMD_TRAIT(CMD_SELL_SHARE_IN_COMPANY, CmdSellShareInCompany, 0, CMDT_MONEY_MANAGEMENT)
22 DEF_CMD_TRAIT(CMD_BUY_COMPANY, CmdBuyCompany, 0, CMDT_MONEY_MANAGEMENT)
24 #endif /* ECONOMY_CMD_H */