User Tools

Site Tools


api:comp_soldier

COMP_SOLDIER

Category: Component

Parent class: COMPONENT

Lazy-init

Functions


removeWeapon

void removeWeapon()


setAssetWeapon

void setAssetWeapon(assetWeapon)

Name Type Description
assetWeapon WEAPON

getAssetWeapon

WEAPON getAssetWeapon()


getStrength

computeStrength

void computeStrength()


getSoldierRank

integer_and_unsigned_integer getSoldierRank()


getSoldierState

SOLDIER_TRAINING_STATE getSoldierState()


getSoldierStatus

SOLDIER_STATUS getSoldierStatus()


isAvailable

boolean isAvailable()

Events


ON_SOLDIER_STATUS_CHANGED

ON_SOLDIER_STATUS_CHANGED(SOLDIER_STATUS)


ON_TRAINING_CHANGED

ON_TRAINING_CHANGED()


ON_WEAPON_CHANGED

ON_WEAPON_CHANGED()


ON_STRENGTH_UPDATED

ON_STRENGTH_UPDATED()

api/comp_soldier.txt · Last modified: 2024/02/06 13:53 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki