Fix: CmdSetAutoReplace didn't validate group type and engine type match (#9950)
[openttd-github.git] / src / signs_base.h
blob795f3b8e58f2816e0c02907b2aba9ea915b2ac0d
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 signs_base.h Base class for signs. */
10 #ifndef SIGNS_BASE_H
11 #define SIGNS_BASE_H
13 #include "signs_type.h"
14 #include "viewport_type.h"
15 #include "core/pool_type.hpp"
16 #include "company_type.h"
17 #include <string>
19 typedef Pool<Sign, SignID, 16, 64000> SignPool;
20 extern SignPool _sign_pool;
22 struct Sign : SignPool::PoolItem<&_sign_pool> {
23 std::string name;
24 TrackedViewportSign sign;
25 int32 x;
26 int32 y;
27 int32 z;
28 Owner owner; // placed by this company. Anyone can delete them though. OWNER_NONE for gray signs from old games.
30 Sign(Owner owner = INVALID_OWNER);
31 ~Sign();
33 void UpdateVirtCoord();
36 #endif /* SIGNS_BASE_H */