vehicle.h
changeset 2658 638ad22bdc70
parent 2651 901ece5377b7
child 2666 ae363cb59955
equal deleted inserted replaced
2657:c418f625b2fd 2658:638ad22bdc70
   139 
   139 
   140 typedef struct VehicleShip {
   140 typedef struct VehicleShip {
   141 	byte state;
   141 	byte state;
   142 } VehicleShip;
   142 } VehicleShip;
   143 
   143 
   144 // not used ATM
       
   145 struct WorldSprite {
       
   146 	struct WorldSprite *next;			// next sprite in hash chain
       
   147 	uint16 image;			// sprite number for this vehicle
       
   148 
       
   149 	// screen coordinates
       
   150 	int16 left, top, right, bottom;
       
   151 
       
   152 	// world coordinates
       
   153 	int16 x;
       
   154 	int16 y;
       
   155 	byte z;
       
   156 
       
   157 	int8 x_offs;			// x offset for vehicle sprite
       
   158 	int8 y_offs;			// y offset for vehicle sprite
       
   159 
       
   160 	byte width;				// width of vehicle sprite
       
   161 	byte height;			// height of vehicle sprite
       
   162 	byte depth;				// depth of vehicle sprite
       
   163 
       
   164 	byte flags;				// draw flags
       
   165 };
       
   166 
   144 
   167 struct Vehicle {
   145 struct Vehicle {
   168 	byte type;	// type, ie roadven,train,ship,aircraft,special
   146 	byte type;	// type, ie roadven,train,ship,aircraft,special
   169 	byte subtype;     // subtype (Filled with values from EffectVehicles or TrainSubTypes)
   147 	byte subtype;     // subtype (Filled with values from EffectVehicles or TrainSubTypes)
   170 
   148