class
cCelestialBodyRepresents 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
Public static variables
Constructors, destructors, conversion operators
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.