Translations update
[openttd/fttd.git] / src / signs_base.h
blob6170dbbc298dbc6b3883d04ce5ef27e609a63b1b
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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 */
10 /** @file signs_base.h Base class for signs. */
12 #ifndef SIGNS_BASE_H
13 #define SIGNS_BASE_H
15 #include "signs_type.h"
16 #include "viewport_type.h"
17 #include "core/pool_type.hpp"
18 #include "company_type.h"
20 struct Sign : PooledItem <Sign, SignID, 16, 64000> {
21 char *name;
22 ViewportSign sign;
23 int32 x;
24 int32 y;
25 int32 z;
26 OwnerByte owner; // placed by this company. Anyone can delete them though. OWNER_NONE for gray signs from old games.
28 Sign(Owner owner = INVALID_OWNER);
29 ~Sign();
31 void UpdateVirtCoord();
34 #define FOR_ALL_SIGNS_FROM(var, start) FOR_ALL_ITEMS_FROM(Sign, sign_index, var, start)
35 #define FOR_ALL_SIGNS(var) FOR_ALL_SIGNS_FROM(var, 0)
37 #endif /* SIGNS_BASE_H */