OpenTTD Source 20241224-master-gee860a5c8e
|
Implementation of the roadstop base class. More...
#include "stdafx.h"
#include "roadveh.h"
#include "core/pool_func.hpp"
#include "roadstop_base.h"
#include "station_base.h"
#include "vehicle_func.h"
#include "safeguards.h"
Go to the source code of this file.
Data Structures | |
struct | RoadStopEntryRebuilderHelper |
Helper for finding RVs in a road stop. More... | |
Typedefs | |
typedef std::list< const RoadVehicle * > | RVList |
A list of road vehicles. | |
Functions | |
Vehicle * | FindVehiclesInRoadStop (Vehicle *v, void *data) |
Add road vehicles to the station's list if needed. | |
static DiagDirection | GetEntryDirection (bool east, Axis axis) |
Get the DiagDirection for entering the drive through stop from the given 'side' (east or west) on the given axis. | |
Variables | |
RoadStopPool | _roadstop_pool ("RoadStop") |
The pool of roadstops. | |
Implementation of the roadstop base class.
Definition in file roadstop.cpp.
typedef std::list<const RoadVehicle *> RVList |
A list of road vehicles.
Definition at line 312 of file roadstop.cpp.
Add road vehicles to the station's list if needed.
v | the found vehicle |
data | the extra data used to make our decision |
Definition at line 326 of file roadstop.cpp.
References RoadStopEntryRebuilderHelper::dir, Vehicle::direction, DirToDiagDir(), SpecializedVehicle< T, Type >::From(), Vehicle::IsPrimaryVehicle(), RVSB_IN_ROAD_STOP, RoadVehicle::state, BaseVehicle::type, VEH_ROAD, RoadStopEntryRebuilderHelper::vehicles, Vehicle::vehstatus, and VS_CRASHED.
Referenced by RoadStop::Entry::Rebuild().
|
static |
Get the DiagDirection for entering the drive through stop from the given 'side' (east or west) on the given axis.
east | Enter from the east when true or from the west when false. |
axis | The axis of the drive through stop. |
Definition at line 351 of file roadstop.cpp.
References AXIS_X, AXIS_Y, DIAGDIR_NE, DIAGDIR_NW, DIAGDIR_SE, DIAGDIR_SW, and RoadStop::east.
Referenced by RoadStop::Entry::Rebuild().