OpenTTD: src/object_type.h Source File

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

object_type.h
Go to the documentation of this file.
1 /* $Id: object_type.h 25844 2013-10-12 16:35:50Z frosch $ */
2
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 */
9
12 #ifndef OBJECT_TYPE_H
13 #define OBJECT_TYPE_H
14
16 typedef uint16 ObjectType;
17
18 static const ObjectType OBJECT_TRANSMITTER = 0;
19 static const ObjectType OBJECT_LIGHTHOUSE = 1;
20 static const ObjectType OBJECT_STATUE = 2;
21 static const ObjectType OBJECT_OWNED_LAND = 3;
22 static const ObjectType OBJECT_HQ = 4;
23
24 static const ObjectType NUM_OBJECTS_PER_GRF = 255;
25
26 static const ObjectType NEW_OBJECT_OFFSET = 5;
27 static const ObjectType NUM_OBJECTS = 64000;
28 static const ObjectType INVALID_OBJECT_TYPE = 0xFFFF;
29
31 typedef uint32 ObjectID;
32
33 struct Object;
34 struct ObjectSpec;
35
36 static const ObjectID INVALID_OBJECT = 0xFFFFFFFF;
37
38 #endif /* OBJECT_TYPE_H */