Simulator::cCelestialBody class

Represents celestial bodies in a solar system (except planets), that is, the star and the comets.

This is the actual graphical representation that you see in the solar system view, with the graphics itself being mpEffect. Celestial bodies are used by the cSolarSystem class.

Base classes

class cGameData
Base class for most Simulator objects.

Public static variables

static const uint32_t TYPE
static const uint32_t NOUN_ID

Constructors, destructors, conversion operators

cCelestialBody(cCelestialBodyType type)

Public functions

auto Cast(uint32_t typeID) const -> void* override
auto GetNounID() const -> uint32_t override
auto Write(ISerializerStream* stream) -> bool override
auto Read(ISerializerStream* stream) -> bool override
auto WriteToXML(XmlSerializer*) -> bool override
auto GetCastID() const -> uint32_t override
Returns the TYPE field of the class, that is used for object casting.
auto RemoveOwner() -> void override

Public variables

cCelestialBodyType mType
cEllipticalOrbit mOrbit
Math::Vector3 mPosition
float mfRotationRate
eastl::string16 mName
Name of the celestial body, shown in a tooltip when hovering it with the mouse.
IVisualEffectPtr mpEffect
Effect 0x3D6F8D8 for type Comet.
cSolarHitSpherePtr mpHitSphere
float mfHitSphereSize
Probably used to detect the mouse.