summaryrefslogtreecommitdiff
path: root/src/newgrf_object.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-28 18:49:39 +0000
committerrubidium <rubidium@openttd.org>2010-08-28 18:49:39 +0000
commit852bde0bad87b0aab2f8e70688989c76a4c34480 (patch)
treed61f47c7a9b62cc9f554093fc90a0e5e97282414 /src/newgrf_object.h
parent8fd9728e193b8bdfa1387429bd087feb12565e19 (diff)
downloadopenttd-852bde0bad87b0aab2f8e70688989c76a4c34480.tar.xz
(svn r20660) -Codechange: implement (most) of action2 support for objects
Diffstat (limited to 'src/newgrf_object.h')
-rw-r--r--src/newgrf_object.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/newgrf_object.h b/src/newgrf_object.h
index 09d3df2ef..0035ede93 100644
--- a/src/newgrf_object.h
+++ b/src/newgrf_object.h
@@ -12,9 +12,11 @@
#ifndef NEWGRF_OBJECT_H
#define NEWGRF_OBJECT_H
+#include "newgrf_callbacks.h"
#include "date_type.h"
#include "economy_func.h"
#include "strings_type.h"
+#include "tile_cmd.h"
#include "object_type.h"
#include "newgrf_animation_type.h"
#include "newgrf_class.h"
@@ -114,4 +116,9 @@ typedef NewGRFClass<ObjectSpec, ObjectClassID, OBJECT_CLASS_MAX> ObjectClass;
/** Mapping of purchase for objects. */
static const CargoID CT_PURCHASE_OBJECT = 1;
+uint16 GetObjectCallback(CallbackID callback, uint32 param1, uint32 param2, const ObjectSpec *spec, const Object *o, TileIndex tile);
+
+void DrawNewObjectTile(TileInfo *ti, const ObjectSpec *spec);
+void DrawNewObjectTileInGUI(int x, int y, const ObjectSpec *spec);
+
#endif /* NEWGRF_OBJECT_H */