src/player.h
changeset 7317 e61af9d8a2b3
parent 6990 136a08baf0ed
child 7318 632cd0497770
equal deleted inserted replaced
7316:123a3a88b9c2 7317:e61af9d8a2b3
    51 
    51 
    52 	byte route_type_mask;
    52 	byte route_type_mask;
    53 
    53 
    54 	TileIndex start_tile_a;
    54 	TileIndex start_tile_a;
    55 	TileIndex cur_tile_a;
    55 	TileIndex cur_tile_a;
    56 	byte cur_dir_a;
    56 	DiagDirectionByte cur_dir_a;
    57 	byte start_dir_a;
    57 	DiagDirectionByte start_dir_a;
    58 
    58 
    59 	TileIndex start_tile_b;
    59 	TileIndex start_tile_b;
    60 	TileIndex cur_tile_b;
    60 	TileIndex cur_tile_b;
    61 	byte cur_dir_b;
    61 	DiagDirectionByte cur_dir_b;
    62 	byte start_dir_b;
    62 	DiagDirectionByte start_dir_b;
    63 
    63 
    64 	Vehicle *cur_veh; ///< only used by some states
    64 	Vehicle *cur_veh; ///< only used by some states
    65 
    65 
    66 	AiBuildRec src, dst, mid1, mid2;
    66 	AiBuildRec src, dst, mid1, mid2;
    67 
    67 
    75 struct Ai_PathFinderInfo {
    75 struct Ai_PathFinderInfo {
    76 	TileIndex start_tile_tl; ///< tl = top-left
    76 	TileIndex start_tile_tl; ///< tl = top-left
    77 	TileIndex start_tile_br; ///< br = bottom-right
    77 	TileIndex start_tile_br; ///< br = bottom-right
    78 	TileIndex end_tile_tl;   ///< tl = top-left
    78 	TileIndex end_tile_tl;   ///< tl = top-left
    79 	TileIndex end_tile_br;   ///< br = bottom-right
    79 	TileIndex end_tile_br;   ///< br = bottom-right
    80 	byte start_direction;    ///< 0 to 3 or AI_PATHFINDER_NO_DIRECTION
    80 	DiagDirection start_direction; ///< 0 to 3 or AI_PATHFINDER_NO_DIRECTION
    81 	byte end_direction;      ///< 0 to 3 or AI_PATHFINDER_NO_DIRECTION
    81 	DiagDirection end_direction;   ///< 0 to 3 or AI_PATHFINDER_NO_DIRECTION
    82 
    82 
    83 	TileIndex route[500];
    83 	TileIndex route[500];
    84 	byte route_extra[500];   ///< Some extra information about the route like bridge/tunnel
    84 	byte route_extra[500];   ///< Some extra information about the route like bridge/tunnel
    85 	int route_length;
    85 	int route_length;
    86 	int position;            ///< Current position in the build-path, needed to build the path
    86 	int position;            ///< Current position in the build-path, needed to build the path
   125 	Ai_SpecialVehicle special_vehicles[AI_MAX_SPECIAL_VEHICLES]; ///< Some vehicles have some special flags
   125 	Ai_SpecialVehicle special_vehicles[AI_MAX_SPECIAL_VEHICLES]; ///< Some vehicles have some special flags
   126 
   126 
   127 	TileIndex from_tile;
   127 	TileIndex from_tile;
   128 	TileIndex to_tile;
   128 	TileIndex to_tile;
   129 
   129 
   130 	byte from_direction;
   130 	DiagDirectionByte from_direction;
   131 	byte to_direction;
   131 	DiagDirectionByte to_direction;
   132 
   132 
   133 	bool from_deliver; ///< True if this is the station that GIVES cargo
   133 	bool from_deliver; ///< True if this is the station that GIVES cargo
   134 	bool to_deliver;
   134 	bool to_deliver;
   135 
   135 
   136 	TileIndex depot_tile;
   136 	TileIndex depot_tile;