OpenTTD Source: StationNameInformation Struct Reference

OpenTTD Source 15.0-RC2

Public Member Functions | Data Fields
StationNameInformation Struct Reference

Information to handle station action 0 property 24 correctly. More...

## Public Member Functions
bool | IsAvailable (StringID str) const
void | SetUsed (StringID str)

## Data Fields
std::bitset< STR_SV_STNAME_FALLBACK - STR_SV_STNAME > | used_names
| Used default station suffixes.
std::bitset< NUM_INDUSTRYTYPES > | indtypes
| Bit set indicating when an industry type has been found.

## Detailed Description

Information to handle station action 0 property 24 correctly.

Definition at line 228 of file station_cmd.cpp.

## Member Function Documentation

## ◆ IsAvailable()

bool StationNameInformation::IsAvailable | ( | StringID | str | ) | const
| inline

Definition at line 232 of file station_cmd.cpp.

## ◆ SetUsed()

void StationNameInformation::SetUsed | ( | StringID | str | ) |
| inline

Definition at line 238 of file station_cmd.cpp.

## Field Documentation

## ◆ indtypes

std::bitset<NUM_INDUSTRYTYPES> StationNameInformation::indtypes

Bit set indicating when an industry type has been found.

Definition at line 230 of file station_cmd.cpp.

Referenced by GenerateStationName().

## ◆ used_names

std::bitset<STR_SV_STNAME_FALLBACK - STR_SV_STNAME> StationNameInformation::used_names

Used default station suffixes.

Definition at line 229 of file station_cmd.cpp.

The documentation for this struct was generated from the following file:

- src/station_cmd.cpp