Simulator::cIdentityColorable class

A Simulator class inherited by all those classes that can have an identity color, such as empires, tribes, etc.

The following attributes are saved:

  • mIDColorID
  • mCachedColor

Derived classes

class cCivilization
class cEmpire
An empire in Space Stage.
class cTribe
A tribe from the tribe stage.

Public static variables

static const uint32_t TYPE

Constructors, destructors, conversion operators

~cIdentityColorable() virtual

Public functions

auto GetType() -> uint32_t virtual
auto AddRef() -> int pure virtual
auto Release() -> int pure virtual
auto Cast(uint32_t typeID) -> void* virtual
auto Write(void*) -> void virtual
auto Read(void*) -> void virtual
auto AssignNames(const eastl::string16& speciesName) -> void
Generates the identity name according to the color, and the names for all its entities.

Public variables

uint32_t mIDColorID
eastl::map<int, eastl::string16> mEntityNames
Names for different entities such as buildings, vehicles, etc. Check Identity.locale
Math::ColorRGB mCachedColor

Function documentation

void Simulator::cIdentityColorable::AssignNames(const eastl::string16& speciesName)

Generates the identity name according to the color, and the names for all its entities.

Parameters
speciesName