src/yapf/yapf.h
changeset 6574 e1d1a12faaf7
parent 6573 7624f942237f
child 6719 4cc327ad39d5
equal deleted inserted replaced
6573:7624f942237f 6574:e1d1a12faaf7
    86  *   6. optionally repeat steps 3..5
    86  *   6. optionally repeat steps 3..5
    87  *   7. in case of troubles contact KUDr
    87  *   7. in case of troubles contact KUDr
    88  */
    88  */
    89 
    89 
    90 /** Base struct for track followers. */
    90 /** Base struct for track followers. */
    91 typedef struct FollowTrack_t
    91 struct FollowTrack_t
    92 {
    92 {
    93 	const Vehicle*      m_veh;           ///< moving vehicle
    93 	const Vehicle*      m_veh;           ///< moving vehicle
    94 	TileIndex           m_old_tile;      ///< the origin (vehicle moved from) before move
    94 	TileIndex           m_old_tile;      ///< the origin (vehicle moved from) before move
    95 	Trackdir            m_old_td;        ///< the trackdir (the vehicle was on) before move
    95 	Trackdir            m_old_td;        ///< the trackdir (the vehicle was on) before move
    96 	TileIndex           m_new_tile;      ///< the new tile (the vehicle has entered)
    96 	TileIndex           m_new_tile;      ///< the new tile (the vehicle has entered)
    98 	DiagDirection       m_exitdir;       ///< exit direction (leaving the old tile)
    98 	DiagDirection       m_exitdir;       ///< exit direction (leaving the old tile)
    99 	bool                m_is_tunnel;     ///< last turn passed tunnel
    99 	bool                m_is_tunnel;     ///< last turn passed tunnel
   100 	bool                m_is_bridge;     ///< last turn passed bridge ramp
   100 	bool                m_is_bridge;     ///< last turn passed bridge ramp
   101 	bool                m_is_station;    ///< last turn passed station
   101 	bool                m_is_station;    ///< last turn passed station
   102 	int                 m_tiles_skipped; ///< number of skipped tunnel or station tiles
   102 	int                 m_tiles_skipped; ///< number of skipped tunnel or station tiles
   103 } FollowTrack_t;
   103 };
   104 
   104 
   105 /** Initializes FollowTrack_t structure */
   105 /** Initializes FollowTrack_t structure */
   106 void FollowTrackInit(FollowTrack_t *This, const Vehicle* v);
   106 void FollowTrackInit(FollowTrack_t *This, const Vehicle* v);
   107 
   107 
   108 /** Main track follower routines */
   108 /** Main track follower routines */