Spore ModAPI  2.4.0
API for creating C++ mods for Spore
Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
Simulator::cSpatialObject Class Referenceabstract

#include <cSpatialObject.h>

Inheritance diagram for Simulator::cSpatialObject:
Simulator::cBuilding Simulator::cCity Simulator::cCityTerritory Simulator::cCityWalls Simulator::cDefaultAoEArea Simulator::cDefaultBeamProjectile Simulator::cGameTerrainCursor Simulator::cInteractableObject Simulator::cLocomotiveObject Simulator::cOrnament Simulator::cPlanet Simulator::cVisiblePlanet

Public Member Functions

virtual void func00h (int)
 
virtual int func04h ()
 
virtual int func08h ()
 
virtual ~cSpatialObject ()
 
virtual void Reset ()
 Sets this model as invisible in its IModelWorld and sets the model and model world to nullptr. More...
 
virtual int Write (void *arg_0)
 
virtual int Read (void *arg_0)
 
virtual bool func1Ch (int)
 
virtual bool func20h ()
 
virtual bool IsRolledOver ()
 
virtual void SetIsRolledOver (bool bValue)
 
virtual const Vector3GetPosition ()
 
virtual const QuaternionGetOrientation ()
 
virtual float GetScale ()
 
virtual void SetPosition (const Vector3 &value)
 
virtual void SetOrientation (const Quaternion &value)
 
virtual void SetScale (float fValue)
 
virtual void func44h (int)
 
virtual bool IsOnView ()
 
virtual void SetIsOnView (bool bValue)
 
virtual bool IsSelected ()
 
virtual void SetIsSeleted (bool bValue)
 
virtual bool func58h ()
 
virtual Vector3 func5Ch ()
 
virtual Vector3 func60h ()
 
virtual void SetLocalExtents (const BoundingBox &localExtents, float fScale)
 
virtual const BoundingBoxGetLocalExtents ()
 
virtual int func6Ch (int)
 
virtual float GetBoundingRadius ()
 
virtual float GetFootprintRadius ()
 
virtual float GetMaxZ ()
 
virtual Pointfunc7Ch (bool, Point &dst)
 
virtual void func80h ()
 
virtual void func84h ()
 
virtual bool HasModelChanged ()
 
virtual void SetHasModelChanged (bool bValue)
 
virtual bool HasModel ()
 
virtual void SetModelKey (const ResourceKey &modelKey)
 
virtual const ResourceKeyGetModelKey ()
 
virtual bool func9Ch ()
 
virtual void SetModelWorld (Graphics::IModelWorld *pModelWorld)
 
virtual void funcA4h ()
 
virtual void SetModel (Graphics::Model *pModel, Graphics::IModelWorld *pModelWorld)
 
virtual Graphics::ModelGetModel ()
 
virtual Graphics::IModelWorldGetModelWorld ()
 
virtual void funcB4h (string &dst)
 
virtual void * Cast (uint32_t type)
 
virtual int AddRef ()=0
 
virtual int Release ()=0
 

Public Attributes

uint32_t mFlags
 

Static Public Attributes

static const uint32_t TYPE = 0x1186577
 

Protected Attributes

Vector3 mPosition
 
Quaternion mOrientation
 
BoundingBox mOriginalLocalExtents
 
BoundingBox mLocalExtents
 
uint32_t mMaterialType
 
float field_58
 
float mfBoundingRadius
 
float mfFootprintRadius
 
float mfScale
 
float mfDistanceFromCamera
 
bool mbIsSelected
 
bool mbIsRolledOver
 
bool mbIsInvalid
 
bool mbPickable
 
bool mbIsTangible
 
bool mbFixed
 If a model is fixed, it isn't affected by any kind of physics. More...
 
bool mbIsBeingEdited
 
bool mbModelChanged
 
bool mbTransformDirty
 
bool mbEnabled
 
bool mbInView
 
bool mbSupported
 
bool mbIsGhost
 
float field_7C
 
float field_80
 
float field_84
 
float field_88
 
float field_8C
 
ResourceKey mModelKey
 
intrusive_ptr< Graphics::ModelmpModel
 
intrusive_ptr< Graphics::IModelWorldmpModelWorld
 
bool field_A4
 
bool field_A5
 
bool mbKeepPinnedToPlanet
 
bool field_A7
 
uint32_t field_A8
 
int field_AC
 
int field_B0
 
float field_B4
 
int field_B8
 
int field_BC
 
vector< int > field_C0
 

Constructor & Destructor Documentation

◆ ~cSpatialObject()

virtual Simulator::cSpatialObject::~cSpatialObject ( )
virtual

Member Function Documentation

◆ AddRef()

virtual int Simulator::cSpatialObject::AddRef ( )
pure virtual

◆ Cast()

