diff options
author | rubidium <rubidium@openttd.org> | 2007-12-21 22:50:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-21 22:50:51 +0000 |
commit | 6a9e77e0796a62a62e95ba5870f26b51a6b66c77 (patch) | |
tree | 92a4b604ccb6ae352038348f78b52b1f91cfd691 /src/vehicle.h | |
parent | 1b53dbf9cc91f99db84a81c1f7cfa4ed8a6a7779 (diff) | |
download | openttd-6a9e77e0796a62a62e95ba5870f26b51a6b66c77.tar.xz |
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r-- | src/vehicle.h | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/src/vehicle.h b/src/vehicle.h index 7ab327fee..0b7f35d67 100644 --- a/src/vehicle.h +++ b/src/vehicle.h @@ -11,29 +11,11 @@ #include "track_type.h" #include "rail_type.h" #include "road_type.h" +#include "cargo_type.h" #include "window_type.h" #include "cargopacket.h" #include "texteff.hpp" - -/** The returned bits of VehicleEnterTile. */ -enum VehicleEnterTileStatus { - VETS_ENTERED_STATION = 1, ///< The vehicle entered a station - VETS_ENTERED_WORMHOLE = 2, ///< The vehicle either entered a bridge, tunnel or depot tile (this includes the last tile of the bridge/tunnel) - VETS_CANNOT_ENTER = 3, ///< The vehicle cannot enter the tile - - /** - * Shift the VehicleEnterTileStatus this many bits - * to the right to get the station ID when - * VETS_ENTERED_STATION is set - */ - VETS_STATION_ID_OFFSET = 8, - - /** Bit sets of the above specified bits */ - VETSB_CONTINUE = 0, ///< The vehicle can continue normally - VETSB_ENTERED_STATION = 1 << VETS_ENTERED_STATION, ///< The vehicle entered a station - VETSB_ENTERED_WORMHOLE = 1 << VETS_ENTERED_WORMHOLE, ///< The vehicle either entered a bridge, tunnel or depot tile (this includes the last tile of the bridge/tunnel) - VETSB_CANNOT_ENTER = 1 << VETS_CANNOT_ENTER, ///< The vehicle cannot enter the tile -}; +#include "command_type.h" /** Road vehicle states */ enum RoadVehicleStates { @@ -829,4 +811,9 @@ static inline uint32 GetCmdSendToDepot(const Vehicle *v) return GetCmdSendToDepot(v->type); } +/* This one is not used anymore. */ +VARDEF VehicleID _vehicle_id_ctr_day; +VARDEF Vehicle *_place_clicked_vehicle; + + #endif /* VEHICLE_H */ |