class
#include <Spore/Simulator/cCelestialBody.h>
cCelestialBody Represents celestial bodies in a solar system (except planets), that is, the star and the comets.
Contents
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.
- void RemoveOwner() 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.