Pol
Revision:cb584c9
|
#include <privupdater.h>
Public Member Functions | |
PrivUpdater (Character *chr, PRIV_FLAGS flag) | |
~PrivUpdater () | |
Static Public Member Functions | |
static void | on_change_invul (Character *chr, bool enable) |
static void | on_change_see_ghosts (Character *chr, bool enable) |
static void | on_change_see_hidden (Character *chr, bool enable) |
static void | on_change_see_invis_items (Character *chr, bool enable) |
Static Private Member Functions | |
static void | disable_invul (Character *in_range_chr, Character *chr, Network::HealthBarStatusUpdate &msg) |
static void | disable_see_ghosts (Character *in_range_chr, Character *chr) |
static void | disable_see_hidden (Character *in_range_chr, Character *chr) |
static void | disable_see_invis_items (Items::Item *in_range_item, Character *chr) |
static void | enable_invul (Character *in_range_chr, Character *chr) |
static void | enable_see_ghosts (Character *in_range_chr, Character *chr) |
static void | enable_see_hidden (Character *in_range_chr, Character *chr) |
static void | enable_see_invis_items (Items::Item *in_range_item, Character *chr) |
static bool | is_active_or_npc (Character *chr) |
Private Attributes | |
Character * | chr_ |
PRIV_FLAGS | flag_ |
bool | oldvalue_ |
Definition at line 24 of file privupdater.h.
Pol::Mobile::PrivUpdater::PrivUpdater | ( | Character * | chr, |
PRIV_FLAGS | flag | ||
) |
Definition at line 60 of file privupdater.h.
Pol::Mobile::PrivUpdater::~PrivUpdater | ( | ) |
Definition at line 67 of file privupdater.h.
References Pol::Mobile::Character::cached_settings, chr_, flag_, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), Pol::Mobile::INVUL, oldvalue_, on_change_invul(), on_change_see_ghosts(), on_change_see_hidden(), on_change_see_invis_items(), passert_always, Pol::Mobile::SEE_GHOSTS, Pol::Mobile::SEE_HIDDEN, and Pol::Mobile::SEE_INVIS_ITEMS.
|
staticprivate |
Definition at line 263 of file privupdater.h.
References Pol::Mobile::Character::client, Pol::Mobile::Character::is_visible_to_me(), Pol::Network::HealthBarStatusUpdate::Send(), Pol::Core::send_move(), and Pol::Core::send_owncreate().
Referenced by on_change_invul().
|
staticprivate |
Definition at line 215 of file privupdater.h.
References Pol::Mobile::NPC::can_accept_event(), Pol::Core::CLASS_NPC, Pol::Mobile::Character::client, Pol::Mobile::Character::dead(), Pol::Core::EVID_LEFTAREA, Pol::Core::ULWObject::isa(), Pol::Mobile::NPC::send_event(), and Pol::Core::send_remove_character().
Referenced by on_change_see_ghosts().
|
staticprivate |
Definition at line 185 of file privupdater.h.
References Pol::Mobile::NPC::can_accept_event(), Pol::Core::CLASS_NPC, Pol::Mobile::Character::client, Pol::Core::EVID_LEFTAREA, Pol::Mobile::Character::hidden(), Pol::Core::ULWObject::isa(), Pol::Mobile::NPC::send_event(), and Pol::Core::send_remove_character().
Referenced by on_change_see_hidden().
|
staticprivate |
Definition at line 238 of file privupdater.h.
References Pol::Mobile::Character::client, Pol::Items::Item::invisible(), and Pol::Core::send_remove_object().
Referenced by on_change_see_invis_items().
|
staticprivate |
Definition at line 246 of file privupdater.h.
References Pol::Mobile::Character::client, Pol::Mobile::Character::is_visible_to_me(), Pol::Core::send_move(), and Pol::Core::send_owncreate().
Referenced by on_change_invul().
|
staticprivate |
Definition at line 200 of file privupdater.h.
References Pol::Mobile::NPC::can_accept_event(), Pol::Core::CLASS_NPC, Pol::Mobile::Character::client, Pol::Mobile::Character::dead(), Pol::Core::EVID_ENTEREDAREA, Pol::Core::ULWObject::isa(), Pol::Mobile::NPC::send_event(), and Pol::Core::send_owncreate().
Referenced by on_change_see_ghosts().
|
staticprivate |
Definition at line 170 of file privupdater.h.
References Pol::Mobile::NPC::can_accept_event(), Pol::Core::CLASS_NPC, Pol::Mobile::Character::client, Pol::Core::EVID_ENTEREDAREA, Pol::Mobile::Character::hidden(), Pol::Core::ULWObject::isa(), Pol::Mobile::NPC::send_event(), and Pol::Core::send_owncreate().
Referenced by on_change_see_hidden().
|
staticprivate |
Definition at line 230 of file privupdater.h.
References Pol::Mobile::Character::client, Pol::Items::Item::invisible(), and Pol::Core::send_item().
Referenced by on_change_see_invis_items().
|
staticprivate |
Definition at line 165 of file privupdater.h.
References Pol::Core::CLASS_NPC, Pol::Mobile::Character::has_active_client(), and Pol::Core::ULWObject::isa().
Referenced by on_change_invul(), on_change_see_ghosts(), and on_change_see_hidden().
|
static |
Definition at line 146 of file privupdater.h.
References disable_invul(), enable_invul(), Pol::Core::WorldIterator< Filter >::InVisualRange(), is_active_or_npc(), and Pol::Core::UObject::serial_ext.
Referenced by ~PrivUpdater().
|
static |
Definition at line 111 of file privupdater.h.
References disable_see_ghosts(), enable_see_ghosts(), Pol::Core::WorldIterator< Filter >::InVisualRange(), and is_active_or_npc().
Referenced by ~PrivUpdater().
|
static |
Definition at line 94 of file privupdater.h.
References disable_see_hidden(), enable_see_hidden(), Pol::Core::WorldIterator< Filter >::InVisualRange(), and is_active_or_npc().
Referenced by ~PrivUpdater().
|
static |
Definition at line 128 of file privupdater.h.
References disable_see_invis_items(), enable_see_invis_items(), Pol::Mobile::Character::has_active_client(), and Pol::Core::WorldIterator< Filter >::InVisualRange().
Referenced by ~PrivUpdater().
|
private |
Definition at line 31 of file privupdater.h.
Referenced by ~PrivUpdater().
|
private |
Definition at line 32 of file privupdater.h.
Referenced by ~PrivUpdater().
|
private |
Definition at line 33 of file privupdater.h.
Referenced by ~PrivUpdater().