OpenTTD Source  20240919-master-gdf0233f4c2
base_station_base.h File Reference
#include "core/pool_type.hpp"
#include "command_type.h"
#include "viewport_type.h"
#include "station_map.h"
#include "timer/timer_game_calendar.h"

Go to the source code of this file.

Data Structures

struct  SpecMapping< T >
 
struct  RoadStopTileData
 
struct  StationRect
 StationRect - used to track station spread out rectangle - cheaper than scanning whole map. More...
 
struct  BaseStation
 Base class for all station-ish types. More...
 
struct  SpecializedStation< T, Tis_waypoint >
 Class defining several overloaded accessors so we don't have to cast base stations that often. More...
 

Typedefs

typedef Pool< BaseStation, StationID, 32, 64000 > StationPool
 

Functions

template<class T >
std::vector< SpecMapping< T > > & GetStationSpecList (BaseStation *bst)
 Get spec mapping list for each supported custom spec type. More...
 
template<>
std::vector< SpecMapping< StationSpec > > & GetStationSpecList< StationSpec > (BaseStation *bst)
 
template<>
std::vector< SpecMapping< RoadStopSpec > > & GetStationSpecList< RoadStopSpec > (BaseStation *bst)
 

Variables

StationPool _station_pool
 The pool of stations.
 

Detailed Description

Base classes/functions for base stations.

Definition in file base_station_base.h.

Function Documentation

◆ GetStationSpecList()

template<class T >
std::vector<SpecMapping<T> >& GetStationSpecList ( BaseStation bst)

Get spec mapping list for each supported custom spec type.

Template Parameters
TSpec type.
Parameters
bstStation of custom spec list.
Returns
Speclist of custom spec type.