struct
StarID32 bits field used to uniquely identify a star within the galaxy.
The galaxy is divided in sectors, the star ID keeps the index to the sector and the index of the star within the sector. Some bits are reserved to be able to form PlanetID. The bits are organized as:
31 24 23 12 11 0 00000000 sectorIndex starIndex
Constructors, destructors, conversion operators
Public functions
- auto GetRecord() const -> cStarRecord*
- auto GetSectorIndex() const -> unsigned int
- Returns the index of the sector where this star is stored.
- auto GetStarIndex() const -> unsigned int
- Returns the index of the star within its star sector.
- auto StarID::operator==(const StarID& b) const -> bool
- auto StarID::operator!=(const StarID& b) const -> bool
- auto StarID::operator<(const StarID& b) const -> bool
- auto StarID::operator>(const StarID& b) const -> bool