OpenTTD
Data Structures | Typedefs | Functions | Variables
roadstop.cpp File Reference

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

VehicleFindVehiclesInRoadStop (Vehicle *v, void *data)
 Add road vehicles to the station's list if needed. More...
 

Variables

RoadStopPool _roadstop_pool ("RoadStop")
 The pool of roadstops. More...
 

Detailed Description

Implementation of the roadstop base class.

Definition in file roadstop.cpp.

Function Documentation

◆ FindVehiclesInRoadStop()

Vehicle* FindVehiclesInRoadStop ( Vehicle v,
void *  data 
)

Add road vehicles to the station's list if needed.

Parameters
vthe found vehicle
datathe extra data used to make our decision
Returns
always NULL

Definition at line 330 of file roadstop.cpp.

References RoadStopEntryRebuilderHelper::dir, Vehicle::direction, DirToDiagDir(), SpecializedVehicle< RoadVehicle, Type >::From(), Vehicle::IsPrimaryVehicle(), RVSB_IN_ROAD_STOP, RoadVehicle::state, BaseVehicle::type, VEH_ROAD, RoadStopEntryRebuilderHelper::vehicles, Vehicle::vehstatus, and VS_CRASHED.

Variable Documentation

◆ _roadstop_pool

RoadStopPool _roadstop_pool("RoadStop")

The pool of roadstops.