File diff r10489:56d60b4765b1 → r10490:36e425ea6fc5
src/vehicle_base.h
Show inline comments
 
@@ -203,26 +203,24 @@ private:
 
	Vehicle *next;           ///< pointer to the next vehicle in the chain
 
	Vehicle *previous;       ///< NOSAVE: pointer to the previous vehicle in the chain
 
	Vehicle *first;          ///< NOSAVE: pointer to the first vehicle in the chain
 

	
 
	Vehicle *next_shared;     ///< pointer to the next vehicle that shares the order
 
	Vehicle *previous_shared; ///< NOSAVE: pointer to the previous vehicle in the shared order chain
 
	Vehicle *first_shared;    ///< NOSAVE: pointer to the first vehicle in the shared order chain
 
public:
 
	friend const SaveLoad *GetVehicleDescription(VehicleType vt); ///< So we can use private/protected variables in the saveload code
 
	friend void AfterLoadVehicles(bool clear_te_id);              ///< So we can set the previous and first pointers while loading
 
	friend bool LoadOldVehicle(LoadgameState *ls, int num);       ///< So we can set the proper next pointer while loading
 

	
 
	Vehicle *depot_list;     ///< NOSAVE: linked list to tell what vehicles entered a depot during the last tick. Used by autoreplace
 

	
 
	char *name;              ///< Name of vehicle
 

	
 
	TileIndex tile;          ///< Current tile index
 

	
 
	/**
 
	 * Heading for this tile.
 
	 * For airports and train stations this tile does not necessarily belong to the destination station,
 
	 * but it can be used for heuristical purposes to estimate the distance.
 
	 */
 
	TileIndex dest_tile;
 

	
 
	Money profit_this_year;        ///< Profit this year << 8, low 8 bits are fract
 
@@ -300,26 +298,24 @@ public:
 

	
 
	byte day_counter;        ///< Increased by one for each day
 
	byte tick_counter;       ///< Increased by one for each tick
 
	byte running_ticks;      ///< Number of ticks this vehicle was not stopped this day
 

	
 
	byte vehstatus;                 ///< Status
 
	Order current_order;            ///< The current order (+ status, like: loading)
 
	VehicleOrderID num_orders;      ///< How many orders there are in the list
 
	VehicleOrderID cur_order_index; ///< The index to the current order
 

	
 
	Order *orders;                  ///< Pointer to the first order for this vehicle
 

	
 
	bool leave_depot_instantly;     ///< NOSAVE: stores if the vehicle needs to leave the depot it just entered. Used by autoreplace
 

	
 
	byte vehicle_flags;             ///< Used for gradual loading and other miscellaneous things (@see VehicleFlags enum)
 
	uint16 load_unload_time_rem;
 

	
 
	GroupID group_id;               ///< Index of group Pool array
 

	
 
	byte subtype;                   ///< subtype (Filled with values from EffectVehicles/TrainSubTypes/AircraftSubTypes)
 

	
 
	union {
 
		VehicleRail rail;
 
		VehicleAir air;
 
		VehicleRoad road;
 
		VehicleEffect effect;