src/vehicle.h
changeset 6478 817c29f1882b
parent 6338 0fb4f452873c
child 6479 b228a94a1832
equal deleted inserted replaced
6477:c0add302a009 6478:817c29f1882b
   425  * in depots), returns 0xFF.
   425  * in depots), returns 0xFF.
   426  */
   426  */
   427 Trackdir GetVehicleTrackdir(const Vehicle* v);
   427 Trackdir GetVehicleTrackdir(const Vehicle* v);
   428 
   428 
   429 /* returns true if staying in the same tile */
   429 /* returns true if staying in the same tile */
   430 bool GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
   430 void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
   431 Direction GetDirectionTowards(const Vehicle* v, int x, int y);
   431 Direction GetDirectionTowards(const Vehicle* v, int x, int y);
   432 
   432 
   433 #define BEGIN_ENUM_WAGONS(v) do {
   433 #define BEGIN_ENUM_WAGONS(v) do {
   434 #define END_ENUM_WAGONS(v) } while ( (v=v->next) != NULL);
   434 #define END_ENUM_WAGONS(v) } while ( (v=v->next) != NULL);
   435 
   435