virtual void* Simulator::cSpatialObject::Cast ( uint32_t  type)
virtual

◆ func00h()

virtual void Simulator::cSpatialObject::func00h ( int  )
virtual

◆ func04h()

virtual int Simulator::cSpatialObject::func04h ( )
virtual

◆ func08h()

virtual int Simulator::cSpatialObject::func08h ( )
virtual

◆ func1Ch()

virtual bool Simulator::cSpatialObject::func1Ch ( int  )
virtual

◆ func20h()

virtual bool Simulator::cSpatialObject::func20h ( )
virtual

◆ func44h()

virtual void Simulator::cSpatialObject::func44h ( int  )
virtual

◆ func58h()

virtual bool Simulator::cSpatialObject::func58h ( )
virtual

◆ func5Ch()

virtual Vector3 Simulator::cSpatialObject::func5Ch ( )
virtual

◆ func60h()

virtual Vector3 Simulator::cSpatialObject::func60h ( )
virtual

◆ func6Ch()

virtual int Simulator::cSpatialObject::func6Ch ( int  )
virtual

◆ func7Ch()

virtual Point& Simulator::cSpatialObject::func7Ch ( bool  ,
Point dst 
)
virtual

◆ func80h()

virtual void Simulator::cSpatialObject::func80h ( )
virtual

◆ func84h()

virtual void Simulator::cSpatialObject::func84h ( )
virtual

◆ func9Ch()

virtual bool Simulator::cSpatialObject::func9Ch ( )
virtual

◆ funcA4h()

virtual void Simulator::cSpatialObject::funcA4h ( )
virtual

◆ funcB4h()

virtual void Simulator::cSpatialObject::funcB4h ( string &  dst)
virtual

◆ GetBoundingRadius()

virtual float Simulator::cSpatialObject::GetBoundingRadius ( )
virtual

◆ GetFootprintRadius()

virtual float Simulator::cSpatialObject::GetFootprintRadius ( )
virtual

◆ GetLocalExtents()

virtual const BoundingBox& Simulator::cSpatialObject::GetLocalExtents ( )
virtual

◆ GetMaxZ()

virtual float Simulator::cSpatialObject::GetMaxZ ( )
virtual

◆ GetModel()

virtual Graphics::Model* Simulator::cSpatialObject::GetModel ( )
virtual

◆ GetModelKey()

virtual const ResourceKey& Simulator::cSpatialObject::GetModelKey ( )
virtual

◆ GetModelWorld()

virtual Graphics::IModelWorld* Simulator::cSpatialObject::GetModelWorld ( )
virtual

◆ GetOrientation()

virtual const Quaternion& Simulator::cSpatialObject::GetOrientation ( )
virtual

◆ GetPosition()

virtual const Vector3& Simulator::cSpatialObject::GetPosition ( )
virtual

◆ GetScale()

virtual float Simulator::cSpatialObject::GetScale ( )
virtual

◆ HasModel()

virtual bool Simulator::cSpatialObject::HasModel ( )
virtual

◆ HasModelChanged()

virtual bool Simulator::cSpatialObject::HasModelChanged ( )
virtual

◆ IsOnView()

virtual bool Simulator::cSpatialObject::IsOnView ( )
virtual

◆ IsRolledOver()

virtual bool Simulator::cSpatialObject::IsRolledOver ( )
virtual

◆ IsSelected()

virtual bool Simulator::cSpatialObject::IsSelected ( )
virtual

◆ Read()

virtual int Simulator::cSpatialObject::Read ( void *  arg_0)
virtual

◆ Release()

virtual int Simulator::cSpatialObject::Release ( )
pure virtual

◆ Reset()

virtual void Simulator::cSpatialObject::Reset ( )
virtual

Sets this model as invisible in its IModelWorld and sets the model and model world to nullptr.

It also resets all necessary parameters.

◆ SetHasModelChanged()

virtual void Simulator::cSpatialObject::SetHasModelChanged ( bool  bValue)
virtual

◆ SetIsOnView()

virtual void Simulator::cSpatialObject::SetIsOnView ( bool  bValue)
virtual

◆ SetIsRolledOver()

virtual void Simulator::cSpatialObject::SetIsRolledOver ( bool  bValue)
virtual

◆ SetIsSeleted()

virtual void Simulator::cSpatialObject::SetIsSeleted ( bool  bValue)
virtual

◆ SetLocalExtents()

virtual void Simulator::cSpatialObject::SetLocalExtents ( const BoundingBox localExtents,
float  fScale 
)
virtual

◆ SetModel()

virtual void Simulator::cSpatialObject::SetModel ( Graphics::Model pModel,
Graphics::IModelWorld pModelWorld 
)
virtual

◆ SetModelKey()

