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

#include <GameNounManager.h>

Inheritance diagram for Simulator::cGameNounManager:
App::IMessageListener Simulator::cStrategy Simulator::ISimulatorStrategy IVirtual

Public Member Functions

cGameDataCreateInstance (uint32_t nounID)
 Creates an instance of a simulator object of the given type. More...
 
void DestroyInstance (cGameData *pInstance)
 
void UpdateModels ()
 
template<class T >
tGameDataVectorT< T > & GetData (ContainerCreateCallback_t< T > pCreate, ContainerClearCallback_t< T > pClear, ContainerAddCallback_t< T > pAdd, ContainerFilterCallback_t pFilter, uint32_t nounID)
 Gets all the game data objects that use the given game noun ID. More...
 
cCreatureAnimalGetAvatar ()
 
void SetAvatar (cCreatureAnimal *pAnimal)
 
- Public Member Functions inherited from App::IMessageListener
virtual ~IMessageListener ()
 
virtual bool HandleMessage (uint32_t messageID, void *pMessage)=0
 Called every time a message is received. More...
 
virtual int AddRef ()=0
 
virtual int Release ()=0
 
- Public Member Functions inherited from Simulator::ISimulatorStrategy
virtual int AddRef ()=0
 
virtual int Release ()=0
 
virtual void Initialize ()=0
 
virtual void Dispose ()=0
 
virtual const char * GetName ()=0
 
virtual void OnModeExited (uint32_t previousModeID, uint32_t newModeID)=0
 
virtual void OnModeEntered (uint32_t previousModeID, uint32_t newModeID)=0
 
virtual int func1Ch ()=0
 
virtual int func20h ()=0
 
virtual bool func24h ()=0
 
virtual bool Write (void *)=0
 
virtual bool Read (void *)=0
 
virtual void func30h (int)=0
 
virtual bool func34h (int)=0
 
virtual void Update (int deltaTime, int deltaGameTime)=0
 
virtual void PostUpdate (int deltaTime, int deltaGameTime)=0
 
virtual void func40h (int)=0
 
virtual void func44h (int)=0
 
virtual void func48h ()=0
 
virtual void func4Ch ()=0
 
- Public Member Functions inherited from IVirtual
virtual ~IVirtual ()
 

Static Public Member Functions

static cGameNounManagerGet ()
 Returns the active Simulator game noun manager. More...
 

Protected Attributes

hash_map< int, int > field_20
 
int field_40
 
int field_44
 
int field_48
 
int field_4C
 
int field_50
 
intrusive_ptr< cCreatureAnimalmpAvatar
 
intrusive_ptr< ObjectmpAvatarHerd
 
vector< intrusive_ptr< Object > > mPosseMembers
 
intrusive_ptr< ObjectmpPlayerTribe
 
intrusive_ptr< ObjectmpPlayer
 
intrusive_list< cGameDatamNouns
 
vector< intrusive_ptr< Object > > field_80
 
int field_94
 
map< uint32_t, int > field_98
 
map< int, int > mPoliticalMap
 
map< int, intrusive_ptr< Object > > field_D0
 
map< int, intrusive_ptr< Object > > field_EC
 
int field_108
 
list< intrusive_ptr< cGameData > > mObjects
 
int field_118
 
- Protected Attributes inherited from Simulator::cStrategy
int mnRefCount
 
int field_C
 
int field_10
 
int field_14
 
int field_18
 

Member Function Documentation

◆ CreateInstance()

cGameData* Simulator::cGameNounManager::CreateInstance ( uint32_t  nounID)

Creates an instance of a simulator object of the given type.

The noun ID is one of the values in the Simulator::GameNounIDs enum.

Parameters
nounIDThe ID of the object to create.
Returns
The created object, as a Simulator::cGameData*.

◆ DestroyInstance()

void Simulator::cGameNounManager::DestroyInstance ( cGameData pInstance)

◆ Get()

static cGameNounManager* Simulator::cGameNounManager::Get ( )
static

Returns the active Simulator game noun manager.

Same as GameNounManager().

◆ GetAvatar()

cCreatureAnimal* Simulator::cGameNounManager::GetAvatar ( )

◆ GetData()

template<class T >
tGameDataVectorT<T>& Simulator::cGameNounManager::GetData ( ContainerCreateCallback_t< T >  pCreate,
ContainerClearCallback_t< T >  pClear,
ContainerAddCallback_t< T >  pAdd,
ContainerFilterCallback_t  pFilter,
uint32_t  nounID 
)
inline

Gets all the game data objects that use the given game noun ID.

To be more specific, first a container is created with the pCreate callback; then

◆ SetAvatar()

void Simulator::cGameNounManager::SetAvatar ( cCreatureAnimal pAnimal)

◆ UpdateModels()

void Simulator::cGameNounManager::UpdateModels ( )

Member Data Documentation

◆ field_108

int Simulator::cGameNounManager::field_108
protected

◆ field_118

int Simulator::cGameNounManager::field_118
protected

◆ field_20

hash_map<int, int> Simulator::cGameNounManager::field_20
protected

◆ field_40

int Simulator::cGameNounManager::field_40
protected

◆ field_44

int Simulator::cGameNounManager::field_44
protected

◆ field_48

int Simulator::cGameNounManager::field_48
protected

◆ field_4C

int Simulator::cGameNounManager::field_4C
protected

◆ field_50

int Simulator::cGameNounManager::field_50
protected

◆ field_80

vector<intrusive_ptr<Object> > Simulator::cGameNounManager::field_80
protected

◆ field_94

int Simulator::cGameNounManager::field_94
protected

◆ field_98

map<uint32_t, int> Simulator::cGameNounManager::field_98
protected

◆ field_D0

map<int, intrusive_ptr<Object> > Simulator::cGameNounManager::field_D0
protected

◆ field_EC

map<int, intrusive_ptr<Object> > Simulator::cGameNounManager::field_EC
protected

◆ mNouns

intrusive_list<cGameData> Simulator::cGameNounManager::mNouns
protected

◆ mObjects

list<intrusive_ptr<cGameData> > Simulator::cGameNounManager::mObjects
protected

◆ mpAvatar

intrusive_ptr<cCreatureAnimal> Simulator::cGameNounManager::mpAvatar
protected

◆ mpAvatarHerd

intrusive_ptr<Object> Simulator::cGameNounManager::mpAvatarHerd
protected

◆ mPoliticalMap

map<int, int> Simulator::cGameNounManager::mPoliticalMap
protected

◆ mPosseMembers

vector<intrusive_ptr<Object> > Simulator::cGameNounManager::mPosseMembers
protected

◆ mpPlayer

intrusive_ptr<Object> Simulator::cGameNounManager::mpPlayer
protected

◆ mpPlayerTribe

intrusive_ptr<Object> Simulator::cGameNounManager::mpPlayerTribe
protected

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