![]() |
VR-Forces 5.0.3 Developer's Guide
|
Aids in creating and parsing nav sector names.
Static Public Member Functions | |
| static DtString | generateRandomId (unsigned length=4) |
| static DtString | navDataTypeToString (DtNavSectorDataType &dt) |
| static DtNavSectorDataType | navDataTypeFromString (const DtString &dtStr) |
Protected Member Functions | |
| void | assembleFullName () const |
| void | parseFullName () const |
Protected Attributes | |
| DtString | myFullName |
| DtString | myBaseName |
| DtString | myProfile |
| int | myX |
| int | myY |
| DtNavSectorDataType | myNavDataType |
| DtString | myRandomId |
| DtNavSectorName::DtNavSectorName | ( | const DtNavSectorName & | other | ) |
Constructors.
| DtNavSectorName::DtNavSectorName | ( | const DtString & | fullName | ) |
Constructors.
| DtNavSectorName::DtNavSectorName | ( | const DtString & | profile, |
| int | x, | ||
| int | y, | ||
| DtNavSectorDataType | navDataType, | ||
| const DtString & | randomId | ||
| ) |
Constructors.
| DtNavSectorName::DtNavSectorName | ( | const DtString & | profile, |
| DtNavSectorDataType | navDataType, | ||
| const DtString & | randomId | ||
| ) |
Constructors.
| const DtString& DtNavSectorName::fullName | ( | ) | const |
The full sector name.
| const DtString& DtNavSectorName::baseName | ( | ) | const |
The base sector name (everything except for the random ID).
| const DtString& DtNavSectorName::profile | ( | ) | const |
The name of the profile for this sector.
| void DtNavSectorName::setProfile | ( | const DtString & | prof | ) |
Resets the profile name.
| int DtNavSectorName::x | ( | ) | const |
The sector x coordinate.
| int DtNavSectorName::y | ( | ) | const |
The sector y coordinate.
| DtNavSectorDataType DtNavSectorName::navDataType | ( | ) | const |
The sector nav data type.
| void DtNavSectorName::setNavDataType | ( | DtNavSectorDataType | dataType | ) |
Resets the nav data type.
| const DtString& DtNavSectorName::randomId | ( | ) | const |
The sector's random ID string.
| void DtNavSectorName::setRandomId | ( | const DtString & | rId | ) |
Resets the random ID string.
Can be used to generate a new random ID.
|
virtual |
Comparison operators.
|
virtual |
Comparison operators.
|
virtual |
Comparison operators.
|
virtual |
Comparison operators.
|
virtual |
Comparison operators.
|
virtual |
Comparison operators.
|
static |
Convert between nav data type enum and string.
|
static |
Convert between nav data type enum and string.
|
protected |
Assembled the full name from the constituent parts.
|
protected |
Parses the full name into the constituent parts.
|
mutableprotected |
All members are mutable because it is expected that a DtNavSectorName is created with the full name or in pieces, and that the pieces or full name are then parsed or assembled as they are needed.
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |