class
ScriptPlayerWrapper
Public static functions
- static void RegisterFactory(asIScriptEngine* engine)
- static auto Factory(int playerIndex) -> ScriptPlayerWrapper*
Constructors, destructors, conversion operators
- ScriptPlayerWrapper(LevelScriptLoader* levelScripts, int playerIndex)
-
ScriptPlayerWrapper(LevelScriptLoader* levelScripts,
Actors::
Player* player) - ~ScriptPlayerWrapper()
Public functions
- void AddRef()
- void Release()
- auto operator=(const ScriptPlayerWrapper& o) -> ScriptPlayerWrapper&
Protected functions
- auto asIsInGame() const -> bool
- auto asGetIndex() const -> int
- auto asGetPlayerType() const -> int
- auto asGetX() const -> float
- auto asGetY() const -> float
- auto asGetSpeedX() const -> float
- auto asGetSpeedY() const -> float
- auto asGetHealth() const -> int
- auto asGetLives() const -> int
- auto asGetFoodEaten() const -> int
- auto asGetScore() const -> int
- void asSetScore(int value)
- auto asGetLayer() const -> uint16_t
- void asSetLayer(uint16_t value)
- auto asGetWeaponAllowed() const -> bool
- void asSetWeaponAllowed(bool value)
- auto asGetWeaponAmmo(int weaponType) const -> int
- void asSetWeaponAmmo(int weaponType, int value)
- void asDecreaseHealth(int amount)
- void asMoveTo(float x, float y)
- void asWarpTo(float x, float y)
- void asMoveBy(float x, float y)
- void asPlaySfx(const String& identifier, float gain, float pitch)
- void asSetAnimation(const String& name)
- void asSetAnimationState(int state)
- void asMorphTo(int playerType)
- void asMorphRevert()