MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetTileArea

Method GetTileArea

src/waypoint.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35TileArea Waypoint::GetTileArea(StationType type) const
36{
37 switch (type) {
38 case StationType::RailWaypoint: return this->train_station;
39 case StationType::RoadWaypoint: return this->road_waypoint_area;
40 case StationType::Buoy: return {this->xy, 1, 1};
41 default: NOT_REACHED();
42 }
43}
44
45Waypoint::~Waypoint()
46{

Callers 4

GetRailTileAreaFunction · 0.45
GetCenterTileMethod · 0.45
CalcClosestStationTileFunction · 0.45
FindWaterRegionPathMethod · 0.45

Calls 1

NOT_REACHEDFunction · 0.85

Tested by

no test coverage detected