src/vehicle_base.h
changeset 9052 392f5995d323
parent 8965 a145f62a6272
child 9110 55864e1fc263
equal deleted inserted replaced
9051:0becfc1d0c09 9052:392f5995d323
   247 	uint16 cargo_cap;        // total capacity
   247 	uint16 cargo_cap;        // total capacity
   248 	byte cargo_subtype;      ///< Used for livery refits (NewGRF variations)
   248 	byte cargo_subtype;      ///< Used for livery refits (NewGRF variations)
   249 	CargoList cargo;         ///< The cargo this vehicle is carrying
   249 	CargoList cargo;         ///< The cargo this vehicle is carrying
   250 
   250 
   251 
   251 
   252 	byte day_counter;        // increased by one for each day
   252 	byte day_counter;        ///< Increased by one for each day
   253 	byte tick_counter;       // increased by one for each tick
   253 	byte tick_counter;       ///< Increased by one for each tick
       
   254 	byte running_ticks;      ///< Number of ticks this vehicle was not stopped this day
   254 
   255 
   255 	/* Begin Order-stuff */
   256 	/* Begin Order-stuff */
   256 	Order current_order;     ///< The current order (+ status, like: loading)
   257 	Order current_order;     ///< The current order (+ status, like: loading)
   257 	VehicleOrderID cur_order_index; ///< The index to the current order
   258 	VehicleOrderID cur_order_index; ///< The index to the current order
   258 
   259 
   289 	bool leave_depot_instantly; // NOSAVE: stores if the vehicle needs to leave the depot it just entered. Used by autoreplace
   290 	bool leave_depot_instantly; // NOSAVE: stores if the vehicle needs to leave the depot it just entered. Used by autoreplace
   290 
   291 
   291 	uint16 load_unload_time_rem;
   292 	uint16 load_unload_time_rem;
   292 	byte vehicle_flags;         // Used for gradual loading and other miscellaneous things (@see VehicleFlags enum)
   293 	byte vehicle_flags;         // Used for gradual loading and other miscellaneous things (@see VehicleFlags enum)
   293 
   294 
   294 	Money profit_this_year;
   295 	Money profit_this_year;        ///< Profit this year << 8, low 8 bits are fract
   295 	Money profit_last_year;
   296 	Money profit_last_year;        ///< Profit last year << 8, low 8 bits are fract
   296 	Money value;
   297 	Money value;
   297 
   298 
   298 	GroupID group_id;              ///< Index of group Pool array
   299 	GroupID group_id;              ///< Index of group Pool array
   299 
   300 
   300 	/* Used for timetabling. */
   301 	/* Used for timetabling. */