diff options
author | rubidium <rubidium@openttd.org> | 2010-08-28 18:49:39 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-28 18:49:39 +0000 |
commit | 852bde0bad87b0aab2f8e70688989c76a4c34480 (patch) | |
tree | d61f47c7a9b62cc9f554093fc90a0e5e97282414 /src/newgrf_object.h | |
parent | 8fd9728e193b8bdfa1387429bd087feb12565e19 (diff) | |
download | openttd-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.h | 7 |
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 */ |