OpenTTD Source
20241121-master-g67a0fccfad
|
Base classes/functions for base stations. More...
#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 |
Base classes/functions for base stations.
Definition in file base_station_base.h.
std::vector<SpecMapping<T> >& GetStationSpecList | ( | BaseStation * | bst | ) |
Get spec mapping list for each supported custom spec type.
T | Spec type. |
bst | Station of custom spec list. |