src/newgrf_station.h
branchnoai
changeset 10294 7798ae816af8
parent 9837 c9ec4f82e0d0
equal deleted inserted replaced
10292:7856e972f8aa 10294:7798ae816af8
    81 	byte lengths;
    81 	byte lengths;
    82 	byte *platforms;
    82 	byte *platforms;
    83 	StationLayout **layouts;
    83 	StationLayout **layouts;
    84 	bool copied_layouts;
    84 	bool copied_layouts;
    85 
    85 
       
    86 	uint8  anim_frames;
       
    87 	uint8  anim_status;
       
    88 	uint8  anim_speed;
       
    89 	uint16 anim_triggers;
       
    90 
    86 	/**
    91 	/**
    87 	 * NUM_CARGO real cargo plus three pseudo cargo sprite groups.
    92 	 * NUM_CARGO real cargo plus three pseudo cargo sprite groups.
    88 	 * Used for obtaining the sprite offset of custom sprites, and for
    93 	 * Used for obtaining the sprite offset of custom sprites, and for
    89 	 * evaluating callbacks.
    94 	 * evaluating callbacks.
    90 	 */
    95 	 */
   130 void DeallocateSpecFromStation(Station* st, byte specindex);
   135 void DeallocateSpecFromStation(Station* st, byte specindex);
   131 
   136 
   132 /* Draw representation of a station tile for GUI purposes. */
   137 /* Draw representation of a station tile for GUI purposes. */
   133 bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID sclass, uint station);
   138 bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID sclass, uint station);
   134 
   139 
       
   140 enum StatAnimTrigger {
       
   141 	STAT_ANIM_BUILT,
       
   142 	STAT_ANIM_NEW_CARGO,
       
   143 	STAT_ANIM_CARGO_TAKEN,
       
   144 	STAT_ANIM_TRAIN_ARRIVES,
       
   145 	STAT_ANIM_TRAIN_DEPARTS,
       
   146 	STAT_ANIM_TRAIN_LOADS,
       
   147 	STAT_ANIM_250_TICKS,
       
   148 };
       
   149 
       
   150 void AnimateStationTile(TileIndex tile);
       
   151 void StationAnimationTrigger(const Station *st, TileIndex tile, StatAnimTrigger trigger, CargoID cargo_type = CT_INVALID);
       
   152 void StationUpdateAnimTriggers(Station *st);
       
   153 
   135 #endif /* NEWGRF_STATION_H */
   154 #endif /* NEWGRF_STATION_H */