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/>.
10 /** @file signs_base.h Base class for signs. */
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> {
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
);
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 */