(svn r10254) -Feature: loading indicator, which shows in % how full a vehicle is while loading/unloading (TheJosh)
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "order.h"
|
||||
#include "rail.h"
|
||||
#include "road.h"
|
||||
#include "texteff.hpp"
|
||||
|
||||
/** The returned bits of VehicleEnterTile. */
|
||||
enum VehicleEnterTileStatus {
|
||||
@@ -245,6 +246,8 @@ struct Vehicle {
|
||||
int8 y_offs; // y offset for vehicle sprite
|
||||
EngineID engine_type;
|
||||
|
||||
TextEffectID fill_percent_te_id; // a text-effect id to a loading indicator object
|
||||
|
||||
/* for randomized variational spritegroups
|
||||
* bitmask used to resolve them; parts of it get reseeded when triggers
|
||||
* of corresponding spritegroups get matched */
|
||||
@@ -506,6 +509,7 @@ void *VehicleFromPos(TileIndex tile, void *data, VehicleFromPosProc *proc);
|
||||
void *VehicleFromPosXY(int x, int y, void *data, VehicleFromPosProc *proc);
|
||||
void CallVehicleTicks();
|
||||
Vehicle *FindVehicleOnTileZ(TileIndex tile, byte z);
|
||||
uint8 CalcPercentVehicleFilled(Vehicle *v);
|
||||
|
||||
void InitializeTrains();
|
||||
byte VehicleRandomBits();
|
||||
|
||||
Reference in New Issue
Block a user