summaryrefslogtreecommitdiff
path: root/src/object_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-28 17:29:12 +0000
committerrubidium <rubidium@openttd.org>2010-08-28 17:29:12 +0000
commit34da98f2b14e63c7042f44271d0b452fcd970737 (patch)
treecb2dccaff1ff58b3a26b4d0528d29b205f472c35 /src/object_type.h
parentf1f1c71a415354b00c744573eec7e7b2ce3cf7a4 (diff)
downloadopenttd-34da98f2b14e63c7042f44271d0b452fcd970737.tar.xz
(svn r20647) -Codechange: update some of the object spec information
Diffstat (limited to 'src/object_type.h')
-rw-r--r--src/object_type.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/object_type.h b/src/object_type.h
index d074878b2..db06669dd 100644
--- a/src/object_type.h
+++ b/src/object_type.h
@@ -13,14 +13,17 @@
#define OBJECT_TYPE_H
/** Types of objects. */
-enum ObjectType {
- OBJECT_TRANSMITTER = 0, ///< The large antenna
- OBJECT_LIGHTHOUSE = 1, ///< The nice lighthouse
- OBJECT_STATUE = 2, ///< Statue in towns
- OBJECT_OWNED_LAND = 3, ///< Owned land 'flag'
- OBJECT_HQ = 4, ///< HeadQuarter of a player
- OBJECT_MAX,
-};
+typedef uint16 ObjectType;
+
+static const ObjectType OBJECT_TRANSMITTER = 0; ///< The large antenna
+static const ObjectType OBJECT_LIGHTHOUSE = 1; ///< The nice lighthouse
+static const ObjectType OBJECT_STATUE = 2; ///< Statue in towns
+static const ObjectType OBJECT_OWNED_LAND = 3; ///< Owned land 'flag'
+static const ObjectType OBJECT_HQ = 4; ///< HeadQuarter of a player
+
+static const ObjectType NEW_OBJECT_OFFSET = 5; ///< Offset for new objects
+static const ObjectType NUM_OBJECTS = 256; ///< Number of supported objects
+static const ObjectType INVALID_OBJECT_TYPE = 0xFFFF; ///< An invalid object
/** Unique identifier for an object. */
typedef uint16 ObjectID;