virtual void Simulator::cSpatialObject::SetModelKey ( const ResourceKey modelKey)
virtual

◆ SetModelWorld()

virtual void Simulator::cSpatialObject::SetModelWorld ( Graphics::IModelWorld pModelWorld)
virtual

◆ SetOrientation()

virtual void Simulator::cSpatialObject::SetOrientation ( const Quaternion value)
virtual

◆ SetPosition()

virtual void Simulator::cSpatialObject::SetPosition ( const Vector3 value)
virtual

◆ SetScale()

virtual void Simulator::cSpatialObject::SetScale ( float  fValue)
virtual

◆ Write()

virtual int Simulator::cSpatialObject::Write ( void *  arg_0)
virtual

Member Data Documentation

◆ field_58

float Simulator::cSpatialObject::field_58
protected

◆ field_7C

float Simulator::cSpatialObject::field_7C
protected

◆ field_80

float Simulator::cSpatialObject::field_80
protected

◆ field_84

float Simulator::cSpatialObject::field_84
protected

◆ field_88

float Simulator::cSpatialObject::field_88
protected

◆ field_8C

float Simulator::cSpatialObject::field_8C
protected

◆ field_A4

bool Simulator::cSpatialObject::field_A4
protected

◆ field_A5

bool Simulator::cSpatialObject::field_A5
protected

◆ field_A7

bool Simulator::cSpatialObject::field_A7
protected

◆ field_A8

uint32_t Simulator::cSpatialObject::field_A8
protected

◆ field_AC

int Simulator::cSpatialObject::field_AC
protected

◆ field_B0

int Simulator::cSpatialObject::field_B0
protected

◆ field_B4

float Simulator::cSpatialObject::field_B4
protected

◆ field_B8

int Simulator::cSpatialObject::field_B8
protected

◆ field_BC

int Simulator::cSpatialObject::field_BC
protected

◆ field_C0

vector<int> Simulator::cSpatialObject::field_C0
protected

◆ mbEnabled

bool Simulator::cSpatialObject::mbEnabled
protected

◆ mbFixed

bool Simulator::cSpatialObject::mbFixed
protected

If a model is fixed, it isn't affected by any kind of physics.

◆ mbInView

bool Simulator::cSpatialObject::mbInView
protected

◆ mbIsBeingEdited

bool Simulator::cSpatialObject::mbIsBeingEdited
protected

◆ mbIsGhost

bool Simulator::cSpatialObject::mbIsGhost
protected

◆ mbIsInvalid

bool Simulator::cSpatialObject::mbIsInvalid
protected

◆ mbIsRolledOver

bool Simulator::cSpatialObject::mbIsRolledOver
protected

◆ mbIsSelected

bool Simulator::cSpatialObject::mbIsSelected
protected

◆ mbIsTangible

bool Simulator::cSpatialObject::mbIsTangible
protected

◆ mbKeepPinnedToPlanet

bool Simulator::cSpatialObject::mbKeepPinnedToPlanet
protected

◆ mbModelChanged

bool Simulator::cSpatialObject::mbModelChanged
protected

◆ mbPickable

bool Simulator::cSpatialObject::mbPickable
protected

◆ mbSupported

bool Simulator::cSpatialObject::mbSupported
protected

◆ mbTransformDirty

bool Simulator::cSpatialObject::mbTransformDirty
protected

◆ mfBoundingRadius

float Simulator::cSpatialObject::mfBoundingRadius
protected

◆ mfDistanceFromCamera

float Simulator::cSpatialObject::mfDistanceFromCamera
protected

◆ mfFootprintRadius

float Simulator::cSpatialObject::mfFootprintRadius
protected

◆ mFlags

uint32_t Simulator::cSpatialObject::mFlags

◆ mfScale

float Simulator::cSpatialObject::mfScale
protected

◆ mLocalExtents

BoundingBox Simulator::cSpatialObject::mLocalExtents
protected

◆ mMaterialType

uint32_t Simulator::cSpatialObject::mMaterialType
protected

◆ mModelKey

ResourceKey Simulator::cSpatialObject::mModelKey
protected

◆ mOrientation

Quaternion Simulator::cSpatialObject::mOrientation
protected

◆ mOriginalLocalExtents

BoundingBox Simulator::cSpatialObject::mOriginalLocalExtents
protected

◆ mpModel

intrusive_ptr<Graphics::Model> Simulator::cSpatialObject::mpModel
protected

◆ mpModelWorld

intrusive_ptr<Graphics::IModelWorld> Simulator::cSpatialObject::mpModelWorld
protected

◆ mPosition

Vector3 Simulator::cSpatialObject::mPosition
protected

◆ TYPE

const uint32_t Simulator::cSpatialObject::TYPE = 0x1186577
static

The documentation for this class was generated from the following file: