class
cTribeTool
Base classes
- class cGameData
- Base class for most Simulator objects.
- class cSpatialObject
- A 3D model in the Simulator.
- class cBehaviorList
- class cCombatant
- Any object that has hit points and can combat other units.
- class cPlaceableStructure
- A structure that can be placed into a community slot, like buildings, turrets, ornaments and tribe tools.
Public static variables
Public functions
- auto func54h(int) -> void virtual
- auto GetToolType() -> int virtual
- auto GetToolName() -> const char* virtual
- auto SetToolType(int toolType) -> void virtual
- auto SetTribe(cTribe*) -> void virtual
- auto GetToolClass() -> int
- It returns the tool class (TribeToolClass).
- auto GetRefundMoney() -> int
- Returns how much money can be refunded for this tool.
- auto AddRef() -> int pure virtual
- auto Release() -> int pure virtual
-
auto Cast(uint32_
t typeID) const -> void* pure virtual
Public variables
- float field_1EC
- int field_1F0
- int field_1F4
- eastl::intrusive_ptr<cTribe> mTribe
- int mToolType
- cGonzagoTimer mCreationTimer
- cGonzagoTimer mDestroyedTimer
- int field_240
- int field_244
- int mhFootprint
Function documentation
int Simulator:: cTribeTool:: GetToolClass()
It returns the tool class (TribeToolClass).
It does so by checking the tool data in GetTribeToolDataArray().
int Simulator:: cTribeTool:: GetRefundMoney()
Returns how much money can be refunded for this tool.
It does so by doing (1.0 - GetHealthPercentage()) * toolData.mPrice
. The tool data is obtained from GetTribeToolDataArray()