diff options
author | darkvater <darkvater@openttd.org> | 2004-11-14 16:42:08 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-11-14 16:42:08 +0000 |
commit | e656a91736a02badd26b6674081c0adac64dd83c (patch) | |
tree | e6059ce764e14f6e5dc3014688a574c4f499e9d4 /engine.h | |
parent | a415b8ecced3e8939d858d5b49acf337b26ef17e (diff) | |
download | openttd-e656a91736a02badd26b6674081c0adac64dd83c.tar.xz |
(svn r602) -newgrf: Move DrawTileSeqStruct & co and struct SpriteGroup to sprite.h (pasky)
Diffstat (limited to 'engine.h')
-rw-r--r-- | engine.h | 21 |
1 files changed, 3 insertions, 18 deletions
@@ -1,6 +1,8 @@ #ifndef ENGINE_H #define ENGINE_H +#include "sprite.h" + typedef struct RailVehicleInfo { byte image_index; byte flags; /* 1=multihead engine, 2=wagon */ @@ -80,24 +82,6 @@ enum { void StartupEngines(); -struct SpriteGroup { - // XXX: Would anyone ever need more than 16 spritesets? Maybe we should - // use even less, now we take whole 8kb for custom sprites table, oh my! - byte sprites_per_set; // means number of directions - 4 or 8 - - // Loaded = in motion, loading = not moving - // Each group contains several spritesets, for various loading stages - - // XXX: For stations the meaning is different - loaded is for stations - // with small amount of cargo whilst loading is for stations with a lot - // of da stuff. - - byte loaded_count; - uint16 loaded[16]; // sprite ids - byte loading_count; - uint16 loading[16]; // sprite ids -}; - extern byte _global_cargo_id[NUM_LANDSCAPE][NUM_CARGO]; enum { CID_DEFAULT = 29, @@ -173,4 +157,5 @@ extern RoadVehicleInfo _road_vehicle_info[NUM_ROAD_ENGINES]; #define ship_vehicle_info(e) _ship_vehicle_info[e - SHIP_ENGINES_INDEX] #define aircraft_vehinfo(e) _aircraft_vehicle_info[e - AIRCRAFT_ENGINES_INDEX] #define road_vehicle_info(e) (&_road_vehicle_info[e - ROAD_ENGINES_INDEX]) + #endif |