Simulator::cCreatureCitizen class

Base classes

class cCreatureBase
The base class for all creatures in the Simulator.

Public static variables

static const uint32_t TYPE
static const uint32_t NOUN_ID

Public static functions

static auto GetSpecializedName(cGameData* object) -> eastl::fixed_string<char16_t, 32>
Returns the specialized name for a creature citizen, such as "Chieftain Whatever".

Public functions

auto DoAction(int actionId, cGameData* actionObject, App::Property* property = nullptr) -> void
Programs this creature behavior tree data (i.e.
auto GetHandheldItemForTool(int toolType) -> int
For a given tribal tool from Simulator::TribeToolType, returns which item must be held by the citizen.
auto AddRef() -> int pure virtual
auto Release() -> int pure virtual
auto Cast(uint32_t typeID) const -> void* pure virtual

Public variables

int field_FC0
uint32_t mFavoredGrasperlikeAppendage
uint32_t mGrasperlikeAppendageForBundle
cGonzagoTimer field_FD0
int field_FF0
int mSelectionGroup
int field_FF8
int field_FFC
bool mAffectedByRecruiting
bool field_1001
bool field_1002
Math::Vector3 field_1004
eastl::intrusive_ptr<cCity> mpOwnerCity
eastl::intrusive_ptr<cTribe> mpOwnerTribe
eastl::vector<ObjectPtr> field_1018
int mSpecializedTool
cHitSpherePtr mpHitSphere

Function documentation

static eastl::fixed_string<char16_t, 32> Simulator::cCreatureCitizen::GetSpecializedName(cGameData* object)

Returns the specialized name for a creature citizen, such as "Chieftain Whatever".

Parameters
object

void Simulator::cCreatureCitizen::DoAction(int actionId, cGameData* actionObject, App::Property* property = nullptr)

Programs this creature behavior tree data (i.e.

Parameters
actionId
actionObject
property [Optional]

its AI) to do a certain action from Simulator::CitizenAction. The action is defined by an ID and an object to act on, for instance, Simulator::kCitizenActionGrabTool and the cTribeTool object.

int Simulator::cCreatureCitizen::GetHandheldItemForTool(int toolType)

For a given tribal tool from Simulator::TribeToolType, returns which item must be held by the citizen.

Parameters
toolType
Returns An integer identifying the kind of item to be held

The item is part of the Simulator::HandheldItem enum.