class
cCreatureCitizen
Base classes
- class cCreatureBase
- The base class for all creatures in the Simulator.
Public static variables
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::
int Simulator:: cCreatureCitizen:: GetHandheldItemForTool(int toolType)
For a given tribal tool from Simulator::
Parameters | |
---|---|
toolType | |
Returns | An integer identifying the kind of item to be held |
The item is part of the Simulator::