diff options
author | rubidium <rubidium@openttd.org> | 2010-08-26 15:31:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-26 15:31:40 +0000 |
commit | e2e26190d55fe5a7e053791ac9bce095b303be10 (patch) | |
tree | 94224f8433a94c28866b63347b64c3f7c8e4f201 /src/newgrf_station.h | |
parent | 4efa2efdbba6f08b2ee4ca3aacb2aeb792429af4 (diff) | |
download | openttd-e2e26190d55fe5a7e053791ac9bce095b303be10.tar.xz |
(svn r20623) -Codechange: unify the storing of animation related information
Diffstat (limited to 'src/newgrf_station.h')
-rw-r--r-- | src/newgrf_station.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/newgrf_station.h b/src/newgrf_station.h index c42df3c54..1e955e9e9 100644 --- a/src/newgrf_station.h +++ b/src/newgrf_station.h @@ -12,6 +12,7 @@ #ifndef NEWGRF_STATION_H #define NEWGRF_STATION_H +#include "newgrf_animation_type.h" #include "newgrf_callbacks.h" #include "newgrf_class.h" #include "newgrf_commons.h" @@ -96,15 +97,12 @@ struct StationSpec { byte wires; ///< Bitmask of base tiles (0 - 7) which should contain elrail wires byte blocked; ///< Bitmask of base tiles (0 - 7) which are blocked to trains + AnimationInfo animation; + byte lengths; byte *platforms; StationLayout **layouts; bool copied_layouts; - - uint8 anim_frames; - uint8 anim_status; - uint8 anim_speed; - uint16 anim_triggers; }; /** Struct containing information relating to station classes. */ @@ -132,18 +130,8 @@ void DeallocateSpecFromStation(BaseStation *st, byte specindex); /* Draw representation of a station tile for GUI purposes. */ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID sclass, uint station); -enum StatAnimTrigger { - STAT_ANIM_BUILT, - STAT_ANIM_NEW_CARGO, - STAT_ANIM_CARGO_TAKEN, - STAT_ANIM_TRAIN_ARRIVES, - STAT_ANIM_TRAIN_DEPARTS, - STAT_ANIM_TRAIN_LOADS, - STAT_ANIM_250_TICKS, -}; - void AnimateStationTile(TileIndex tile); -void StationAnimationTrigger(const BaseStation *st, TileIndex tile, StatAnimTrigger trigger, CargoID cargo_type = CT_INVALID); +void TriggerStationAnimation(const BaseStation *st, TileIndex tile, StationAnimationTrigger trigger, CargoID cargo_type = CT_INVALID); void StationUpdateAnimTriggers(BaseStation *st); #endif /* NEWGRF_STATION_H */ |