#include <player_sao.h>
Collaboration diagram for PlayerHPChangeReason:Public Types | |
| enum | Type : u8 { SET_HP , SET_HP_MAX , PLAYER_PUNCH , FALL , NODE_DAMAGE , DROWNING , RESPAWN } |
Public Member Functions | |
| bool | hasLuaReference () const |
| bool | setTypeFromString (const std::string &typestr) |
| std::string | getTypeAsString () const |
| PlayerHPChangeReason (Type type) | |
| PlayerHPChangeReason (Type type, ServerActiveObject *object) | |
| PlayerHPChangeReason (Type type, std::string node, v3s16 node_pos) | |
Public Attributes | |
| Type | type = SET_HP |
| bool | from_mod = false |
| int | lua_reference = -1 |
| ServerActiveObject * | object = nullptr |
| std::string | node |
| v3s16 | node_pos |
| enum PlayerHPChangeReason::Type : u8 |
|
inline |
|
inline |
|
inline |
References DROWNING, FALL, NODE_DAMAGE, PLAYER_PUNCH, RESPAWN, SET_HP, SET_HP_MAX, and type.
Referenced by ScriptApiBase::pushPlayerHPChangeReason().
Here is the caller graph for this function:
|
inline |
References lua_reference.
Referenced by ObjectRef::l_set_hp(), and ScriptApiBase::pushPlayerHPChangeReason().
Here is the caller graph for this function:
|
inline |
References DROWNING, FALL, NODE_DAMAGE, PLAYER_PUNCH, RESPAWN, SET_HP, and type.
Referenced by ObjectRef::l_set_hp().
Here is the caller graph for this function:| bool PlayerHPChangeReason::from_mod = false |
Referenced by ObjectRef::l_set_hp(), and ScriptApiBase::pushPlayerHPChangeReason().
| int PlayerHPChangeReason::lua_reference = -1 |
Referenced by hasLuaReference(), ObjectRef::l_set_hp(), and ScriptApiBase::pushPlayerHPChangeReason().
| std::string PlayerHPChangeReason::node |
Referenced by ScriptApiBase::pushPlayerHPChangeReason().
| v3s16 PlayerHPChangeReason::node_pos |
Referenced by ScriptApiBase::pushPlayerHPChangeReason().
| ServerActiveObject* PlayerHPChangeReason::object = nullptr |
Referenced by ScriptApiBase::pushPlayerHPChangeReason(), and LuaEntitySAO::setHP().
Referenced by getTypeAsString(), Server::HandlePlayerHPChange(), LuaEntitySAO::setHP(), and setTypeFromString().