vehicle.h
changeset 2436 7d5df545bd5d
parent 2293 b48192aec903
child 2522 c250fcafaba6
equal deleted inserted replaced
2435:9b9d43988058 2436:7d5df545bd5d
   348  * in depots), returns 0xFF.
   348  * in depots), returns 0xFF.
   349  */
   349  */
   350 Trackdir GetVehicleTrackdir(const Vehicle* v);
   350 Trackdir GetVehicleTrackdir(const Vehicle* v);
   351 
   351 
   352 /* returns true if staying in the same tile */
   352 /* returns true if staying in the same tile */
   353 bool GetNewVehiclePos(Vehicle *v, GetNewVehiclePosResult *gp);
   353 bool GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
   354 byte GetDirectionTowards(Vehicle *v, int x, int y);
   354 byte GetDirectionTowards(const Vehicle *v, int x, int y);
   355 
   355 
   356 #define BEGIN_ENUM_WAGONS(v) do {
   356 #define BEGIN_ENUM_WAGONS(v) do {
   357 #define END_ENUM_WAGONS(v) } while ( (v=v->next) != NULL);
   357 #define END_ENUM_WAGONS(v) } while ( (v=v->next) != NULL);
   358 
   358 
   359 /* vehicle.c */
   359 /* vehicle.c */