Pol
Revision:cb584c9
|
#include <charactr.h>
Public Types | |
enum | GOTTEN_ITEM_TYPE : u8 { GOTTEN_ITEM_ON_GROUND, GOTTEN_ITEM_EQUIPPED_ON_SELF, GOTTEN_ITEM_IN_CONTAINER } |
enum | MOVEREASON : u8 { WALKED = 0, OTHER = 0, MULTIMOVE = 1 } |
Public Member Functions | |
Character (u32 objtype, Core::UOBJ_CLASS uobj_class=Core::UOBJ_CLASS::CLASS_CHARACTER) | |
virtual | ~Character () |
void | add_remote_container (Items::Item *) |
void | add_to_be_reportable (u32 serial) |
void | addBuff (u16 icon, u16 duration, u32 cl_name, u32 cl_descr, const std::vector< u32 > &arguments) |
std::string | all_privs () const |
std::string | all_settings () const |
double | apply_damage (double damage, Character *source=nullptr, bool userepsys=true, bool send_damage_packet=false) |
virtual void | apply_raw_damage_hundredths (unsigned int damage, Character *source, bool userepsys=true, bool send_damage_packet=false) |
virtual unsigned short | ar () const |
virtual double | armor_absorb_damage (double damage) |
void | attack (Character *opponent) |
const AttributeValue & | attribute (unsigned attrid) const |
AttributeValue & | attribute (unsigned attrid) |
Core::UContainer * | backpack () const |
void | calc_single_attribute (const Attribute *pAttr) |
void | calc_single_vital (const Core::Vital *pVital) |
void | calc_vital_stuff (bool i_mod=true, bool v_mod=true) |
bool | can_access (const Items::Item *item, int range=-1) const |
bool | can_be_heard_as_ghost () const |
virtual bool | can_be_renamed_by (const Character *chr) const |
bool | can_clothe (const Character *chr) const |
bool | can_dblclickany () const |
bool | can_face (Core::UFACING i_facing) |
bool | can_freemove () const |
bool | can_hearghosts () const |
bool | can_move (const Items::Item *item) const |
bool | can_moveanydist () const |
bool | can_plogany () const |
bool | can_rename (const Character *chr) const |
bool | can_seeinvisitems () const |
bool | can_speedhack () const |
void | cancel_menu () |
void | cancel_party_invite_timeout () |
unsigned short | carrying_capacity () const |
A Mobile's carrying capacity is (40 + 3.5*STR + chr.carrying_capacity_mod)*ssopt.carrying_capacity_mod stones. More... | |
bool | casting_spell () const |
int | charindex () const |
void | check_attack_after_move () |
void | check_concealment_level () |
void | check_justice_region_change () |
void | check_light_region_change () |
void | check_music_region_change () |
void | check_region_changes () |
bool | check_skill (Core::USKILLID skillid, int difficulty, unsigned short pointvalue) |
void | check_undamaged () |
Clear a Mobile's ToBeReportable list when all of the following are true: 1) hits are at maximum 2) mobile is not poisoned 3) mobile is not paralyzed. More... | |
void | check_weather_region_change (bool force=false) |
bool | CheckPushthrough () |
Items::UArmor * | choose_armor () const |
void | clear_criminal_timer () |
void | clear_gotten_item () |
void | clear_my_aggressors () |
void | clear_my_lawful_damagers () |
void | clear_opponent_of () |
void | clear_reportable (u32 serial, Core::polclock_t time) |
void | clear_to_be_reportables () |
void | clearBuffs () |
unsigned char | cmdlevel () const |
void | cmdlevel (unsigned char value, bool update_on_change=true) |
void | commit_to_reportables () |
unsigned char | concealed () const |
void | concealed (unsigned char value) |
bool | connected () const |
void | connected (bool newvalue) |
bool | consume (const Core::Vital *pVital, VitalValue &vv, unsigned int amt) |
void | create_trade_container () |
virtual Bscript::BObjectImp * | custom_script_method (const char *methodname, Bscript::Executor &ex) POL_OVERRIDE |
bool | CustomHousingMove (unsigned char i_dir) |
void | damage_weapon () |
bool | dead () const |
bool | deafened () const |
bool | delBuff (u16 icon) |
virtual void | destroy () POL_OVERRIDE |
u16 | dexterity () const |
void | die () |
void | disable_regeneration_for (int seconds) |
void | disconnect_cleanup () |
void | do_attack_effects (Character *target) |
void | do_hit_failure_effects () |
void | do_hit_success_effects () |
void | do_imhit_effects () |
bool | doors_block () const |
DYN_PROPERTY (lightoverride, int, Core::PROP_LIGHTOVERRIDE,-1) | |
DYN_PROPERTY (lightoverride_until, Core::gameclock_t, Core::PROP_LIGHTOVERRIDE_UNTIL, 0) | |
DYN_PROPERTY (movement_cost, Core::MovementCostMod, Core::PROP_MOVEMENTCOST_MOD, Core::MovementCostMod::DEFAULT) | |
DYN_PROPERTY (disable_skills_until, time_t, Core::PROP_DISABLE_SKILLS_UNTIL, 0) | |
DYN_PROPERTY (skillstatcap, Core::SkillStatCap, Core::PROP_STATCAP_SKILLCAP, Core::SkillStatCap::DEFAULT) | |
DYN_PROPERTY (luck, s16, Core::PROP_EXT_STATBAR_LUCK, 0) | |
DYN_PROPERTY (followers, Core::ExtStatBarFollowers, Core::PROP_EXT_STATBAR_FOLLOWERS, Core::ExtStatBarFollowers::DEFAULT) | |
DYN_PROPERTY (tithing, s32, Core::PROP_EXT_STATBAR_TITHING, 0) | |
DYN_PROPERTY (dblclick_wait, u32, Core::PROP_DOUBLECLICK_WAIT, 0) | |
DYN_PROPERTY (title_prefix, std::string, Core::PROP_TITLE_PREFIX,"") | |
DYN_PROPERTY (title_suffix, std::string, Core::PROP_TITLE_SUFFIX,"") | |
DYN_PROPERTY (title_guild, std::string, Core::PROP_TITLE_GUILD,"") | |
DYN_PROPERTY (title_race, std::string, Core::PROP_TITLE_RACE,"") | |
DYN_PROPERTY_POINTER (gotten_item, Items::Item *, Core::PROP_GOTTEN_BY) | |
DYN_PROPERTY_POINTER (guild, Core::Guild *, Core::PROP_GUILD) | |
DYN_PROPERTY_POINTER (party, Core::Party *, Core::PROP_PARTY) | |
DYN_PROPERTY_POINTER (candidate_of, Core::Party *, Core::PROP_PARTY_CANDIDATE) | |
DYN_PROPERTY_POINTER (offline_mem_of, Core::Party *, Core::PROP_PARTY_OFFLINE) | |
void | equip (Items::Item *item) |
bool | equippable (const Items::Item *item) const |
virtual size_t | estimatedSize () const POL_OVERRIDE |
bool | face (Core::UFACING i_facing, int flags=0) |
Items::Item * | find_wornitem (u32 find_serial) const |
bool | frozen () const |
Character * | get_attackable_opponent () const |
u8 | get_flag1 (Network::Client *other_client) const |
virtual void | get_hitscript_params (double damage, Items::UArmor **parmor, unsigned short *rawdamage) |
Character * | get_opponent () const |
virtual Bscript::BObjectImp * | get_script_member (const char *membername) const POL_OVERRIDE |
virtual Bscript::BObjectImp * | get_script_member_id (const int id) const POL_OVERRIDE |
Items::UArmor * | get_shield () const |
unsigned short | get_weapon_skill () const |
Bscript::ObjArray * | GetAggressorTo () const |
Bscript::ObjArray * | GetLawFullyDamaged () const |
void | getpos_ifmove (Core::UFACING i_facing, unsigned short *px, unsigned short *py) |
Bscript::ObjArray * | GetReportables () const |
unsigned int | gold_carried () const |
void | grant_privilege (const char *priv) |
unsigned int | guildid () const |
bool | has_active_client () const |
bool | has_active_gump () const |
bool | has_active_prompt () const |
bool | has_lawfully_damaged (const Character *chr) const |
bool | has_party_invite_timeout () const |
bool | has_privilege (const char *priv) const |
bool | has_shield () const |
void | heal_damage_hundredths (unsigned int damage) |
When a Mobile is Healed. More... | |
bool | hidden () const |
void | hidden (bool value) |
virtual unsigned char | hilite_color_idx (const Character *seen_by) const |
const CharacterSet & | hostiles () const |
bool | ignores_line_of_sight () const |
virtual void | inform_criminal (Character *thecriminal) |
virtual void | inform_disengaged (Character *disengaged) |
virtual void | inform_engaged (Character *engaged) |
virtual void | inform_enteredarea (Character *whoentered) |
virtual void | inform_imoved (Character *chr) |
virtual void | inform_leftarea (Character *wholeft) |
virtual void | inform_moved (Character *moved) |
u16 | intelligence () const |
virtual Items::UWeapon * | intrinsic_weapon () |
bool | invul () const |
bool | is_aggressor_to (const Character *chr) const |
bool | is_attackable (Character *who) const |
bool | is_concealed_from_me (const Character *chr) const |
bool | is_criminal () const |
A Mobile is Criminal if: he has an active Criminal Timer, which has not timed out. OR he is a murderer. More... | |
bool | is_equipped (const Items::Item *item) const |
bool | is_guild_ally (const Character *chr) const |
[10] Guild Rules The following Guild Rules are only temporary pending a more complete system More... | |
bool | is_guild_enemy (const Character *chr) const |
[10.2] Guild Enemies Bob and Amy are Guild Enemies if: Bob is in a guild, AND Amy is in a guild, AND Bob's Guild is an Enemy Guild of Amy's Guild More... | |
bool | is_house_editing () const |
bool | is_innocent_to (const Character *chr) const |
[9] Innocent Status Bob is Innocent to Amy if:Bob is Innocent to Amy only if NONE of the following are true: Bob is a murderer; Bob is a criminal Bob is an Aggressor to Amy Bob is a Guild Ally of Amy Bob is a Guild Enemy of Amy Amy has Lawfully Damaged Bob More... | |
bool | is_murderer () const |
bool | is_temporally_criminal () const |
bool | is_trading () const |
bool | is_visible () const |
bool | is_visible_to_me (const Character *chr) const |
u16 | last_textcolor () const |
void | last_textcolor (u16 new_color) |
bool | layer_is_equipped (int layer) const |
bool | logged_in () const |
void | logged_in (bool newvalue) |
void | make_aggressor_to (Character *chr) |
void | make_criminal (int level=1) |
To Set Amy Criminal (For a LevelOfOffense) More... | |
void | make_lawfullydamaged_to (Character *chr) |
void | make_murderer (bool newlval=true) |
Bscript::BObjectImp * | make_offline_ref () |
virtual Bscript::BObjectImp * | make_ref () POL_OVERRIDE |
bool | manual_set_swing_timer (int time) |
u16 | max_hits () const |
u32 | max_hits_hundredths () const |
u16 | max_mana () const |
u16 | max_stamina () const |
unsigned short | max_weapon_damage () const |
bool | mightsee (const Items::Item *item) const |
unsigned short | min_weapon_damage () const |
bool | move (unsigned char dir) |
virtual unsigned short | name_color (const Character *seen_by) const |
void | on_aggressor_changed () |
void | on_aos_ext_stat_changed () |
void | on_cmdlevel_changed () |
virtual void | on_color_changed () POL_OVERRIDE |
void | on_concealed_changed () |
void | on_criminal_changed () |
virtual void | on_death (Items::Item *corpse) |
void | on_delete_from_account () |
virtual void | on_facing_changed () POL_OVERRIDE |
void | on_hidden_changed () |
void | on_lawfullydamaged_changed () |
bool | on_mount () const |
void | on_murderer_changed () |
void | on_poison_changed () |
void | on_swing_failure (Character *attacker) |
bool | paralyzed () const |
bool | party_can_loot () const |
bool | poisoned () const |
void | poisoned (bool value) |
void | position_changed (void) |
void | produce (const Core::Vital *pVital, VitalValue &vv, unsigned int amt) |
unsigned short | random_weapon_damage () const |
void | readAttributesAndVitals (Clib::ConfigElem &elem) |
void | readCommonProperties (Clib::ConfigElem &elem) |
virtual void | readProperties (Clib::ConfigElem &elem) POL_OVERRIDE |
void | realm_changed () |
virtual void | refresh_ar () |
void | regen_vital (const Core::Vital *) |
void | removal_cleanup () |
void | remove_as_aggressor_to (Character *chr) |
void | remove_as_lawful_damager (Character *chr) |
virtual void | repsys_on_attack (Character *defender) |
[13] Mobile (MA) Attacks Mobile (MA) More... | |
virtual void | repsys_on_damage (Character *defender) |
[14] Mobile (MA) Damages Mobile (MB) More... | |
virtual void | repsys_on_help (Character *recipient) |
[15] Mobile (MA) Helps Mobile (MB) More... | |
void | reset_swing_timer () |
void | resetEquipableProperties () |
void | restart_aggressor_timer (Character *chr, Core::polclock_t until) |
void | restart_criminal_timer (Core::polclock_t until) |
void | restart_lawfully_damaged_timer (Character *chr, Core::polclock_t until) |
void | resurrect () |
void | revoke_privilege (const char *priv) |
void | run_hit_script (Character *defender, double damage) |
void | schedule_spell (Core::USpell *) |
virtual bool | script_isa (unsigned isatype) const POL_OVERRIDE |
virtual Bscript::BObjectImp * | script_method (const char *methodname, Bscript::Executor &ex) POL_OVERRIDE |
virtual Bscript::BObjectImp * | script_method_id (const int id, Bscript::Executor &ex) POL_OVERRIDE |
Items::Item * | search_remote_containers (u32 find_serial, bool *isRemoteContainer) const |
void | select_opponent (u32 opp_serial) |
void | send_buffs () |
void | send_highlight () const |
void | send_warmode () |
void | set_caps_to_default () |
void | set_current (const Core::Vital *pVital, VitalValue &vv, unsigned int ones) |
void | set_current_ones (const Core::Vital *pVital, VitalValue &vv, unsigned int ones) |
void | set_dexterity (u16 dexterity) |
void | set_intelligence (u16 intelligence) |
void | set_opponent (Character *opponent, bool inform_old_opponent=true) |
void | set_party_can_loot (bool) |
void | set_party_invite_timeout () |
void | set_privs (const std::string &privlist) |
virtual Bscript::BObjectImp * | set_script_member (const char *membername, const std::string &value) POL_OVERRIDE |
id test More... | |
virtual Bscript::BObjectImp * | set_script_member (const char *membername, int value) POL_OVERRIDE |
virtual Bscript::BObjectImp * | set_script_member_id (const int id, const std::string &value) POL_OVERRIDE |
virtual Bscript::BObjectImp * | set_script_member_id (const int id, int value) POL_OVERRIDE |
virtual Bscript::BObjectImp * | set_script_member_id_double (const int id, double value) POL_OVERRIDE |
void | set_setting (const char *setting, bool value) |
void | set_stealthsteps (unsigned short newval) |
void | set_strength (u16 strength) |
void | set_vitals_to_maximum () |
void | set_warmode (bool warmode) |
virtual void | setfacing (u8 newfacing) POL_OVERRIDE |
virtual bool | setgraphic (u16 newobjtype) POL_OVERRIDE |
bool | setting_enabled (const char *setting) const |
void | showarmor () const |
bool | skill_ex_active () const |
Core::Spellbook * | spellbook (u8 school) const |
void | spend_gold (unsigned int amount) |
bool | squelched () const |
bool | start_itemuse_script (Bscript::EScriptProgram *prog, Items::Item *item, bool start_attached) |
bool | start_script (Bscript::EScriptProgram *prog, bool start_attached, Bscript::BObjectImp *param2=nullptr, Bscript::BObjectImp *param3=nullptr, Bscript::BObjectImp *param4=nullptr) |
bool | start_skill_script (Bscript::EScriptProgram *prog) |
bool | start_spell_script (Bscript::EScriptProgram *prog, Core::USpell *spell) |
u16 | strength () const |
bool | strong_enough_to_equip (const Items::Item *item) const |
bool | target_cursor_busy () const |
virtual const char * | target_tag () const POL_OVERRIDE |
void | tellmove (void) |
bool | trade_accepted () const |
void | trade_accepted (bool newvalue) |
Core::UContainer * | trade_container () |
void | unequip (Items::Item *item) |
void | unhide () |
void | updateEquipableProperties (Items::Item *item) |
void | validate_stat_ranges () |
const VitalValue & | vital (unsigned vitalid) const |
VitalValue & | vital (unsigned vitalid) |
bool | warmode () const |
Core::UACTION | weapon_anim () const |
const AttributeValue & | weapon_attribute () const |
Core::USKILLID | weapon_skillid () const |
virtual unsigned int | weight () const POL_OVERRIDE |
A Mobile's weight is 10 stones + the weight of their equipment. More... | |
Items::Item * | wornitem (int layer) const |
![]() | |
ref_counted * | as_ref_counted () |
void | clear_dirty () const |
void | copyprops (const UObject &obj) |
void | copyprops (const PropertyList &proplist) |
virtual std::string | description () const |
bool | dirty () const |
DYN_PROPERTY (maxhp_mod, s16, PROP_MAXHP_MOD, 0) | |
DYN_PROPERTY (fire_resist, ValueModPack, PROP_RESIST_FIRE, ValueModPack::DEFAULT) | |
DYN_PROPERTY (cold_resist, ValueModPack, PROP_RESIST_COLD, ValueModPack::DEFAULT) | |
DYN_PROPERTY (energy_resist, ValueModPack, PROP_RESIST_ENERGY, ValueModPack::DEFAULT) | |
DYN_PROPERTY (poison_resist, ValueModPack, PROP_RESIST_POISON, ValueModPack::DEFAULT) | |
DYN_PROPERTY (physical_resist, ValueModPack, PROP_RESIST_PHYSICAL, ValueModPack::DEFAULT) | |
DYN_PROPERTY (fire_damage, ValueModPack, PROP_DAMAGE_FIRE, ValueModPack::DEFAULT) | |
DYN_PROPERTY (cold_damage, ValueModPack, PROP_DAMAGE_COLD, ValueModPack::DEFAULT) | |
DYN_PROPERTY (energy_damage, ValueModPack, PROP_DAMAGE_ENERGY, ValueModPack::DEFAULT) | |
DYN_PROPERTY (poison_damage, ValueModPack, PROP_DAMAGE_POISON, ValueModPack::DEFAULT) | |
DYN_PROPERTY (physical_damage, ValueModPack, PROP_DAMAGE_PHYSICAL, ValueModPack::DEFAULT) | |
void | eraseprop (const std::string &propname) |
virtual void | fixInvalidGraphic () |
Fixes invalid graphic, moving here to allow it to be overridden in subclass (see Multi) More... | |
bool | getprop (const std::string &propname, std::string &propvalue) const |
void | getpropnames (std::vector< std::string > &propnames) const |
const PropertyList & | getprops () const |
void | increv () |
virtual std::string | name () const |
virtual UObject * | owner () |
virtual const UObject * | owner () const |
virtual void | printOnDebug (Clib::StreamWriter &sw) const |
void | ref_counted_add_ref () |
unsigned | ref_counted_count () const |
void | ref_counted_release () |
u32 | rev () const |
bool | saveonexit () const |
void | saveonexit (bool newvalue) |
virtual UObject * | self_as_owner () |
virtual const UObject * | self_as_owner () const |
void | set_dirty () |
virtual Bscript::BObjectImp * | set_script_member_double (const char *membername, double value) |
virtual bool | setcolor (u16 newcolor) |
void | setname (const std::string &) |
void | setprop (const std::string &propname, const std::string &propvalue) |
bool | specific_name () const |
virtual UObject * | toplevel_owner () |
virtual const UObject * | toplevel_owner () const |
![]() | |
bool | isa (UOBJ_CLASS uobj_class) const |
bool | isitem () const |
bool | ismobile () const |
bool | ismulti () const |
u8 | look_height () const |
bool | orphan () const |
![]() | |
DynamicPropsHolder () | |
size_t | estimateSizeDynProps () const |
template<typename V > | |
bool | getmember (DynPropTypes member, V *value) const |
bool | hasmember (DynPropTypes member) const |
template<typename V > | |
void | setmember (DynPropTypes member, const V &value, const V &defaultvalue) |
template<typename V > | |
void | setmemberPointer (DynPropTypes member, V value) |
Static Public Member Functions | |
static Core::MOVEMODE | decode_movemode (const std::string &str) |
static std::string | encode_movemode (Core::MOVEMODE movemode) |
Protected Member Functions | |
virtual const char * | classname () const POL_OVERRIDE |
DYN_PROPERTY (carrying_capacity_mod, s16, Core::PROP_CARRY_CAPACITY_MOD, 0) | |
DYN_PROPERTY (ar_mod, s16, Core::PROP_AR_MOD, 0) | |
DYN_PROPERTY (delay_mod, s16, Core::PROP_DELAY_MOD, 0) | |
DYN_PROPERTY (hitchance_mod, s16, Core::PROP_HITCHANCE_MOD, 0) | |
DYN_PROPERTY (evasionchance_mod, s16, Core::PROP_EVASIONCHANCE_MOD, 0) | |
DYN_PROPERTY (squelched_until, Core::gameclock_t, Core::PROP_SQUELCHED_UNTIL, 0) | |
DYN_PROPERTY (deafened_until, Core::gameclock_t, Core::PROP_DEAFENED_UNTIL, 0) | |
virtual u16 | get_damaged_sound () const |
virtual void | printDebugProperties (Clib::StreamWriter &sw) const POL_OVERRIDE |
virtual void | printOn (Clib::StreamWriter &sw) const POL_OVERRIDE |
virtual void | printProperties (Clib::StreamWriter &sw) const POL_OVERRIDE |
virtual void | printSelfOn (Clib::StreamWriter &sw) const POL_OVERRIDE |
void | printWornItems (Clib::StreamWriter &sw_pc, Clib::StreamWriter &sw_equip) const |
![]() | |
UObject (u32 objtype, UOBJ_CLASS uobj_class) | |
virtual | ~UObject () |
![]() | |
ref_counted () | |
~ref_counted ()=default | |
unsigned int | add_ref () |
unsigned int | count () const |
unsigned int | release () |
![]() | |
ULWObject (UOBJ_CLASS uobj_class) | |
ULWObject (const ULWObject &)=delete | |
~ULWObject ()=default | |
ULWObject & | operator= (const ULWObject &)=delete |
bool | isa (UOBJ_CLASS uobj_class) const |
bool | isitem () const |
bool | ismobile () const |
bool | ismulti () const |
u8 | look_height () const |
bool | orphan () const |
![]() | |
~DynamicPropsHolder ()=default | |
DynamicPropsHolder () | |
size_t | estimateSizeDynProps () const |
template<typename V > | |
bool | getmember (DynPropTypes member, V *value) const |
bool | hasmember (DynPropTypes member) const |
template<typename V > | |
void | setmember (DynPropTypes member, const V &value, const V &defaultvalue) |
template<typename V > | |
void | setmemberPointer (DynPropTypes member, V value) |
Protected Attributes | |
u16 | ar_ |
std::vector< Items::UArmor * > | armor_ |
std::map< u16, Buff > | buffs_ |
Core::AttributeFlags< PRIV_FLAGS > | cached_settings |
u8 | concealed_ |
Core::gameclock_t | created_at |
Core::AttributeFlags< MOB_FLAGS > | mob_flags_ |
u32 | mountedsteps_ |
Character * | opponent_ |
CharacterSet | opponent_of |
Clib::StringSet | privs |
Core::UOExecutor * | script_ex |
Clib::StringSet | settings |
Items::UArmor * | shield |
Core::OneShotTask * | spell_task |
u16 | stealthsteps_ |
Core::OneShotTask * | swing_task |
Core::polclock_t | swing_timer_start_clock_ |
Items::UWeapon * | weapon |
ref_ptr< Core::WornItemsContainer > | wornitems |
![]() | |
AttributeFlags< OBJ_FLAGS > | flags_ |
boost_utils::object_name_flystring | name_ |
![]() | |
std::atomic< unsigned int > | _count |
![]() | |
const UOBJ_CLASS | uobj_class_ |
u16 | graphic |
u8 | height |
Realms::Realm * | realm |
u32 | serial |
u16 | x |
u16 | y |
s8 | z |
Private Types | |
typedef UObject | base |
typedef std::set< Character * > | CharacterSet |
typedef std::map< Core::CharacterRef, Core::polclock_t > | MobileCont |
typedef std::set< reportable_t > | ReportableList |
typedef std::set< USERIAL > | ToBeReportableList |
Private Member Functions | |
Character (const Character &) | |
Character & | operator= (const Character &) |
void | refresh_cached_settings (bool update=true) |
void | schedule_attack () |
void | stop_skill_script () |
Static Private Member Functions | |
static void | swing_task_func (Character *chr) |
Friends | |
void | Core::ClientCreateChar (Network::Client *client, Core::PKTIN_00 *msg) |
void | Core::ClientCreateChar70160 (Network::Client *client, Core::PKTIN_F8 *msg) |
void | Core::ClientCreateCharKR (Network::Client *client, Core::PKTIN_8D *msg) |
void | Core::createchar2 (Accounts::Account *acct, unsigned index) |
class | Core::RepSystem |
void | Core::undo_get_item (Character *chr, Items::Item *item) |
void | Core::write_characters (Core::SaveContext &sc) |
void | Core::write_npcs (Core::SaveContext &sc) |
void | handle_script_cursor (Character *chr, UObject *obj) |
void | menu_selection_made (Network::Client *client, Core::MenuItem *mi, Core::PKTIN_7D *msg) |
class | Module::UOExecutorModule |
class | PrivUpdater |
Additional Inherited Members | |
![]() | |
static std::atomic< unsigned int > | clean_writes |
static std::atomic< unsigned int > | dirty_writes |
Definition at line 334 of file charactr.h.
|
private |
Definition at line 337 of file charactr.h.
|
private |
Definition at line 338 of file charactr.h.
|
private |
Definition at line 839 of file charactr.h.
|
private |
Definition at line 840 of file charactr.h.
|
private |
Definition at line 841 of file charactr.h.
Enumerator | |
---|---|
GOTTEN_ITEM_ON_GROUND | |
GOTTEN_ITEM_EQUIPPED_ON_SELF | |
GOTTEN_ITEM_IN_CONTAINER |
Definition at line 790 of file charactr.h.
Enumerator | |
---|---|
WALKED | |
OTHER | |
MULTIMOVE |
Definition at line 805 of file charactr.h.
|
explicit |
Definition at line 259 of file charactr.cpp.
References Pol::Core::ServSpecOpt::default_character_height, Pol::Core::ULWObject::height, logged_in(), refresh_cached_settings(), set_caps_to_default(), Pol::Core::settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::stateManager, Pol::Core::UObjCount::ucharacter_count, Pol::Core::StateManager::uobjcount, and wornitems.
|
virtual |
Definition at line 351 of file charactr.cpp.
References acct, Pol::Core::OneShotTask::cancel(), Pol::Core::PolConfig::character_slots, Pol::Network::Client::chr, ref_ptr< T >::clear(), client, Pol::Plib::SystemState::config, ref_ptr< T >::get(), party_decline_timeout_, removal_cleanup(), repsys_task_, Pol::Core::stateManager, Pol::Plib::systemstate, trading_cont, Pol::Core::UObjCount::ucharacter_count, Pol::Core::StateManager::uobjcount, and wornitems.
|
private |
void Pol::Mobile::Character::add_remote_container | ( | Items::Item * | item | ) |
Definition at line 3991 of file charactr.cpp.
References remote_containers_.
Referenced by Pol::Module::UOExecutorModule::mf_SendOpenSpecialContainer().
void Pol::Mobile::Character::add_to_be_reportable | ( | u32 | serial | ) |
Definition at line 1162 of file repsys.cpp.
Referenced by Pol::Core::RepSystem::on_pc_damages_pc().
void Pol::Mobile::Character::addBuff | ( | u16 | icon, |
u16 | duration, | ||
u32 | cl_name, | ||
u32 | cl_descr, | ||
const std::vector< u32 > & | arguments | ||
) |
Adds a new buff or overwrites an existing one for the character Sends packets to the client accordingly
Definition at line 4187 of file charactr.cpp.
References buffs_, client, delBuff(), Pol::Core::read_gameclock(), and Pol::Core::send_buff_message().
std::string Pol::Mobile::Character::all_privs | ( | ) | const |
Definition at line 1173 of file charactr.cpp.
References Pol::Clib::StringSet::extract(), and privs.
std::string Pol::Mobile::Character::all_settings | ( | ) | const |
Definition at line 1168 of file charactr.cpp.
References Pol::Clib::StringSet::extract(), and settings.
double Pol::Mobile::Character::apply_damage | ( | double | damage, |
Character * | source = nullptr , |
||
bool | userepsys = true , |
||
bool | send_damage_packet = false |
||
) |
Definition at line 1886 of file charactr.cpp.
References apply_raw_damage_hundredths(), armor_absorb_damage(), do_imhit_effects(), INFO_PRINT, and Pol::Core::settingsManager.
Referenced by attack(), and Pol::Module::VitalExecutorModule::mf_ApplyDamage().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 1794 of file charactr.cpp.
References cached_settings, consume(), Pol::Mobile::VitalValue::current(), dead(), die(), disable_regeneration_for(), Pol::Core::gamestate, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), hidden(), Pol::Mobile::INVUL, mob_flags_, Pol::Mobile::PARALYZED, paralyzed(), Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::remove(), repsys_on_attack(), repsys_on_damage(), Pol::Core::send_damage(), Pol::Core::send_update_hits_to_inrange(), Pol::Core::UObject::set_dirty(), unhide(), and vital().
Referenced by apply_damage(), Pol::Mobile::NPC::apply_raw_damage_hundredths(), and Pol::Module::VitalExecutorModule::mf_ApplyRawDamage().
|
inlinevirtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 1008 of file charactr.h.
Referenced by Pol::Mobile::calc_thru_damage(), and Pol::Core::send_full_statmsg().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 1874 of file charactr.cpp.
References Pol::Items::UArmor::ar(), Pol::Mobile::calc_thru_damage(), choose_armor(), and Pol::Items::Equipment::reduce_hp_from_hit().
Referenced by apply_damage(), and Pol::Mobile::NPC::armor_absorb_damage().
void Pol::Mobile::Character::attack | ( | Character * | opponent | ) |
Definition at line 3223 of file charactr.cpp.
References apply_damage(), Pol::Items::UArmor::ar(), attribute(), backpack(), Pol::Core::ExportedFunction::call(), client, Pol::Core::SystemHooks::combat_advancement_hook, Pol::Items::UWeapon::consume_projectile(), damage_weapon(), do_attack_effects(), do_hit_failure_effects(), do_hit_success_effects(), Pol::Mobile::AttributeValue::effective(), Pol::Core::ScriptDef::empty(), Pol::Core::gamestate, Pol::Items::UWeapon::hit_script(), Pol::Core::SystemHooks::hitmiss_hook, INC_PROFILEVAR, INFO_PRINT, Pol::Items::UWeapon::is_projectile(), Pol::Core::LAYER_BACKPACK, Pol::Core::LAYER_BEARD, Pol::Core::LAYER_EQUIP__HIGHEST, Pol::Core::LAYER_EQUIP__LOWEST, Pol::Core::LAYER_FACE, Pol::Core::LAYER_HAIR, Pol::Core::LAYER_MOUNT, Pol::Core::UObject::name(), on_swing_failure(), Pol::Core::SystemHooks::parry_advancement_hook, Pol::Core::POLCLASS_CONTAINER, Pol::Clib::random_double(), random_weapon_damage(), repsys_on_attack(), repsys_on_damage(), run_hit_script(), Pol::Items::Item::script_isa(), Pol::Core::send_sysmessage(), Pol::Core::settingsManager, shield, strength(), Pol::Core::GameState::system_hooks, weapon, weapon_attribute(), and wornitems.
Referenced by check_attack_after_move().
|
inline |
Definition at line 1051 of file charactr.h.
References passert.
Referenced by attack(), calc_single_attribute(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), dexterity(), equippable(), Pol::Core::ext_stats_in(), Pol::Core::handle_skill_lock(), intelligence(), Pol::Module::AttributeExecutorModule::mf_AlterAttributeTemporaryMod(), Pol::Module::AttributeExecutorModule::mf_GetAttribute(), Pol::Module::AttributeExecutorModule::mf_GetAttributeBaseValue(), Pol::Module::AttributeExecutorModule::mf_GetAttributeCap(), Pol::Module::AttributeExecutorModule::mf_GetAttributeIntrinsicMod(), Pol::Module::AttributeExecutorModule::mf_GetAttributeLock(), Pol::Module::AttributeExecutorModule::mf_GetAttributeTemporaryMod(), Pol::Module::AttributeExecutorModule::mf_SetAttributeBaseValue(), Pol::Module::AttributeExecutorModule::mf_SetAttributeCap(), Pol::Module::AttributeExecutorModule::mf_SetAttributeLock(), Pol::Module::AttributeExecutorModule::mf_SetAttributeTemporaryMod(), printProperties(), readAttributesAndVitals(), Pol::Mobile::NPC::readNewNpcAttributes(), refresh_ar(), Pol::Core::send_full_statmsg(), Pol::Core::send_skillmsg(), Pol::Core::send_stat_locks(), Pol::Network::send_uo_skill(), set_caps_to_default(), strength(), strong_enough_to_equip(), and weapon_attribute().
|
inline |
Definition at line 1056 of file charactr.h.
References passert.
Core::UContainer * Pol::Mobile::Character::backpack | ( | ) | const |
Definition at line 1276 of file charactr.cpp.
References Pol::Core::LAYER_BACKPACK, and wornitems.
Referenced by attack(), Pol::Module::buyhandler(), Pol::Core::USpell::consume_reagents(), Pol::Module::NPCExecutorModule::CreateItem(), die(), Pol::Core::drop_item_on_object(), Pol::Core::equip_loaded_item(), Pol::Core::find_legal_container(), Pol::Core::find_legal_item(), gold_carried(), Pol::Core::handle_open_spellbook(), Pol::Core::knows_spell(), Pol::Module::UOExecutorModule::mf_CreateItemInBackpack(), Pol::Module::UOExecutorModule::mf_SendSellWindow(), Pol::Module::oldBuyHandler(), Pol::Module::oldSellHandler(), Pol::Core::return_traded_items(), Pol::Module::sellhandler(), spellbook(), spend_gold(), Pol::Core::undo_get_item(), and Pol::Module::ItemGivenEvent::~ItemGivenEvent().
void Pol::Mobile::Character::calc_single_attribute | ( | const Attribute * | pAttr | ) |
Definition at line 1630 of file charactr.cpp.
References attribute(), Pol::Mobile::ATTRIBUTE_MAX_INTRINSIC_MOD, Pol::Mobile::ATTRIBUTE_MIN_INTRINSIC_MOD, Pol::Mobile::Attribute::attrid, Pol::Core::ExportedFunction::call_long(), Pol::Mobile::Attribute::getintrinsicmod_func, and Pol::Mobile::AttributeValue::intrinsic_mod().
Referenced by calc_vital_stuff(), and Pol::Module::VitalExecutorModule::mf_RecalcVitals().
void Pol::Mobile::Character::calc_single_vital | ( | const Core::Vital * | pVital | ) |
Definition at line 1600 of file charactr.cpp.
References Pol::Core::ExportedFunction::call_long(), Pol::Mobile::VitalValue::current_ones(), Pol::Core::Vital::get_maximum_func, Pol::Core::Vital::get_regenrate_func, Pol::Mobile::VitalValue::maximum(), Pol::Mobile::VitalValue::maximum_ones(), Pol::Mobile::VitalValue::regenrate(), Pol::Network::ClientInterface::tell_vital_changed(), vital(), Pol::Core::VITAL_HIGHEST_MAX_HUNDREDTHS, Pol::Core::VITAL_HIGHEST_REGENRATE, Pol::Core::VITAL_LOWEST_MAX_HUNDREDTHS, Pol::Core::VITAL_LOWEST_REGENRATE, and Pol::Core::Vital::vitalid.
Referenced by calc_vital_stuff(), and Pol::Module::VitalExecutorModule::mf_RecalcVitals().
void Pol::Mobile::Character::calc_vital_stuff | ( | bool | i_mod = true , |
bool | v_mod = true |
||
) |
Definition at line 1581 of file charactr.cpp.
References attributes, calc_single_attribute(), calc_single_vital(), Pol::Core::gamestate, Pol::Core::GameState::numAttributes, Pol::Core::GameState::numVitals, and vitals.
Referenced by Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Module::VitalExecutorModule::mf_RecalcVitals(), readAttributesAndVitals(), and Pol::Mobile::NPC::readPropertiesForNewNPC().
bool Pol::Mobile::Character::can_access | ( | const Items::Item * | item, |
int | range = -1 |
||
) | const |
Definition at line 1201 of file charactr.cpp.
References Pol::Core::ServSpecOpt::default_accessible_range, Pol::Core::find_legal_item(), Pol::Core::pol_distance(), Pol::Core::ULWObject::serial, Pol::Core::settingsManager, and Pol::Core::SettingsManager::ssopt.
Referenced by Pol::Module::UOExecutorModule::mf_Accessible().
bool Pol::Mobile::Character::can_be_heard_as_ghost | ( | ) | const |
Definition at line 1251 of file charactr.cpp.
References cached_settings, Pol::Mobile::CAN_BE_HEARD_AS_GHOST, and Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get().
Referenced by Pol::Core::handle_processed_speech(), and Pol::Core::SendUnicodeSpeech().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 1230 of file charactr.cpp.
Referenced by can_rename().
bool Pol::Mobile::Character::can_clothe | ( | const Character * | chr | ) | const |
Definition at line 1241 of file charactr.cpp.
References cached_settings, Pol::Mobile::CLOTHE_ANY, and Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get().
Referenced by Pol::Core::equip_item().
|
inline |
Definition at line 1036 of file charactr.h.
Referenced by Pol::Core::doubleclick().
bool Pol::Mobile::Character::can_face | ( | Core::UFACING | i_facing | ) |
Definition at line 3650 of file charactr.cpp.
References can_freemove(), client, Pol::Mobile::VitalValue::current_ones(), dead(), frozen(), Pol::Core::gamestate, paralyzed(), Pol::Core::private_say_above(), Pol::Core::settingsManager, and vital().
Referenced by face().
bool Pol::Mobile::Character::can_freemove | ( | ) | const |
Definition at line 1271 of file charactr.cpp.
References cached_settings, Pol::Mobile::FREEMOVE, and Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get().
Referenced by can_face(), CheckPushthrough(), Pol::Core::TargetCursor::handle_target_cursor(), move(), and Pol::Mobile::NPC::npc_path_blocked().
bool Pol::Mobile::Character::can_hearghosts | ( | ) | const |
Definition at line 1246 of file charactr.cpp.
References cached_settings, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), and Pol::Mobile::HEAR_GHOSTS.
bool Pol::Mobile::Character::can_move | ( | const Items::Item * | item | ) | const |
Definition at line 1218 of file charactr.cpp.
References cached_settings, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), Pol::Items::Item::movable(), Pol::Mobile::MOVE_ANY, Pol::Core::UObject::objtype_, and UOBJ_CORPSE.
Referenced by Pol::Core::get_item(), Pol::Module::UOExecutorModule::internal_MoveItem(), Pol::Module::UOExecutorModule::mf_EquipItem(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Module::UOExecutorModule::mf_MoveItemToSecureTradeWin(), Pol::Multi::UBoat::send_display_boat(), Pol::Core::send_item(), and Pol::Core::send_item_to_inrange().
bool Pol::Mobile::Character::can_moveanydist | ( | ) | const |
Definition at line 1256 of file charactr.cpp.
References cached_settings, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), and Pol::Mobile::MOVE_ANY_DIST.
Referenced by Pol::Core::drop_item_on_ground(), Pol::Core::drop_item_on_mobile(), Pol::Core::drop_item_on_object(), Pol::Core::get_item(), and Pol::Core::place_item().
bool Pol::Mobile::Character::can_plogany | ( | ) | const |
Definition at line 1261 of file charactr.cpp.
References cached_settings, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), and Pol::Mobile::PLOG_ANY.
Referenced by Pol::Core::textcmd_startlog(), and Pol::Core::textcmd_stoplog().
bool Pol::Mobile::Character::can_rename | ( | const Character * | chr | ) | const |
Definition at line 1236 of file charactr.cpp.
References cached_settings, can_be_renamed_by(), Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), and Pol::Mobile::RENAME_ANY.
Referenced by Pol::Core::handle_rename_char(), and Pol::Core::send_short_statmsg().
|
inline |
Definition at line 1032 of file charactr.h.
Referenced by Pol::Core::can_see_on_corpse(), Pol::Core::send_container_contents(), Pol::Multi::UBoat::send_display_boat(), Pol::Core::send_item(), and Pol::Core::send_item_to_inrange().
bool Pol::Mobile::Character::can_speedhack | ( | ) | const |
Definition at line 1266 of file charactr.cpp.
References cached_settings, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), and Pol::Mobile::SPEEDHACK.
Referenced by Pol::Network::Client::SpeedHackPrevention().
void Pol::Mobile::Character::cancel_menu | ( | ) |
Definition at line 4109 of file charactr.cpp.
References weak_ptr< T >::clear(), client, menu, and on_menu_selection.
Referenced by Pol::Core::handle_menu_selection().
void Pol::Mobile::Character::cancel_party_invite_timeout | ( | ) |
Definition at line 1520 of file party.cpp.
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), Pol::Core::handle_accept_invite(), and Pol::Core::handle_decline_invite().
unsigned short Pol::Mobile::Character::carrying_capacity | ( | ) | const |
A Mobile's carrying capacity is (40 + 3.5*STR + chr.carrying_capacity_mod)*ssopt.carrying_capacity_mod stones.
Definition at line 527 of file charactr.cpp.
References Pol::Core::settingsManager, and strength().
Referenced by move(), and Pol::Core::send_full_statmsg().
|
inline |
Definition at line 1018 of file charactr.h.
Referenced by Pol::Core::CanUseSkill(), Pol::Core::do_cast(), Pol::Items::Item::double_click(), and Pol::Module::UOExecutorModule::mf_UseItem().
int Pol::Mobile::Character::charindex | ( | ) | const |
Definition at line 533 of file charactr.cpp.
References acct, Pol::Core::PolConfig::character_slots, Pol::Plib::SystemState::config, POLLOG_INFO, Pol::Core::ULWObject::serial, and Pol::Plib::systemstate.
Referenced by printProperties(), and readCommonProperties().
void Pol::Mobile::Character::check_attack_after_move | ( | ) |
Definition at line 3381 of file charactr.cpp.
References attack(), client, dead(), frozen(), FUNCTION_CHECKPOINT, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), get_attackable_opponent(), INFO_PRINT_TRACE, mob_flags_, paralyzed(), Pol::Mobile::READY_TO_SWING, reset_swing_timer(), schedule_attack(), Pol::Core::send_fight_occuring(), Pol::Core::ULWObject::serial, and Pol::Core::settingsManager.
Referenced by swing_task_func(), and tellmove().
void Pol::Mobile::Character::check_concealment_level | ( | ) |
Definition at line 2645 of file charactr.cpp.
References cmdlevel(), and concealed().
void Pol::Mobile::Character::check_justice_region_change | ( | ) |
Definition at line 3448 of file charactr.cpp.
References Pol::Core::OneShotTask::cancel(), Pol::Network::Client::chr, clear_opponent_of(), client, Pol::Core::JusticeRegion::entertext(), Pol::Core::gamestate, Pol::Network::Client::gd, get_opponent(), Pol::Core::RegionGroup< T >::getregion(), Pol::Network::ClientGameData::justice_region, Pol::Core::GameState::justicedef, Pol::Core::JusticeRegion::leavetext(), opponent_, opponent_of, Pol::Core::ULWObject::realm, Pol::Core::JusticeRegion::RunEnterScript(), Pol::Core::JusticeRegion::RunLeaveScript(), Pol::Core::JusticeRegion::RunNoCombatCheck(), schedule_attack(), Pol::Core::send_sysmessage(), set_opponent(), swing_task, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by check_region_changes().
void Pol::Mobile::Character::check_light_region_change | ( | ) |
Definition at line 3416 of file charactr.cpp.
References client, Pol::Core::ServSpecOpt::default_light_level, Pol::Core::gamestate, Pol::Network::Client::gd, Pol::Core::RegionGroup< T >::getregion(), Pol::Core::GameState::lightdef, Pol::Core::LightRegion::lightlevel, Pol::Network::ClientGameData::lightlevel, Pol::Core::WeatherRegion::lightoverride, Pol::Core::read_gameclock(), Pol::Core::ULWObject::realm, Pol::Core::send_light(), Pol::Core::settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Network::ClientGameData::weather_region, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by check_region_changes(), Pol::Core::move_character_to(), Pol::Core::update_lightregion(), and Pol::Core::update_weatherregion().
void Pol::Mobile::Character::check_music_region_change | ( | ) |
Definition at line 3515 of file charactr.cpp.
References client, Pol::Core::gamestate, Pol::Network::Client::gd, Pol::Core::MusicRegion::getmidi(), Pol::Core::RegionGroup< T >::getregion(), Pol::Network::ClientGameData::music_region, Pol::Core::GameState::musicdef, Pol::Core::ULWObject::realm, Pol::Core::send_midi(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by check_region_changes().
void Pol::Mobile::Character::check_region_changes | ( | ) |
Definition at line 3576 of file charactr.cpp.
References check_justice_region_change(), check_light_region_change(), check_music_region_change(), check_weather_region_change(), and client.
Referenced by Pol::Core::start_client_char(), and tellmove().
bool Pol::Mobile::Character::check_skill | ( | Core::USKILLID | skillid, |
int | difficulty, | ||
unsigned short | pointvalue | ||
) |
Definition at line 2626 of file charactr.cpp.
References Pol::Core::ExportedFunction::call(), Pol::Core::SystemHooks::check_skill_hook, Pol::Core::gamestate, INC_PROFILEVAR, and Pol::Core::GameState::system_hooks.
Referenced by Pol::Core::USpell::check_skill(), and Pol::Module::AttributeExecutorModule::mf_CheckSkill().
void Pol::Mobile::Character::check_undamaged | ( | ) |
Clear a Mobile's ToBeReportable list when all of the following are true: 1) hits are at maximum 2) mobile is not poisoned 3) mobile is not paralyzed.
Definition at line 1962 of file charactr.cpp.
References clear_to_be_reportables(), Pol::Core::gamestate, Pol::Mobile::VitalValue::is_at_maximum(), paralyzed(), poisoned(), and vital().
Referenced by heal_damage_hundredths().
void Pol::Mobile::Character::check_weather_region_change | ( | bool | force = false | ) |
Definition at line 3535 of file charactr.cpp.
References Pol::Core::WeatherRegion::aux, client, Pol::Core::gamestate, Pol::Network::Client::gd, Pol::Core::RegionGroup< T >::getregion(), Pol::Network::ClientGameData::lightlevel, Pol::Core::WeatherRegion::lightoverride, Pol::Core::ULWObject::realm, Pol::Core::send_light(), Pol::Core::send_weather(), Pol::Core::WeatherRegion::severity, Pol::Network::ClientGameData::weather_region, Pol::Core::GameState::weatherdef, Pol::Core::WeatherRegion::weathertype, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by check_region_changes(), Pol::Core::start_client_char(), and Pol::Core::update_weatherregion().
bool Pol::Mobile::Character::CheckPushthrough | ( | ) |
Definition at line 3937 of file charactr.cpp.
References Pol::Core::ExportedFunction::call(), can_freemove(), dead(), Pol::Core::UObject::facing, Pol::Core::gamestate, hidden(), Pol::Core::WorldIterator< Filter >::InRange(), is_visible_to_me(), Pol::Core::make_mobileref(), Pol::Core::move_delta, Pol::Core::SystemHooks::pushthrough_hook, Pol::Core::ULWObject::realm, ref_counted::release(), Pol::Core::GameState::system_hooks, Pol::Core::ULWObject::x, Pol::Core::MoveDelta::xmove, Pol::Core::ULWObject::y, Pol::Core::MoveDelta::ymove, and Pol::Core::ULWObject::z.
Referenced by move().
Items::UArmor * Pol::Mobile::Character::choose_armor | ( | ) | const |
Definition at line 3140 of file charactr.cpp.
References armor_, Pol::Core::GameState::armorzones, Pol::Core::gamestate, and Pol::Clib::random_double().
Referenced by armor_absorb_damage(), and get_hitscript_params().
|
protectedvirtual |
Implements Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 753 of file charactr.cpp.
void Pol::Mobile::Character::clear_criminal_timer | ( | ) |
Definition at line 771 of file repsys.cpp.
void Pol::Mobile::Character::clear_gotten_item | ( | ) |
Definition at line 469 of file charactr.cpp.
References client, connected(), MOVE_ITEM_FAILURE_UNKNOWN, Pol::Core::send_item_move_failure(), and Pol::Core::undo_get_item().
Referenced by die(), and Pol::Core::start_client_char().
void Pol::Mobile::Character::clear_my_aggressors | ( | ) |
Definition at line 1196 of file repsys.cpp.
References remove_as_aggressor_to(), and Pol::Core::system_find_mobile().
Referenced by die().
void Pol::Mobile::Character::clear_my_lawful_damagers | ( | ) |
Definition at line 1223 of file repsys.cpp.
References remove_as_lawful_damager(), and Pol::Core::system_find_mobile().
Referenced by die().
void Pol::Mobile::Character::clear_opponent_of | ( | ) |
Definition at line 2182 of file charactr.cpp.
References opponent_of, and set_opponent().
Referenced by check_justice_region_change(), die(), and removal_cleanup().
void Pol::Mobile::Character::clear_reportable | ( | u32 | serial, |
Core::polclock_t | time | ||
) |
Definition at line 1188 of file repsys.cpp.
References Pol::Mobile::reportable_t::polclock, and Pol::Mobile::reportable_t::serial.
void Pol::Mobile::Character::clear_to_be_reportables | ( | ) |
Definition at line 1167 of file repsys.cpp.
Referenced by check_undamaged().
void Pol::Mobile::Character::clearBuffs | ( | ) |
Removes al buffs for the character Sends packets to the client accordingly
Definition at line 4224 of file charactr.cpp.
|
inline |
Definition at line 993 of file charactr.h.
Referenced by Pol::Core::char_select(), check_concealment_level(), Pol::Core::client_io_thread(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Core::get_textcmd_help(), is_concealed_from_me(), Pol::Core::process_command(), and Pol::Core::start_textcmd_script().
|
inline |
Definition at line 998 of file charactr.h.
void Pol::Mobile::Character::commit_to_reportables | ( | ) |
Definition at line 1172 of file repsys.cpp.
References Pol::Core::polclock(), Pol::Mobile::reportable_t::polclock, and Pol::Mobile::reportable_t::serial.
Referenced by die().
|
inline |
Definition at line 955 of file charactr.h.
Referenced by check_concealment_level(), is_concealed_from_me(), Pol::Module::UOExecutorModule::mf_ListHostiles(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocation(), and on_concealed_changed().
|
inline |
Definition at line 960 of file charactr.h.
bool Pol::Mobile::Character::connected | ( | ) | const |
Definition at line 438 of file charactr.cpp.
References Pol::Mobile::CONNECTED, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), and mob_flags_.
Referenced by clear_gotten_item(), Pol::Core::client_io_thread(), Pol::Mobile::NPC::NPC(), Pol::Core::start_client_char(), Pol::Core::start_packetlog(), and Pol::Core::stop_packetlog().
void Pol::Mobile::Character::connected | ( | bool | newvalue | ) |
Definition at line 443 of file charactr.cpp.
References Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::change(), Pol::Mobile::CONNECTED, and mob_flags_.
bool Pol::Mobile::Character::consume | ( | const Core::Vital * | pVital, |
VitalValue & | vv, | ||
unsigned int | amt | ||
) |
Definition at line 1540 of file charactr.cpp.
References Pol::Mobile::VitalValue::consume(), Pol::Mobile::VitalValue::current_ones(), Pol::Core::UObject::set_dirty(), and Pol::Network::ClientInterface::tell_vital_changed().
Referenced by apply_raw_damage_hundredths(), Pol::Core::USpell::consume_mana(), Pol::Module::VitalExecutorModule::mf_ConsumeVital(), move(), and regen_vital().
void Pol::Mobile::Character::create_trade_container | ( | ) |
Definition at line 4132 of file charactr.cpp.
References Pol::Items::Item::create(), ref_ptr< T >::get(), Pol::Core::ULWObject::realm, ref_ptr< T >::set(), Pol::Core::settingsManager, and trading_cont.
Referenced by Pol::Core::do_open_trade_window().
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 2998 of file uoscrobj.cpp.
References Pol::Bscript::Executor::fparams, Pol::Core::networkManager, and Pol::Bscript::Executor::numParams().
bool Pol::Mobile::Character::CustomHousingMove | ( | unsigned char | i_dir | ) |
Definition at line 3706 of file charactr.cpp.
References Pol::Multi::UMulti::as_house(), client, Pol::Network::ClientGameData::custom_house_serial, Pol::Multi::CustomHouseDesign::custom_house_z_xlate_table, dir, Pol::Multi::UHouse::editing_floor_num, Pol::Core::UObject::facing, Pol::Network::Client::gd, lastx, lasty, Pol::Multi::MultiDef::maxrx, Pol::Multi::MultiDef::maxry, Pol::Multi::MultiDef::minrx, Pol::Multi::MultiDef::minry, Pol::Core::move_delta, Pol::Core::MoveCharacterWorldPosition(), Pol::Multi::UMulti::multidef(), passert, PKTIN_02_FACING_MASK, position_changed(), Pol::Core::UObject::set_dirty(), setfacing(), Pol::Core::system_find_multi(), Pol::Core::ULWObject::x, Pol::Core::MoveDelta::xmove, Pol::Core::ULWObject::y, Pol::Core::MoveDelta::ymove, and Pol::Core::ULWObject::z.
Referenced by move().
void Pol::Mobile::Character::damage_weapon | ( | ) |
Definition at line 3132 of file charactr.cpp.
References Pol::Items::Equipment::is_intrinsic(), Pol::Items::UWeapon::is_projectile(), Pol::Items::Equipment::reduce_hp_from_hit(), and weapon.
Referenced by attack().
|
inline |
Definition at line 931 of file charactr.h.
Referenced by apply_raw_damage_hundredths(), can_face(), Pol::Core::CanUseSkill(), check_attack_after_move(), CheckPushthrough(), Pol::Mobile::PrivUpdater::disable_see_ghosts(), Pol::Core::doubleclick(), Pol::Mobile::PrivUpdater::enable_see_ghosts(), Pol::Core::equip_item(), Pol::Core::get_item(), Pol::Mobile::handle_attack(), Pol::Core::handle_open_spellbook(), Pol::Core::handle_processed_speech(), Pol::Core::TargetCursor::handle_target_cursor(), heal_damage_hundredths(), is_attackable(), is_visible_to_me(), Pol::Module::UOExecutorModule::mf_ListGhostsNearLocation(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocation(), Pol::Module::UOExecutorModule::mf_Resurrect(), move(), Pol::Mobile::NPC::npc_path_blocked(), Pol::Core::open_trade_window(), printProperties(), resurrect(), Pol::Core::sayto_listening_points(), Pol::Mobile::send_create_ghost(), Pol::Core::SendUnicodeSpeech(), set_opponent(), set_warmode(), and Pol::Module::ItemGivenEvent::~ItemGivenEvent().
bool Pol::Mobile::Character::deafened | ( | ) | const |
Definition at line 4061 of file charactr.cpp.
References Pol::Core::read_gameclock().
Referenced by Pol::Core::create_nametags(), Pol::Mobile::NPC::on_ghost_pc_spoke(), and Pol::Mobile::NPC::on_pc_spoke().
|
static |
Definition at line 772 of file charactr.cpp.
References Pol::Core::MOVEMODE_AIR, Pol::Core::MOVEMODE_FLY, Pol::Core::MOVEMODE_LAND, Pol::Core::MOVEMODE_NONE, and Pol::Core::MOVEMODE_SEA.
Referenced by Pol::Module::UOExecutorModule::mf_CanWalk(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), and readCommonProperties().
bool Pol::Mobile::Character::delBuff | ( | u16 | icon | ) |
Removes a buff for the character Sends packets to the client accordingly
Definition at line 4206 of file charactr.cpp.
References buffs_, client, and Pol::Core::send_buff_message().
Referenced by addBuff(), and clearBuffs().
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 482 of file charactr.cpp.
References Pol::Core::UObject::destroy(), registered_house, stop_skill_script(), Pol::Core::system_find_multi(), and Pol::Multi::UMulti::unregister_object().
Referenced by Pol::Core::ObjectHash::ClearCharacterAccountReferences(), Pol::Core::delete_character(), and Pol::Mobile::NPC::destroy().
u16 Pol::Mobile::Character::dexterity | ( | ) | const |
Definition at line 4089 of file charactr.cpp.
References attribute(), Pol::Mobile::AttributeValue::effective(), and Pol::Core::gamestate.
Referenced by Pol::Mobile::NPC::printProperties(), Pol::Mobile::NPC::readNpcProperties(), and schedule_attack().
void Pol::Mobile::Character::die | ( | ) |
Unequip scripts aren't honored when moving a dead mobile's equipment onto a corpse if honor_unequip_script_on_death is disabled.
Definition at line 2194 of file charactr.cpp.
References acct, Pol::Core::UCorpse::add(), Pol::Core::UContainer::add(), Pol::Core::UContainer::add_at_random_location(), Pol::Core::add_item_to_world(), backpack(), Pol::Core::UContainer::can_add(), Pol::Core::UContainer::can_add_to_slot(), Pol::Core::cancel_trade(), Pol::Items::Item::check_unequip_script(), Pol::Items::Item::check_unequiptest_scripts(), CLEAR_CHECKPOINT, clear_gotten_item(), clear_my_aggressors(), clear_my_lawful_damagers(), clear_opponent_of(), Pol::Items::Item::clone(), Pol::Core::UObject::color, commit_to_reportables(), Pol::Items::Item::container, Pol::Core::UObject::copyprops(), Pol::Core::UCorpse::corpsetype, Pol::Items::Item::create(), Pol::Mobile::DEAD, DECLARE_CHECKPOINT, Pol::Core::UContainer::extract(), Pol::Core::UObject::facing, Pol::Mobile::FROZEN, Pol::Core::gamestate, gender, Pol::Core::GENDER_MALE, Pol::Core::ULWObject::graphic, Pol::Items::Item::insured(), Pol::Items::Item::invisible(), is_trading(), ITEM_ELEM_PTR, last_corpse, Pol::Items::Item::layer, Pol::Core::LAYER_BACKPACK, Pol::Core::LAYER_BEARD, Pol::Core::LAYER_EQUIP__HIGHEST, Pol::Core::LAYER_EQUIP__LOWEST, Pol::Core::LAYER_FACE, Pol::Core::LAYER_HAIR, Pol::Core::LAYER_MOUNT, Pol::Core::LAYER_ROBE_DRESS, Pol::Core::make_mobileref(), mob_flags_, Pol::Items::Item::movable(), Pol::Core::move_item(), Pol::Core::UObject::name_, Pol::Items::Item::newbie(), Pol::Items::Item::no_drop(), on_death(), Pol::Core::UCorpse::ownerserial, Pol::Mobile::PARALYZED, race, Pol::Core::RACE_ELF, Pol::Core::RACE_GARGOYLE, Pol::Core::RACE_HUMAN, Pol::Core::ULWObject::realm, Pol::Core::register_with_supporting_multi(), Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::remove(), Pol::Items::Item::restart_decay_timer(), Pol::Core::send_death_message(), Pol::Core::send_item_to_inrange(), Pol::Core::ULWObject::serial, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::set(), set_current_ones(), set_opponent(), Pol::Core::UObject::setname(), Pol::Core::settingsManager, Pol::Items::Item::slot_index(), Pol::Core::UCorpse::take_contents_to_grave(), truecolor, unequip(), UOBJ_CORPSE, UOBJ_ELF_FEMALE, UOBJ_ELF_FEMALE_GHOST, UOBJ_ELF_MALE, UOBJ_ELF_MALE_GHOST, UOBJ_GARGOYLE_FEMALE, UOBJ_GARGOYLE_FEMALE_GHOST, UOBJ_GARGOYLE_MALE, UOBJ_GARGOYLE_MALE_GHOST, UOBJ_HUMAN_FEMALE, UOBJ_HUMAN_FEMALE_GHOST, UOBJ_HUMAN_MALE, UOBJ_HUMAN_MALE_GHOST, UPDATE_CHECKPOINT, Pol::Core::update_item_to_inrange(), Pol::Items::Item::use_insurance(), vital(), Pol::Mobile::WARMODE, wornitems, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by apply_raw_damage_hundredths().
void Pol::Mobile::Character::disable_regeneration_for | ( | int | seconds | ) |
Definition at line 3060 of file charactr.cpp.
References disable_regeneration_until, and Pol::Core::poltime().
Referenced by apply_raw_damage_hundredths(), and set_warmode().
void Pol::Mobile::Character::disconnect_cleanup | ( | ) |
Definition at line 417 of file charactr.cpp.
References Pol::Core::cancel_trade(), is_trading(), Pol::Core::on_loggoff_party(), stop_skill_script(), and tcursor2.
Referenced by Pol::Core::client_io_thread(), and removal_cleanup().
void Pol::Mobile::Character::do_attack_effects | ( | Character * | target | ) |
Definition at line 3162 of file charactr.cpp.
References Pol::Core::ACTION_LOOK_AROUND, Pol::Core::ULWObject::graphic, Pol::Items::UWeapon::is_projectile(), Pol::Core::play_moving_effect(), Pol::Core::play_sound_effect(), Pol::Items::UWeapon::projectile_anim(), Pol::Items::UWeapon::projectile_sound(), Pol::Core::send_action_to_inrange(), UOBJ_HUMAN_MALE, weapon, and weapon_anim().
Referenced by attack().
void Pol::Mobile::Character::do_hit_failure_effects | ( | ) |
Definition at line 3198 of file charactr.cpp.
References Pol::Items::UWeapon::miss_sound(), Pol::Core::play_sound_effect(), and weapon.
Referenced by attack().
void Pol::Mobile::Character::do_hit_success_effects | ( | ) |
Definition at line 3191 of file charactr.cpp.
References Pol::Items::UWeapon::hit_sound(), Pol::Core::play_sound_effect(), and weapon.
Referenced by attack().
void Pol::Mobile::Character::do_imhit_effects | ( | ) |
Definition at line 3212 of file charactr.cpp.
References Pol::Core::ACTION_GOT_HIT, get_damaged_sound(), Pol::Core::UObject::objtype_, Pol::Core::play_sound_effect(), Pol::Core::send_action_to_inrange(), Pol::Core::settingsManager, and UOBJ_HUMAN_MALE.
Referenced by apply_damage().
bool Pol::Mobile::Character::doors_block | ( | ) | const |
Definition at line 3629 of file charactr.cpp.
References cached_settings, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), Pol::Core::ULWObject::graphic, Pol::Mobile::IGNORE_DOORS, UOBJ_ELF_FEMALE_GHOST, UOBJ_ELF_MALE_GHOST, UOBJ_GAMEMASTER, UOBJ_GARGOYLE_FEMALE_GHOST, UOBJ_GARGOYLE_MALE_GHOST, UOBJ_HUMAN_FEMALE_GHOST, and UOBJ_HUMAN_MALE_GHOST.
Referenced by Pol::Realms::Realm::walkheight().
|
protected |
Pol::Mobile::Character::DYN_PROPERTY | ( | lightoverride | , |
int | , | ||
Core::PROP_LIGHTOVERRIDE | , | ||
- | 1 | ||
) |
Pol::Mobile::Character::DYN_PROPERTY | ( | lightoverride_until | , |
Core::gameclock_t | , | ||
Core::PROP_LIGHTOVERRIDE_UNTIL | , | ||
0 | |||
) |
Pol::Mobile::Character::DYN_PROPERTY | ( | movement_cost | , |
Core::MovementCostMod | , | ||
Core::PROP_MOVEMENTCOST_MOD | , | ||
Core::MovementCostMod::DEFAULT | |||
) |
|
protected |
|
protected |
|
protected |
|
protected |
Pol::Mobile::Character::DYN_PROPERTY | ( | disable_skills_until | , |
time_t | , | ||
Core::PROP_DISABLE_SKILLS_UNTIL | , | ||
0 | |||
) |
Pol::Mobile::Character::DYN_PROPERTY | ( | skillstatcap | , |
Core::SkillStatCap | , | ||
Core::PROP_STATCAP_SKILLCAP | , | ||
Core::SkillStatCap::DEFAULT | |||
) |
Pol::Mobile::Character::DYN_PROPERTY | ( | luck | , |
s16 | , | ||
Core::PROP_EXT_STATBAR_LUCK | , | ||
0 | |||
) |
Pol::Mobile::Character::DYN_PROPERTY | ( | followers | , |
Core::ExtStatBarFollowers | , | ||
Core::PROP_EXT_STATBAR_FOLLOWERS | , | ||
Core::ExtStatBarFollowers::DEFAULT | |||
) |
Pol::Mobile::Character::DYN_PROPERTY | ( | tithing | , |
s32 | , | ||
Core::PROP_EXT_STATBAR_TITHING | , | ||
0 | |||
) |
|
protected |
|
protected |
Pol::Mobile::Character::DYN_PROPERTY | ( | dblclick_wait | , |
u32 | , | ||
Core::PROP_DOUBLECLICK_WAIT | , | ||
0 | |||
) |
Pol::Mobile::Character::DYN_PROPERTY | ( | title_prefix | , |
std::string | , | ||
Core::PROP_TITLE_PREFIX | , | ||
"" | |||
) |
Pol::Mobile::Character::DYN_PROPERTY | ( | title_suffix | , |
std::string | , | ||
Core::PROP_TITLE_SUFFIX | , | ||
"" | |||
) |
Pol::Mobile::Character::DYN_PROPERTY | ( | title_guild | , |
std::string | , | ||
Core::PROP_TITLE_GUILD | , | ||
"" | |||
) |
Pol::Mobile::Character::DYN_PROPERTY | ( | title_race | , |
std::string | , | ||
Core::PROP_TITLE_RACE | , | ||
"" | |||
) |
Pol::Mobile::Character::DYN_PROPERTY_POINTER | ( | gotten_item | , |
Items::Item * | , | ||
Core::PROP_GOTTEN_BY | |||
) |
Pol::Mobile::Character::DYN_PROPERTY_POINTER | ( | guild | , |
Core::Guild * | , | ||
Core::PROP_GUILD | |||
) |
Pol::Mobile::Character::DYN_PROPERTY_POINTER | ( | party | , |
Core::Party * | , | ||
Core::PROP_PARTY | |||
) |
Pol::Mobile::Character::DYN_PROPERTY_POINTER | ( | candidate_of | , |
Core::Party * | , | ||
Core::PROP_PARTY_CANDIDATE | |||
) |
Pol::Mobile::Character::DYN_PROPERTY_POINTER | ( | offline_mem_of | , |
Core::Party * | , | ||
Core::PROP_PARTY_OFFLINE | |||
) |
|
static |
Definition at line 788 of file charactr.cpp.
References Pol::Core::MOVEMODE_AIR, Pol::Core::MOVEMODE_FLY, Pol::Core::MOVEMODE_LAND, and Pol::Core::MOVEMODE_SEA.
Referenced by printProperties().
void Pol::Mobile::Character::equip | ( | Items::Item * | item | ) |
Definition at line 1433 of file charactr.cpp.
References Pol::Core::CLASS_ARMOR, Pol::Core::CLASS_WEAPON, equippable(), Pol::Clib::hexint(), Pol::Core::ULWObject::isa(), Pol::Items::Item::layer, Pol::Core::LAYER_HAND1, Pol::Core::LAYER_HAND2, Pol::Core::UObject::objtype_, passert_r, refresh_ar(), reset_swing_timer(), shield, weapon, and wornitems.
Referenced by Pol::Module::character_race_changer_handler(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Module::NPCExecutorModule::CreateBackpack(), Pol::Core::equip_from_template(), Pol::Core::equip_item(), Pol::Core::equip_loaded_item(), Pol::Module::UOExecutorModule::mf_EquipItem(), on_death(), resurrect(), and Pol::Core::undo_get_item().
bool Pol::Mobile::Character::equippable | ( | const Items::Item * | item | ) | const |
Definition at line 1356 of file charactr.cpp.
References attribute(), Pol::Mobile::AttributeValue::base(), Pol::Items::ItemDesc::base_str_req, Pol::Core::CLASS_CONTAINER, Pol::Core::CLASS_WEAPON, Pol::Plib::SystemState::config, Pol::Items::UWeapon::descriptor(), Pol::Core::PolConfig::enforce_mount_objtype, Pol::Plib::FLAG::EQUIPPABLE, Pol::Core::SettingsManager::extobj, Pol::Core::gamestate, Pol::Core::ULWObject::graphic, Pol::Items::Equipment::is_intrinsic(), Pol::Core::ULWObject::isa(), Pol::Items::Item::itemdesc(), Pol::Core::LAYER_BACKPACK, Pol::Core::LAYER_HAND1, Pol::Core::LAYER_HAND2, layer_is_equipped(), Pol::Core::LAYER_MOUNT, Pol::Core::ExternalObject::mount, Pol::Core::UObject::objtype_, POLLOG_INFO, Pol::Core::ULWObject::serial, Pol::Core::settingsManager, Pol::Plib::systemstate, Pol::Core::tile_flags(), Pol::Items::Item::tile_layer, Pol::Core::tilelayer(), Pol::Items::WeaponDesc::two_handed, Pol::Items::valid_equip_layer(), and weapon.
Referenced by Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Module::NPCExecutorModule::CreateBackpack(), equip(), Pol::Core::equip_from_template(), Pol::Core::equip_item(), Pol::Core::equip_loaded_item(), Pol::Module::UOExecutorModule::mf_EquipItem(), on_death(), and Pol::Core::undo_get_item().
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 4252 of file charactr.cpp.
References aggressor_to_, armor_, attributes, buffs_, Pol::Clib::StringSet::estimatedSize(), Pol::Core::UObject::estimatedSize(), lawfully_damaged_, opponent_of, privs, remote_containers_, reportable_, settings, to_be_reportable_, uclang, and vitals.
Referenced by Pol::Mobile::NPC::estimatedSize().
bool Pol::Mobile::Character::face | ( | Core::UFACING | i_facing, |
int | flags = 0 |
||
) |
Definition at line 3678 of file charactr.cpp.
References cached_settings, can_face(), Pol::Core::UObject::facing, Pol::Mobile::FIRE_WHILE_MOVING, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), hidden(), Pol::Core::ServSpecOpt::hidden_turns_count, Pol::Items::UWeapon::is_projectile(), reset_swing_timer(), setfacing(), Pol::Core::settingsManager, Pol::Core::SettingsManager::ssopt, stealthsteps_, unhide(), and weapon.
Referenced by Pol::Module::NPCExecutorModule::face(), Pol::Module::NPCExecutorModule::mf_TurnAwayFrom(), Pol::Module::NPCExecutorModule::mf_TurnAwayFromLocation(), Pol::Module::NPCExecutorModule::mf_TurnToward(), Pol::Module::NPCExecutorModule::mf_TurnTowardLocation(), and move().
Items::Item * Pol::Mobile::Character::find_wornitem | ( | u32 | find_serial | ) | const |
Definition at line 1499 of file charactr.cpp.
References Pol::Core::UContainer::find(), Pol::Core::LAYER_BACKPACK, Pol::Core::LAYER_BEARD, Pol::Core::LAYER_EQUIP__HIGHEST, Pol::Core::LAYER_EQUIP__LOWEST, Pol::Core::LAYER_FACE, Pol::Core::LAYER_HAIR, Pol::Core::LAYER_MOUNT, Pol::Core::POLCLASS_CONTAINER, Pol::Items::Item::script_isa(), Pol::Core::ULWObject::serial, and wornitems.
Referenced by Pol::Core::find_legal_container(), and Pol::Core::find_legal_item().
|
inline |
Definition at line 969 of file charactr.h.
Referenced by can_face(), Pol::Core::CanUseSkill(), check_attack_after_move(), Pol::Core::create_nametags(), Pol::Core::do_cast(), Pol::Core::doubleclick(), Pol::Core::TargetCursor::handle_target_cursor(), and printProperties().
Character * Pol::Mobile::Character::get_attackable_opponent | ( | ) | const |
Definition at line 2913 of file charactr.cpp.
References INFO_PRINT_TRACE, is_attackable(), opponent_, opponent_of, and Pol::Core::ULWObject::serial.
Referenced by check_attack_after_move().
|
protectedvirtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 3205 of file charactr.cpp.
References gender, Pol::Core::GENDER_MALE, SOUND_EFFECT_FEMALE_DEFENSE, and SOUND_EFFECT_MALE_DEFENSE.
Referenced by do_imhit_effects(), and Pol::Mobile::NPC::get_damaged_sound().
u8 Pol::Mobile::Character::get_flag1 | ( | Network::Client * | other_client | ) | const |
Definition at line 1771 of file charactr.cpp.
References Pol::Core::CHAR_FLAG1_FLYING, Pol::Core::CHAR_FLAG1_GENDER, Pol::Core::CHAR_FLAG1_INVISIBLE, Pol::Core::CHAR_FLAG1_POISONED, Pol::Core::CHAR_FLAG1_WARMODE, Pol::Core::CHAR_FLAG1_YELLOWHEALTH, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_7000, gender, invul(), is_visible(), movemode, Pol::Core::MOVEMODE_FLY, poisoned(), Pol::Core::settingsManager, and warmode().
Referenced by Pol::Network::MoveChrPkt::Send(), Pol::Core::send_goxyz(), and Pol::Core::send_owncreate().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 1899 of file charactr.cpp.
References Pol::Items::UArmor::ar(), Pol::Mobile::calc_thru_damage(), and choose_armor().
Referenced by Pol::Mobile::NPC::get_hitscript_params(), and run_hit_script().
Character * Pol::Mobile::Character::get_opponent | ( | ) | const |
Definition at line 2868 of file charactr.cpp.
References opponent_, and opponent_of.
Referenced by check_justice_region_change(), Pol::Network::Client::PreDelete(), send_highlight(), and set_opponent().
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 2072 of file uoscrobj.cpp.
References Pol::Bscript::getKnownObjMember(), and Pol::Bscript::ObjMember::id.
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 1659 of file uoscrobj.cpp.
References Pol::Module::GuildExecutorModule::CreateGuildRefObjImp(), Pol::Module::CreatePartyRefObjImp(), Pol::Core::gamestate, Pol::Network::VersionDetailStruct::major, Pol::Items::Item::make_ref(), Pol::Bscript::MBR_ACCT, Pol::Bscript::MBR_ACCTNAME, Pol::Bscript::MBR_ACTIVE_SKILL, Pol::Bscript::MBR_AGGRESSORTO, Pol::Bscript::MBR_AR, Pol::Bscript::MBR_AR_MOD, Pol::Bscript::MBR_ATTACHED, Pol::Bscript::MBR_BACKPACK, Pol::Bscript::MBR_CANDIDATE_OF_PARTY, Pol::Bscript::MBR_CARRYINGCAPACITY, Pol::Bscript::MBR_CARRYINGCAPACITY_MOD, Pol::Bscript::MBR_CASTING_SPELL, Pol::Bscript::MBR_CLIENT, Pol::Bscript::MBR_CLIENTINFO, Pol::Bscript::MBR_CLIENTTYPE, Pol::Bscript::MBR_CLIENTVERSION, Pol::Bscript::MBR_CLIENTVERSIONDETAIL, Pol::Bscript::MBR_CMDLEVEL, Pol::Bscript::MBR_CMDLEVELSTR, Pol::Bscript::MBR_COLD_DAMAGE, Pol::Bscript::MBR_COLD_DAMAGE_MOD, Pol::Bscript::MBR_COLD_RESIST, Pol::Bscript::MBR_COLD_RESIST_MOD, Pol::Bscript::MBR_CONCEALED, Pol::Bscript::MBR_CONNECTED, Pol::Bscript::MBR_CREATEDAT, Pol::Bscript::MBR_CRIMINAL, Pol::Bscript::MBR_CURSOR, Pol::Bscript::MBR_DEAD, Pol::Bscript::MBR_DEAFENED, Pol::Bscript::MBR_DELAY_MOD, Pol::Bscript::MBR_EDITING, Pol::Bscript::MBR_ENERGY_DAMAGE, Pol::Bscript::MBR_ENERGY_DAMAGE_MOD, Pol::Bscript::MBR_ENERGY_RESIST, Pol::Bscript::MBR_ENERGY_RESIST_MOD, Pol::Bscript::MBR_EVASIONCHANCE_MOD, Pol::Bscript::MBR_FIRE_DAMAGE, Pol::Bscript::MBR_FIRE_DAMAGE_MOD, Pol::Bscript::MBR_FIRE_RESIST, Pol::Bscript::MBR_FIRE_RESIST_MOD, Pol::Bscript::MBR_FOLLOWERS, Pol::Bscript::MBR_FOLLOWERSMAX, Pol::Bscript::MBR_FROZEN, Pol::Bscript::MBR_GENDER, Pol::Bscript::MBR_GOLD, Pol::Bscript::MBR_GUILD, Pol::Bscript::MBR_GUILDID, Pol::Bscript::MBR_GUMP, Pol::Bscript::MBR_HIDDEN, Pol::Bscript::MBR_HITCHANCE_MOD, Pol::Bscript::MBR_IP, Pol::Bscript::MBR_LAST_TEXTCOLOR, Pol::Bscript::MBR_LASTCOORD, Pol::Bscript::MBR_LAWFULLYDAMAGED, Pol::Bscript::MBR_LUCK, Pol::Bscript::MBR_MOUNTEDSTEPS, Pol::Bscript::MBR_MOVECOST_RUN, Pol::Bscript::MBR_MOVECOST_RUN_MOUNTED, Pol::Bscript::MBR_MOVECOST_WALK, Pol::Bscript::MBR_MOVECOST_WALK_MOUNTED, Pol::Bscript::MBR_MOVEMODE, Pol::Bscript::MBR_MURDERER, Pol::Bscript::MBR_OPPONENT, Pol::Bscript::MBR_PARALYZED, Pol::Bscript::MBR_PARTY, Pol::Bscript::MBR_PARTYLOOT, Pol::Bscript::MBR_PHYSICAL_DAMAGE, Pol::Bscript::MBR_PHYSICAL_DAMAGE_MOD, Pol::Bscript::MBR_PHYSICAL_RESIST, Pol::Bscript::MBR_PHYSICAL_RESIST_MOD, Pol::Bscript::MBR_POISON_DAMAGE, Pol::Bscript::MBR_POISON_DAMAGE_MOD, Pol::Bscript::MBR_POISON_RESIST, Pol::Bscript::MBR_POISON_RESIST_MOD, Pol::Bscript::MBR_POISONED, Pol::Bscript::MBR_PROMPT, Pol::Bscript::MBR_RACE, Pol::Bscript::MBR_REPORTABLES, Pol::Bscript::MBR_SHIELD, Pol::Bscript::MBR_SKILLCAP, Pol::Bscript::MBR_SQUELCHED, Pol::Bscript::MBR_STATCAP, Pol::Bscript::MBR_STEALTHSTEPS, Pol::Bscript::MBR_TEMPORALLY_CRIMINAL, Pol::Bscript::MBR_TITHING, Pol::Bscript::MBR_TITLE_GUILD, Pol::Bscript::MBR_TITLE_PREFIX, Pol::Bscript::MBR_TITLE_RACE, Pol::Bscript::MBR_TITLE_SUFFIX, Pol::Bscript::MBR_TRADEWINDOW, Pol::Bscript::MBR_TRADING_WITH, Pol::Bscript::MBR_TRUECOLOR, Pol::Bscript::MBR_TRUEOBJTYPE, Pol::Bscript::MBR_UCLANG, Pol::Bscript::MBR_UO_EXPANSION_CLIENT, Pol::Bscript::MBR_WARMODE, Pol::Bscript::MBR_WEAPON, Pol::Network::VersionDetailStruct::minor, Pol::Core::MOVEMODE_AIR, Pol::Core::MOVEMODE_FLY, Pol::Core::MOVEMODE_LAND, Pol::Core::MOVEMODE_SEA, name, Pol::Network::VersionDetailStruct::patch, Pol::Network::VersionDetailStruct::rev, and Pol::ECompile::run().
|
inline |
Definition at line 1046 of file charactr.h.
unsigned short Pol::Mobile::Character::get_weapon_skill | ( | ) | const |
ObjArray * Pol::Mobile::Character::GetAggressorTo | ( | ) | const |
Definition at line 3037 of file uoscrobj.cpp.
References Pol::Core::polclock(), Pol::Core::POLCLOCKS_PER_SEC, and Pol::Core::system_find_mobile().
ObjArray * Pol::Mobile::Character::GetLawFullyDamaged | ( | ) | const |
Definition at line 3063 of file uoscrobj.cpp.
References Pol::Core::polclock(), Pol::Core::POLCLOCKS_PER_SEC, and Pol::Core::system_find_mobile().
void Pol::Mobile::Character::getpos_ifmove | ( | Core::UFACING | i_facing, |
unsigned short * | px, | ||
unsigned short * | py | ||
) |
Definition at line 2770 of file charactr.cpp.
References Pol::Core::move_delta, Pol::Core::ULWObject::x, Pol::Core::MoveDelta::xmove, Pol::Core::ULWObject::y, and Pol::Core::MoveDelta::ymove.
Referenced by Pol::Module::NPCExecutorModule::IsLegalMove(), and Pol::Module::NPCExecutorModule::move().
ObjArray * Pol::Mobile::Character::GetReportables | ( | ) | const |
Definition at line 3011 of file uoscrobj.cpp.
References Pol::Mobile::reportable_t::polclock, Pol::Mobile::reportable_t::serial, and Pol::Core::system_find_mobile().
unsigned int Pol::Mobile::Character::gold_carried | ( | ) | const |
Definition at line 1309 of file charactr.cpp.
References backpack(), Pol::Core::UContainer::find_sumof_objtype_noninuse(), and UOBJ_GOLD_COIN.
Referenced by Pol::Module::oldBuyHandler(), Pol::Core::send_full_statmsg(), and spend_gold().
void Pol::Mobile::Character::grant_privilege | ( | const char * | priv | ) |
Definition at line 1184 of file charactr.cpp.
References Pol::Clib::StringSet::add(), Pol::Clib::StringSet::contains(), privs, and Pol::Core::UObject::set_dirty().
Referenced by Pol::Module::UOExecutorModule::mf_GrantPrivilege().
unsigned int Pol::Mobile::Character::guildid | ( | ) | const |
Definition at line 4176 of file charactr.cpp.
Referenced by Pol::Module::EGuildRefObjImp::call_method_id(), and Pol::Core::SendUnicodeSpeech().
bool Pol::Mobile::Character::has_active_client | ( | ) | const |
Definition at line 448 of file charactr.cpp.
References client, and Pol::Network::Client::isActive().
Referenced by Pol::Core::BPacket::call_method_id(), Pol::Accounts::AccountObjImp::call_method_id(), Pol::Module::EPartyRefObjImp::call_method_id(), Pol::Core::Party::disband(), Pol::Multi::UBoat::do_tellmoves(), Pol::Core::handle_decline_invite(), Pol::Core::handle_party_msg(), Pol::Core::handle_remove(), Pol::Core::invite_timeout(), Pol::Mobile::PrivUpdater::is_active_or_npc(), Pol::Module::UOExecutorModule::mf_CloseGump(), Pol::Module::UOExecutorModule::mf_CloseWindow(), Pol::Module::VitalExecutorModule::mf_ConsumeMana(), Pol::Module::PartyExecutorModule::mf_CreateParty(), Pol::Module::UOExecutorModule::mf_DisconnectClient(), Pol::Module::UOExecutorModule::mf_OpenPaperdoll(), Pol::Module::OSExecutorModule::mf_OpenURL(), Pol::Module::ClilocExecutorModule::mf_PrintTextAbovePrivateCL(), Pol::Module::UnicodeExecutorModule::mf_RequestInputUC(), Pol::Module::UOExecutorModule::mf_SecureTradeWin(), Pol::Module::UOExecutorModule::mf_SelectColor(), Pol::Module::UOExecutorModule::mf_SelectMenuItem(), Pol::Module::UOExecutorModule::mf_SendBuyWindow(), Pol::Module::UOExecutorModule::mf_SendGumpMenu(), Pol::Module::UOExecutorModule::mf_SendInstaResDialog(), Pol::Module::UOExecutorModule::mf_SendOpenBook(), Pol::Module::UOExecutorModule::mf_SendOpenSpecialContainer(), Pol::Module::UOExecutorModule::mf_SendPacket(), Pol::Module::UOExecutorModule::mf_SendPopUpMenu(), Pol::Module::UOExecutorModule::mf_SendQuestArrow(), Pol::Module::UOExecutorModule::mf_SendSellWindow(), Pol::Module::UOExecutorModule::mf_SendSkillWindow(), Pol::Module::UOExecutorModule::mf_SendStatus(), Pol::Module::UOExecutorModule::mf_SendStringAsTipWindow(), Pol::Module::UOExecutorModule::mf_SendSysMessage(), Pol::Module::ClilocExecutorModule::mf_SendSysMessageCL(), Pol::Module::UnicodeExecutorModule::mf_SendSysMessageUC(), Pol::Module::UOExecutorModule::mf_SendTextEntryGump(), Pol::Module::UOExecutorModule::mf_SendViewContainer(), Pol::Module::UOExecutorModule::mf_SingleClick(), Pol::Module::UOExecutorModule::mf_Target(), Pol::Module::UOExecutorModule::mf_TargetCancel(), Pol::Module::UOExecutorModule::mf_TargetCoordinates(), Pol::Module::UOExecutorModule::mf_TargetMultiPlacement(), Pol::Core::move_character_to(), on_aos_ext_stat_changed(), Pol::Mobile::PrivUpdater::on_change_see_invis_items(), Pol::Core::Party::on_mana_changed(), Pol::Core::Party::on_stam_changed(), realm_changed(), Pol::Core::send_empty_party(), send_highlight(), Pol::Core::Party::send_member_list(), Pol::Core::Party::send_member_msg_private(), Pol::Core::Party::send_member_msg_public(), Pol::Core::Party::send_msg_to_all(), Pol::Core::Party::send_remove_member(), Pol::Core::Party::send_stats_on_add(), and set_opponent().
bool Pol::Mobile::Character::has_active_gump | ( | ) | const |
Definition at line 459 of file charactr.cpp.
References client, Pol::Network::Client::gd, and Pol::Network::ClientGameData::gumpmods.
bool Pol::Mobile::Character::has_active_prompt | ( | ) | const |
Definition at line 453 of file charactr.cpp.
References client, Pol::Network::Client::gd, Pol::Network::ClientGameData::prompt_uniemod, and Pol::Network::ClientGameData::prompt_uoemod.
Referenced by Pol::Module::UOExecutorModule::mf_PromptInput(), and Pol::Module::UnicodeExecutorModule::mf_RequestInputUC().
bool Pol::Mobile::Character::has_lawfully_damaged | ( | const Character * | chr | ) | const |
Definition at line 723 of file repsys.cpp.
Referenced by Pol::Core::RepSystem::hilite_color_idx(), is_innocent_to(), and Pol::Core::RepSystem::name_color().
bool Pol::Mobile::Character::has_party_invite_timeout | ( | ) | const |
bool Pol::Mobile::Character::has_privilege | ( | const char * | priv | ) | const |
Definition at line 1091 of file charactr.cpp.
References Pol::Clib::StringSet::contains(), and privs.
Referenced by set_setting().
|
inline |
void Pol::Mobile::Character::heal_damage_hundredths | ( | unsigned int | amount | ) |
When a Mobile is Healed.
if Amy's hits are at maximum, Clear Amy's ToBeReportable list
(note, poisoned and paralyzed flags are not checked)
Definition at line 1979 of file charactr.cpp.
References check_undamaged(), dead(), Pol::Core::gamestate, produce(), Pol::Core::send_update_hits_to_inrange(), and vital().
Referenced by Pol::Module::VitalExecutorModule::mf_HealDamage().
|
inline |
Definition at line 941 of file charactr.h.
Referenced by apply_raw_damage_hundredths(), CheckPushthrough(), Pol::Mobile::PrivUpdater::disable_see_hidden(), Pol::Items::Item::double_click(), Pol::Mobile::PrivUpdater::enable_see_hidden(), face(), Pol::Core::handle_processed_speech(), is_attackable(), is_visible_to_me(), Pol::Module::UOExecutorModule::mf_ListHostiles(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocation(), Pol::Module::UOExecutorModule::mf_UseItem(), move(), on_hidden_changed(), printProperties(), Pol::Module::NPCExecutorModule::say(), Pol::Module::NPCExecutorModule::SayUC(), Pol::Core::SendUnicodeSpeech(), Pol::Core::USpell::speak_power_words(), Pol::Module::OSExecutorModule::start_skill_script(), Pol::Core::StartSkillScript(), and unhide().
|
inline |
Definition at line 946 of file charactr.h.
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 981 of file repsys.cpp.
References Pol::Core::RepSystem::hilite_color_idx().
Referenced by Pol::Core::handle_walk(), Pol::Network::MoveChrPkt::Send(), and Pol::Core::send_owncreate().
|
inline |
Definition at line 1023 of file charactr.h.
Referenced by Pol::Module::UOExecutorModule::mf_ListHostiles().
|
inline |
Definition at line 1028 of file charactr.h.
Referenced by Pol::Realms::Realm::has_los(), and Pol::Module::UOExecutorModule::mf_Target().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 2973 of file charactr.cpp.
Referenced by Pol::Mobile::NpcPropagateCriminal().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 2957 of file charactr.cpp.
References opponent_, and send_highlight().
Referenced by on_death(), and set_opponent().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 2965 of file charactr.cpp.
References opponent_, and send_highlight().
Referenced by Pol::Module::handle_script_cursor(), and set_opponent().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 2983 of file charactr.cpp.
Referenced by Pol::Mobile::NpcPropagateEnteredArea().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 2992 of file charactr.cpp.
Referenced by Pol::Mobile::NpcPropagateMove().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 2978 of file charactr.cpp.
Referenced by Pol::Mobile::NpcPropagateLeftArea().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 2988 of file charactr.cpp.
Referenced by Pol::Mobile::NpcPropagateMove().
u16 Pol::Mobile::Character::intelligence | ( | ) | const |
Definition at line 4093 of file charactr.cpp.
References attribute(), Pol::Mobile::AttributeValue::effective(), and Pol::Core::gamestate.
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 1459 of file charactr.cpp.
References Pol::Core::gamestate, and Pol::Core::GameState::wrestling_weapon.
Referenced by unequip().
bool Pol::Mobile::Character::invul | ( | ) | const |
Definition at line 4080 of file charactr.cpp.
References cached_settings, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), and Pol::Mobile::INVUL.
Referenced by Pol::Core::create_nametags(), get_flag1(), Pol::Core::RepSystem::hilite_color_idx(), Pol::Multi::UBoat::move_travellers(), Pol::Core::RepSystem::name_color(), Pol::Mobile::PropagateMove(), Pol::Core::send_goxyz(), Pol::Core::send_invulhealthbar(), Pol::Core::send_move(), Pol::Core::send_owncreate(), and Pol::Multi::UBoat::turn_travellers().
bool Pol::Mobile::Character::is_aggressor_to | ( | const Character * | chr | ) | const |
Definition at line 664 of file repsys.cpp.
Referenced by Pol::Core::RepSystem::hilite_color_idx(), is_innocent_to(), Pol::Core::RepSystem::name_color(), and Pol::Core::RepSystem::on_pc_attacks_pc().
bool Pol::Mobile::Character::is_attackable | ( | Character * | who | ) | const |
Definition at line 2878 of file charactr.cpp.
References Pol::Mobile::ATTACK_HIDDEN, cached_settings, dead(), Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), Pol::Realms::Realm::has_los(), hidden(), Pol::Mobile::HIDDEN_ATTACK, Pol::Items::UWeapon::in_range(), INFO_PRINT_TRACE, is_concealed_from_me(), passert, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::serial, Pol::Core::settingsManager, and weapon.
Referenced by get_attackable_opponent().
bool Pol::Mobile::Character::is_concealed_from_me | ( | const Character * | chr | ) | const |
Definition at line 2653 of file charactr.cpp.
References cmdlevel(), and concealed().
Referenced by is_attackable(), is_visible_to_me(), Pol::Core::singleclick(), and Pol::Core::srequest().
bool Pol::Mobile::Character::is_criminal | ( | ) | const |
A Mobile is Criminal if: he has an active Criminal Timer, which has not timed out. OR he is a murderer.
Definition at line 749 of file repsys.cpp.
Referenced by Pol::Core::RepSystem::hilite_color_idx(), is_innocent_to(), Pol::Core::RepSystem::name_color(), Pol::Core::RepSystem::on_pc_attacks_pc(), Pol::Core::RepSystem::on_pc_helps_pc(), repsys_on_attack(), repsys_on_damage(), and Pol::Core::RepSystem::show_repdata().
bool Pol::Mobile::Character::is_equipped | ( | const Items::Item * | item | ) | const |
Definition at line 1342 of file charactr.cpp.
References Pol::Items::Item::tile_layer, Pol::Items::valid_equip_layer(), and wornitems.
Referenced by Pol::Items::Item::check_unequip_script(), Pol::Items::Item::check_unequiptest_scripts(), Pol::Core::Spellbook::double_click(), Pol::Items::Item::extricate(), unequip(), and Pol::Core::UpdateCharacterOnDestroyItem().
bool Pol::Mobile::Character::is_guild_ally | ( | const Character * | chr | ) | const |
[10] Guild Rules The following Guild Rules are only temporary pending a more complete system
[10.1] Guild Allies Bob and Amy are Guild Allies if: Bob is in a guild, AND Amy is in a guild, AND Bob's Guild is allied with Amy's guild
Definition at line 680 of file repsys.cpp.
References Pol::Core::Guild::AreAllies().
Referenced by Pol::Core::RepSystem::hilite_color_idx(), is_innocent_to(), and Pol::Core::RepSystem::name_color().
bool Pol::Mobile::Character::is_guild_enemy | ( | const Character * | chr | ) | const |
[10.2] Guild Enemies Bob and Amy are Guild Enemies if: Bob is in a guild, AND Amy is in a guild, AND Bob's Guild is an Enemy Guild of Amy's Guild
Definition at line 696 of file repsys.cpp.
References Pol::Core::Guild::AreEnemies().
Referenced by Pol::Core::RepSystem::hilite_color_idx(), is_innocent_to(), and Pol::Core::RepSystem::name_color().
bool Pol::Mobile::Character::is_house_editing | ( | ) | const |
Definition at line 464 of file charactr.cpp.
References client, Pol::Network::ClientGameData::custom_house_serial, and Pol::Network::Client::gd.
Referenced by move(), and Pol::Realms::Realm::walkheight().
bool Pol::Mobile::Character::is_innocent_to | ( | const Character * | chr | ) | const |
[9] Innocent Status
Definition at line 638 of file repsys.cpp.
References has_lawfully_damaged(), is_aggressor_to(), is_criminal(), is_guild_ally(), is_guild_enemy(), and is_murderer().
Referenced by Pol::Core::RepSystem::on_pc_attacks_pc(), Pol::Core::RepSystem::on_pc_damages_pc(), and Pol::Core::RepSystem::repsys_task().
bool Pol::Mobile::Character::is_murderer | ( | ) | const |
Definition at line 776 of file repsys.cpp.
Referenced by Pol::Core::RepSystem::hilite_color_idx(), is_innocent_to(), Pol::Core::RepSystem::name_color(), printProperties(), and Pol::Core::RepSystem::show_repdata().
bool Pol::Mobile::Character::is_temporally_criminal | ( | ) | const |
Definition at line 753 of file repsys.cpp.
References Pol::Core::polclock().
bool Pol::Mobile::Character::is_trading | ( | ) | const |
Definition at line 4117 of file charactr.cpp.
References trading_with.
Referenced by Pol::Core::cancel_all_trades(), die(), disconnect_cleanup(), Pol::Core::doubleclick(), Pol::Core::handle_secure_trade_msg(), Pol::Core::handle_walk(), Pol::Core::open_trade_window(), and Pol::Core::place_item().
|
inline |
Definition at line 936 of file charactr.h.
Referenced by get_flag1(), on_concealed_changed(), and unhide().
bool Pol::Mobile::Character::is_visible_to_me | ( | const Character * | chr | ) | const |
Definition at line 2658 of file charactr.cpp.
References cached_settings, dead(), Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), hidden(), is_concealed_from_me(), logged_in(), Pol::Core::ULWObject::realm, Pol::Mobile::SEE_GHOSTS, Pol::Mobile::SEE_HIDDEN, and warmode().
Referenced by CheckPushthrough(), Pol::Mobile::PrivUpdater::disable_invul(), Pol::Mobile::PrivUpdater::enable_invul(), Pol::Core::handle_allnames(), Pol::Mobile::handle_attack(), Pol::Core::TargetCursor::handle_target_cursor(), Pol::Mobile::NPC::inform_criminal(), Pol::Mobile::NPC::inform_enteredarea(), Pol::Mobile::NPC::inform_imoved(), Pol::Mobile::NPC::inform_leftarea(), Pol::Mobile::NPC::inform_moved(), Pol::Module::NPCExecutorModule::mf_RunAwayFrom(), Pol::Module::NPCExecutorModule::mf_RunToward(), Pol::Module::NPCExecutorModule::mf_TurnAwayFrom(), Pol::Module::NPCExecutorModule::mf_TurnToward(), Pol::Module::NPCExecutorModule::mf_WalkAwayFrom(), Pol::Module::NPCExecutorModule::mf_WalkToward(), Pol::Mobile::NPC::npc_path_blocked(), Pol::Mobile::NPC::on_ghost_pc_spoke(), Pol::Mobile::NPC::on_pc_spoke(), Pol::Mobile::PropagateMove(), Pol::Core::send_char_data(), Pol::Core::send_char_if_newly_inrange(), Pol::Core::send_client_char_data(), Pol::Mobile::send_create_ghost(), Pol::Core::send_create_mobile_if_nearby_cansee(), Pol::Core::send_create_mobile_to_nearby_cansee(), Pol::Core::send_move_mobile_to_nearby_cansee(), Pol::Core::send_remove_character_to_nearby_cansee(), Pol::Core::send_remove_character_to_nearby_cantsee(), Pol::Mobile::send_remove_if_hidden_ghost(), Pol::Core::Party::send_stat_to(), Pol::Core::srequest(), Pol::Core::statrequest(), and unhide().
u16 Pol::Mobile::Character::last_textcolor | ( | ) | const |
Definition at line 4166 of file charactr.cpp.
References _last_textcolor.
Referenced by Pol::Core::handle_processed_speech(), and Pol::Core::SendUnicodeSpeech().
void Pol::Mobile::Character::last_textcolor | ( | u16 | new_color | ) |
Definition at line 4171 of file charactr.cpp.
References _last_textcolor.
bool Pol::Mobile::Character::layer_is_equipped | ( | int | layer | ) | const |
Definition at line 1337 of file charactr.cpp.
References wornitems.
Referenced by Pol::Module::character_race_changer_handler(), Pol::Module::NPCExecutorModule::CreateBackpack(), Pol::Core::equip_item(), equippable(), on_mount(), and resurrect().
bool Pol::Mobile::Character::logged_in | ( | ) | const |
Definition at line 428 of file charactr.cpp.
References Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), Pol::Mobile::LOGGED_IN, and mob_flags_.
Referenced by Pol::Realms::Realm::add_mobile(), Pol::Accounts::AccountObjImp::call_method_id(), Pol::Core::char_select(), Character(), Pol::Core::delete_character(), Pol::Core::find_character(), Pol::Core::getCharacterOrClientParam(), Pol::Core::getCharacterParam(), Pol::Multi::UBoat::has_offline_mobiles(), is_visible_to_me(), Pol::Module::UOExecutorModule::mf_GetRegionName(), Pol::Module::UOExecutorModule::mf_ListOfflineMobilesInRealm(), Pol::Module::VitalExecutorModule::mf_RecalcVitals(), Pol::Module::UOExecutorModule::mf_SendCharProfile(), Pol::Module::UOExecutorModule::mf_SendOverallSeason(), Pol::Module::UOExecutorModule::mf_SendStatus(), Pol::Multi::UBoat::mobiles_list(), Pol::Multi::UBoat::move_offline_mobiles(), Pol::Multi::UBoat::move_travellers(), Pol::Core::MoveCharacterWorldPosition(), Pol::Mobile::NPC::NPC(), Pol::Network::Client::PreDelete(), Pol::Core::read_data(), Pol::Realms::Realm::remove_mobile(), and Pol::Multi::UBoat::turn_travellers().
void Pol::Mobile::Character::logged_in | ( | bool | newvalue | ) |
Definition at line 433 of file charactr.cpp.
References Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::change(), Pol::Mobile::LOGGED_IN, and mob_flags_.
void Pol::Mobile::Character::make_aggressor_to | ( | Character * | chr | ) |
Definition at line 1135 of file repsys.cpp.
References Pol::Core::RepSys_Cfg::AggressorFlagTimeout, Pol::Core::RepSys_Cfg::General, Pol::Core::polclock(), Pol::Core::POLCLOCKS_PER_SEC, Pol::Core::SettingsManager::repsys_cfg, Pol::Core::RepSystem::schedule_repsys_task(), and Pol::Core::settingsManager.
void Pol::Mobile::Character::make_criminal | ( | int | level = 1 | ) |
To Set Amy Criminal (For a LevelOfOffense)
If the LevelOfOffense is 0, clear the CriminalTimer Else Set her Criminal Timer for (LevelOfOffense * CriminalFlagInterval) seconds
Definition at line 1093 of file repsys.cpp.
References Pol::Core::RepSys_Cfg::CriminalFlagInterval, Pol::Core::RepSys_Cfg::General, Pol::Core::polclock(), Pol::Core::POLCLOCKS_PER_SEC, Pol::Core::SettingsManager::repsys_cfg, Pol::Core::RepSystem::schedule_repsys_task(), and Pol::Core::settingsManager.
Referenced by Pol::Core::RepSystem::on_pc_helps_pc().
void Pol::Mobile::Character::make_lawfullydamaged_to | ( | Character * | chr | ) |
Definition at line 1148 of file repsys.cpp.
References Pol::Core::RepSys_Cfg::AggressorFlagTimeout, Pol::Core::RepSys_Cfg::General, Pol::Core::polclock(), Pol::Core::POLCLOCKS_PER_SEC, Pol::Core::SettingsManager::repsys_cfg, Pol::Core::RepSystem::schedule_repsys_task(), and Pol::Core::settingsManager.
void Pol::Mobile::Character::make_murderer | ( | bool | newlval = true | ) |
Definition at line 1120 of file repsys.cpp.
References Pol::Core::polclock(), and Pol::Core::RepSystem::schedule_repsys_task().
BObjectImp * Pol::Mobile::Character::make_offline_ref | ( | ) |
Definition at line 1654 of file uoscrobj.cpp.
Referenced by Pol::Core::WornItemsContainer::make_ref().
|
virtual |
Implements Pol::Core::UObject.
Definition at line 1650 of file uoscrobj.cpp.
Referenced by Pol::Core::add_candidate(), Pol::Module::EPartyRefObjImp::call_method_id(), Pol::Network::CallOutgoingPacketExportedFunction(), Pol::Core::UContainer::can_insert_add_item(), Pol::Core::UContainer::can_insert_increase_stack(), Pol::Core::UContainer::check_can_remove_script(), Pol::Network::ExportedPacketHookHandler(), Pol::Core::handle_accept_invite(), Pol::Core::handle_decline_invite(), Pol::Core::handle_loot_perm(), Pol::Core::handle_member_msg(), Pol::Core::handle_party_msg(), Pol::Core::handle_remove(), Pol::Core::handle_remove_member_cursor(), Pol::Core::RepSystem::hilite_color_idx(), Pol::Mobile::NPC::hilite_color_idx(), Pol::Core::invite_timeout(), Pol::Module::UOExecutorModule::mf_ListGhostsNearLocation(), Pol::Module::UOExecutorModule::mf_ListHostiles(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocation(), Pol::Module::PartyExecutorModule::mf_SendPartyMsg(), Pol::Module::PartyExecutorModule::mf_SendPrivatePartyMsg(), Pol::Core::RepSystem::name_color(), Pol::Mobile::NPC::name_color(), Pol::Core::UContainer::on_insert_add_item(), Pol::Core::UContainer::on_insert_increase_stack(), Pol::Core::on_loggoff_party(), Pol::Mobile::NPC::repsys_on_attack(), repsys_on_attack(), Pol::Mobile::NPC::repsys_on_damage(), repsys_on_damage(), Pol::Mobile::NPC::repsys_on_help(), repsys_on_help(), Pol::Core::Party::send_member_msg_private(), and Pol::Core::Party::send_member_msg_public().
bool Pol::Mobile::Character::manual_set_swing_timer | ( | int | time | ) |
Definition at line 2843 of file charactr.cpp.
References Pol::Core::OneShotTask::cancel(), INFO_PRINT_TRACE, mob_flags_, opponent_, opponent_of, Pol::Core::polclock(), Pol::Mobile::READY_TO_SWING, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::remove(), Pol::Core::ULWObject::serial, swing_task, swing_task_func(), and swing_timer_start_clock_.
u16 Pol::Mobile::Character::max_hits | ( | ) | const |
u32 Pol::Mobile::Character::max_hits_hundredths | ( | ) | const |
u16 Pol::Mobile::Character::max_mana | ( | ) | const |
u16 Pol::Mobile::Character::max_stamina | ( | ) | const |
unsigned short Pol::Mobile::Character::max_weapon_damage | ( | ) | const |
Definition at line 3127 of file charactr.cpp.
References Pol::Items::WeaponDesc::damage_dice, Pol::Items::UWeapon::descriptor(), Pol::Core::Dice::max_value(), and weapon.
Referenced by Pol::Core::send_full_statmsg().
bool Pol::Mobile::Character::mightsee | ( | const Items::Item * | item | ) | const |
Definition at line 4025 of file charactr.cpp.
References Pol::Items::Item::container, RANGE_VISUAL, Pol::Core::ULWObject::realm, remote_containers_, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
unsigned short Pol::Mobile::Character::min_weapon_damage | ( | ) | const |
Definition at line 3122 of file charactr.cpp.
References Pol::Items::WeaponDesc::damage_dice, Pol::Items::UWeapon::descriptor(), Pol::Core::Dice::min_value(), and weapon.
Referenced by Pol::Core::send_full_statmsg().
bool Pol::Mobile::Character::move | ( | unsigned char | dir | ) |
Definition at line 3757 of file charactr.cpp.
References Pol::Multi::UMulti::as_house(), cached_settings, can_freemove(), carrying_capacity(), CheckPushthrough(), consume(), CustomHousingMove(), dead(), dir, face(), Pol::Core::UObject::facing, Pol::Mobile::FIRE_WHILE_MOVING, Pol::Core::gamestate, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), gradual_boost, hidden(), is_house_editing(), Pol::Items::UWeapon::is_projectile(), lastx, lasty, lastz, Pol::Core::make_mobileref(), mountedsteps_, Pol::Core::move_delta, Pol::Core::MoveCharacterWorldPosition(), Pol::Core::movecost(), on_mount(), PKTIN_02_DIR_RUNNING_BIT, PKTIN_02_FACING_MASK, Pol::Core::POLCLASS_NPC, position_changed(), Pol::Core::private_say_above(), Pol::Core::ULWObject::realm, Pol::Multi::UMulti::register_object(), registered_house, remote_containers_, reset_swing_timer(), Pol::Mobile::RUN_WHILE_STEALTH, script_isa(), Pol::Core::ULWObject::serial, Pol::Core::UObject::set_dirty(), Pol::Core::settingsManager, stealthsteps_, Pol::Core::system_find_multi(), unhide(), Pol::Multi::UMulti::unregister_object(), vital(), Pol::Items::Item::walk_on(), Pol::Multi::UHouse::walk_on(), Pol::Realms::Realm::walkheight(), weapon, weight(), Pol::Core::ULWObject::x, Pol::Core::MoveDelta::xmove, Pol::Core::ULWObject::y, Pol::Core::MoveDelta::ymove, and Pol::Core::ULWObject::z.
Referenced by Pol::Module::NPCExecutorModule::_internal_move(), Pol::Core::handle_walk(), Pol::Module::NPCExecutorModule::move(), and Pol::Module::NPCExecutorModule::move_self().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 985 of file repsys.cpp.
References Pol::Core::RepSystem::name_color().
Referenced by Pol::Core::send_nametext().
void Pol::Mobile::Character::on_aggressor_changed | ( | ) |
Definition at line 1270 of file repsys.cpp.
References Pol::Core::send_create_mobile_to_nearby_cansee(), and Pol::Core::send_move().
void Pol::Mobile::Character::on_aos_ext_stat_changed | ( | ) |
Definition at line 1755 of file charactr.cpp.
References Pol::Network::AOS, Pol::Network::Client::chr, client, has_active_client(), Pol::Core::send_full_statmsg(), and Pol::Network::Client::UOExpansionFlag.
void Pol::Mobile::Character::on_cmdlevel_changed | ( | ) |
Definition at line 1742 of file charactr.cpp.
References Pol::Core::send_create_mobile_to_nearby_cansee(), and Pol::Core::send_remove_character_to_nearby_cantsee().
|
virtual |
Reimplemented from Pol::Core::UObject.
Definition at line 1676 of file charactr.cpp.
References Pol::Network::Client::chr, client, Pol::Core::send_create_mobile_to_nearby_cansee(), Pol::Core::send_goxyz(), and Pol::Core::send_remove_character_to_nearby_cansee().
Referenced by Pol::Module::character_race_changer_handler().
void Pol::Mobile::Character::on_concealed_changed | ( | ) |
Definition at line 1728 of file charactr.cpp.
References client, concealed(), is_visible(), Pol::Core::send_create_mobile_to_nearby_cansee(), Pol::Core::send_move(), Pol::Core::send_remove_character_to_nearby_cantsee(), set_stealthsteps(), and unhide().
void Pol::Mobile::Character::on_criminal_changed | ( | ) |
Definition at line 1256 of file repsys.cpp.
References Pol::Core::send_create_mobile_to_nearby_cansee(), and Pol::Core::send_move().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 2137 of file charactr.cpp.
References Pol::Network::Client::chr, client, Pol::Mobile::create_death_shroud(), Pol::Core::UObject::destroy(), equip(), equippable(), ERROR_PRINT, Pol::Clib::FileExists(), Pol::Core::ULWObject::graphic, inform_disengaged(), Pol::Core::WorldIterator< Filter >::InVisualRange(), opponent_, Pol::Network::Client::pause(), Pol::Core::ULWObject::realm, Pol::Network::Client::restart(), Pol::Core::send_create_mobile_to_nearby_cansee(), Pol::Core::send_full_corpse(), Pol::Core::send_goxyz(), Pol::Core::send_remove_character_to_nearby_cantsee(), send_warmode(), Pol::Core::send_wornitem_to_inrange(), and Pol::Core::start_script().
Referenced by die().
void Pol::Mobile::Character::on_delete_from_account | ( | ) |
Definition at line 4320 of file charactr.cpp.
References Pol::Realms::PlayerDeleted, Pol::Core::ULWObject::realm, and Pol::Realms::Realm::remove_mobile().
Referenced by Pol::Core::delete_character().
|
virtual |
Reimplemented from Pol::Core::UObject.
Definition at line 1748 of file charactr.cpp.
References Pol::Network::Client::chr, client, Pol::Core::send_goxyz(), and Pol::Core::send_move_mobile_to_nearby_cansee().
Referenced by Pol::Module::NPCExecutorModule::face(), Pol::Module::NPCExecutorModule::mf_TurnAwayFrom(), Pol::Module::NPCExecutorModule::mf_TurnAwayFromLocation(), Pol::Module::NPCExecutorModule::mf_TurnToward(), and Pol::Module::NPCExecutorModule::mf_TurnTowardLocation().
void Pol::Mobile::Character::on_hidden_changed | ( | ) |
Definition at line 1711 of file charactr.cpp.
References client, hidden(), Pol::Core::send_create_mobile_to_nearby_cansee(), Pol::Core::send_move(), Pol::Core::send_remove_character_to_nearby_cantsee(), set_stealthsteps(), and unhide().
void Pol::Mobile::Character::on_lawfullydamaged_changed | ( | ) |
Definition at line 1277 of file repsys.cpp.
References Pol::Core::send_create_mobile_to_nearby_cansee(), and Pol::Core::send_move().
bool Pol::Mobile::Character::on_mount | ( | ) | const |
Definition at line 1490 of file charactr.cpp.
References layer_is_equipped(), Pol::Core::LAYER_MOUNT, movemode, Pol::Core::MOVEMODE_FLY, race, and Pol::Core::RACE_GARGOYLE.
Referenced by Pol::Core::handle_walk(), move(), Pol::Core::send_action_to_inrange(), and weapon_anim().
void Pol::Mobile::Character::on_murderer_changed | ( | ) |
Definition at line 1263 of file repsys.cpp.
References Pol::Core::send_create_mobile_to_nearby_cansee(), and Pol::Core::send_move().
void Pol::Mobile::Character::on_poison_changed | ( | ) |
Definition at line 1684 of file charactr.cpp.
References Pol::Network::Client::chr, Pol::Core::CLASS_NPC, client, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Core::ULWObject::isa(), poisoned(), Pol::Network::HealthBarStatusUpdate::Send(), Pol::Core::send_goxyz(), Pol::Core::send_move_mobile_to_nearby_cansee(), Pol::Core::send_poisonhealthbar(), and Pol::Core::UObject::serial_ext.
void Pol::Mobile::Character::on_swing_failure | ( | Character * | attacker | ) |
Definition at line 2952 of file charactr.cpp.
Referenced by attack().
|
inline |
Definition at line 974 of file charactr.h.
Referenced by apply_raw_damage_hundredths(), can_face(), Pol::Core::CanUseSkill(), check_attack_after_move(), check_undamaged(), Pol::Core::create_nametags(), Pol::Core::do_cast(), Pol::Core::doubleclick(), and Pol::Core::TargetCursor::handle_target_cursor().
bool Pol::Mobile::Character::party_can_loot | ( | ) | const |
Definition at line 1492 of file party.cpp.
Referenced by printProperties().
|
inline |
Definition at line 979 of file charactr.h.
Referenced by check_undamaged(), get_flag1(), Pol::Multi::UBoat::move_travellers(), on_poison_changed(), Pol::Mobile::PropagateMove(), Pol::Core::send_goxyz(), Pol::Core::send_move(), Pol::Core::send_owncreate(), Pol::Core::send_poisonhealthbar(), and Pol::Multi::UBoat::turn_travellers().
|
inline |
Definition at line 984 of file charactr.h.
void Pol::Mobile::Character::position_changed | ( | void | ) |
Definition at line 3590 of file charactr.cpp.
References Pol::Core::ULWObject::realm, wornitems, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Core::createchar2(), CustomHousingMove(), move(), Pol::Core::move_character_to(), Pol::Multi::UBoat::move_travellers(), readCommonProperties(), Pol::Core::start_client_char(), and Pol::Multi::UBoat::turn_travellers().
|
protectedvirtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 748 of file charactr.cpp.
References Pol::Core::UObject::printDebugProperties().
Referenced by Pol::Mobile::NPC::printDebugProperties().
|
protectedvirtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 763 of file charactr.cpp.
References Pol::Core::UObject::printOn().
Referenced by Pol::Core::write_characters(), and Pol::Core::write_npcs().
|
protectedvirtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 549 of file charactr.cpp.
References acct, attribute(), Pol::Mobile::AttributeValue::base(), Pol::Mobile::AttributeValue::cap(), charindex(), cmdlevel_, Pol::Core::GameState::cmdlevels, concealed_, created_at, Pol::Mobile::VitalValue::current_ones(), dead(), Pol::Core::SkillStatCap::DEFAULT, Pol::Core::ExtStatBarFollowers::DEFAULT, Pol::Core::MovementCostMod::DEFAULT, Pol::Clib::StringSet::empty(), encode_movemode(), Pol::Clib::StringSet::extract(), Pol::Mobile::Attribute::FindAttribute(), Pol::Core::FindVital(), Pol::Core::ExtStatBarFollowers::followers, Pol::Core::ExtStatBarFollowers::followers_max, frozen(), Pol::Core::gamestate, gender, Pol::Clib::getencodedquotedstring(), Pol::Clib::hexint(), hidden(), is_murderer(), last_corpse, Pol::Mobile::AttributeValue::lock(), mountedsteps_, movemode, Pol::Core::MOVEMODE_LAND, Pol::Core::Vital::next, Pol::Mobile::Attribute::next, Pol::Core::ULWObject::orphan(), party_can_loot(), pf_endl, Pol::Core::UObject::printProperties(), privs, race, registered_house, reportable_, Pol::Core::MovementCostMod::run, Pol::Core::MovementCostMod::run_mounted, settings, Pol::Core::SkillStatCap::skillcap, Pol::Core::SkillStatCap::statcap, Pol::Core::system_find_item(), truecolor, trueobjtype, vital(), Pol::Core::MovementCostMod::walk, and Pol::Core::MovementCostMod::walk_mounted.
Referenced by Pol::Mobile::NPC::printProperties().
|
protectedvirtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 758 of file charactr.cpp.
References Pol::Core::UObject::printOn().
|
protected |
Definition at line 767 of file charactr.cpp.
References wornitems.
Referenced by Pol::Core::write_characters(), and Pol::Core::write_npcs().
void Pol::Mobile::Character::produce | ( | const Core::Vital * | pVital, |
VitalValue & | vv, | ||
unsigned int | amt | ||
) |
Definition at line 1529 of file charactr.cpp.
References Pol::Mobile::VitalValue::current_ones(), Pol::Mobile::VitalValue::produce(), Pol::Core::UObject::set_dirty(), and Pol::Network::ClientInterface::tell_vital_changed().
Referenced by heal_damage_hundredths(), and regen_vital().
unsigned short Pol::Mobile::Character::random_weapon_damage | ( | ) | const |
Definition at line 3117 of file charactr.cpp.
References Pol::Items::UWeapon::get_random_damage(), and weapon.
Referenced by attack().
void Pol::Mobile::Character::readAttributesAndVitals | ( | Clib::ConfigElem & | elem | ) |
Definition at line 980 of file charactr.cpp.
References attribute(), Pol::Mobile::ATTRIBUTE_MAX_BASE, Pol::Mobile::AttributeValue::base(), calc_vital_stuff(), Pol::Mobile::AttributeValue::cap(), Pol::Mobile::VitalValue::current_ones(), Pol::Mobile::Attribute::FindAttribute(), Pol::Core::FindVital(), Pol::Core::StateManager::gflag_in_system_load, Pol::Clib::hexint(), Pol::Mobile::AttributeValue::lock(), Pol::Core::Vital::next, Pol::Mobile::Attribute::next, Pol::Core::raw_to_base(), Pol::Clib::ConfigElem::remove_prop(), Pol::Core::ULWObject::serial, Pol::Core::settingsManager, Pol::Core::stateManager, Pol::Clib::ConfigElem::throw_error(), vital(), and Pol::Core::VITAL_MAX_VALUE.
Referenced by readProperties().
void Pol::Mobile::Character::readCommonProperties | ( | Clib::ConfigElem & | elem | ) |
Definition at line 802 of file charactr.cpp.
References acct, charindex(), Pol::Core::CmdLevel::cmdlevel, cmdlevel_, concealed_, created_at, ctBEu32, Pol::Mobile::DEAD, decode_movemode(), Pol::Core::SkillStatCap::DEFAULT, Pol::Core::ExtStatBarFollowers::DEFAULT, Pol::Core::MovementCostMod::DEFAULT, Pol::Core::ServSpecOpt::default_character_height, ERROR_PRINT, Pol::Accounts::find_account(), Pol::Core::find_cmdlevel(), Pol::Core::Guild::FindOrCreateGuild(), Pol::Core::ExtStatBarFollowers::followers, Pol::Core::ExtStatBarFollowers::followers_max, Pol::Mobile::FROZEN, gender, Pol::Accounts::Account::get_character(), Pol::Core::ULWObject::graphic, Pol::Core::ULWObject::height, Pol::Mobile::HIDDEN, ISTRINGSTREAM, mob_flags_, mountedsteps_, movemode, Pol::Mobile::MURDERER, Pol::Core::UObject::name(), Pol::Core::UObject::name_, Pol::Core::UObject::objtype_, Pol::Mobile::PARTY_CAN_LOOT, Pol::Mobile::reportable_t::polclock, position_changed(), privs, race, Pol::Core::RACE_HUMAN, Pol::Clib::StringSet::readfrom(), Pol::Core::UObject::readProperties(), refresh_cached_settings(), registered_house, Pol::Clib::ConfigElem::remove_bool(), Pol::Clib::ConfigElem::remove_double(), Pol::Clib::ConfigElem::remove_int(), Pol::Clib::ConfigElem::remove_prop(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_ulong(), Pol::Clib::ConfigElem::remove_unsigned(), Pol::Clib::ConfigElem::remove_ushort(), reportable_, Pol::ECompile::run(), Pol::Core::ULWObject::serial, Pol::Mobile::reportable_t::serial, Pol::Core::UObject::serial_ext, ref_ptr< T >::set(), Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::set(), settings, Pol::Core::settingsManager, Pol::Core::SkillStatCap::skillcap, Pol::Core::SettingsManager::ssopt, Pol::Core::SkillStatCap::statcap, Pol::Core::system_find_mobile(), Pol::Plib::systemstate, Pol::Clib::ConfigElem::throw_error(), truecolor, trueobjtype, uclang, Pol::Core::UseCharSerialNumber(), Pol::Core::MovementCostMod::walk, and wornitems.
Referenced by readProperties(), and Pol::Mobile::NPC::readPropertiesForNewNPC().
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 1082 of file charactr.cpp.
References last_corpse, readAttributesAndVitals(), readCommonProperties(), and Pol::Clib::ConfigElem::remove_ulong().
Referenced by Pol::Mobile::NPC::readProperties().
void Pol::Mobile::Character::realm_changed | ( | ) |
Definition at line 3911 of file charactr.cpp.
References client, ref_ptr< T >::get(), has_active_client(), Pol::Core::ULWObject::realm, Pol::Core::send_feature_enable(), Pol::Core::send_map_difs(), Pol::Core::send_realm_change(), Pol::Core::send_season_info(), Pol::Core::send_short_statmsg(), Pol::Core::setrealm(), Pol::Core::settingsManager, trading_cont, and wornitems.
Referenced by Pol::Module::UOExecutorModule::internal_MoveCharacter(), Pol::Multi::UBoat::move_offline_mobiles(), and Pol::Multi::UBoat::realm_changed().
|
virtual |
Reimplemented in Pol::Mobile::NPC.
Definition at line 2484 of file charactr.cpp.
References Pol::Items::UArmor::ar(), ar_, armor_, Pol::Core::GameState::armorzones, attribute(), Pol::Core::CLASS_ARMOR, client, Pol::Mobile::AttributeValue::effective(), Pol::Core::gamestate, Pol::Core::ULWObject::isa(), Pol::Core::LAYER_EQUIP__HIGHEST, Pol::Core::LAYER_EQUIP__LOWEST, resetEquipableProperties(), Pol::Core::send_full_statmsg(), shield, Pol::Items::UArmor::tmplzones(), updateEquipableProperties(), and wornitems.
Referenced by equip(), Pol::Core::get_item(), Pol::Module::AttributeExecutorModule::mf_AlterAttributeTemporaryMod(), Pol::Module::AttributeExecutorModule::mf_SetAttributeBaseValue(), Pol::Module::AttributeExecutorModule::mf_SetAttributeTemporaryMod(), Pol::Mobile::ARUpdater::on_change(), Pol::Items::Equipment::reduce_hp_from_hit(), Pol::Mobile::NPC::refresh_ar(), Pol::Items::Item::set_script_member_id(), and unequip().
|
private |
Definition at line 1101 of file charactr.cpp.
References Pol::Mobile::ALL, Pol::Mobile::ATTACK_HIDDEN, cached_settings, Pol::Mobile::CAN_BE_HEARD_AS_GHOST, Pol::Mobile::CLOTHE_ANY, Pol::Mobile::DBLCLICK_ANY, Pol::Mobile::FIRE_WHILE_MOVING, Pol::Mobile::FREEMOVE, Pol::Mobile::HEAR_GHOSTS, Pol::Mobile::HIDDEN_ATTACK, Pol::Mobile::IGNORE_DOORS, Pol::Mobile::INVUL, Pol::Mobile::LOS_ANY, Pol::Mobile::MOVE_ANY, Pol::Mobile::MOVE_ANY_DIST, Pol::Mobile::PLOG_ANY, Pol::Mobile::RENAME_ANY, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::reset(), Pol::Mobile::RUN_WHILE_STEALTH, Pol::Mobile::SEE_GHOSTS, Pol::Mobile::SEE_HIDDEN, Pol::Mobile::SEE_INVIS_ITEMS, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::set(), setting_enabled(), and Pol::Mobile::SPEEDHACK.
Referenced by Character(), readCommonProperties(), revoke_privilege(), and set_setting().
void Pol::Mobile::Character::regen_vital | ( | const Core::Vital * | pVital | ) |
Definition at line 1567 of file charactr.cpp.
References consume(), produce(), Pol::Mobile::VitalValue::regenrate(), vital(), and Pol::Core::Vital::vitalid.
void Pol::Mobile::Character::removal_cleanup | ( | ) |
Definition at line 393 of file charactr.cpp.
References Pol::Core::OneShotTask::cancel(), clear_opponent_of(), disconnect_cleanup(), opponent_, opponent_of, and swing_task.
Referenced by Pol::Network::Client::PreDelete(), and ~Character().
void Pol::Mobile::Character::remove_as_aggressor_to | ( | Character * | chr | ) |
Definition at line 1210 of file repsys.cpp.
References client, and Pol::Core::send_create_mobile_if_nearby_cansee().
Referenced by clear_my_aggressors().
void Pol::Mobile::Character::remove_as_lawful_damager | ( | Character * | chr | ) |
Definition at line 1238 of file repsys.cpp.
References client, and Pol::Core::send_create_mobile_if_nearby_cansee().
Referenced by clear_my_lawful_damagers().
|
virtual |
[13] Mobile (MA) Attacks Mobile (MA)
Rules are applied based on whether MA is a PC or an NPC.
[13.1] Player (Amy) Attacks Mobile (Mob) If Mob is a PC (Bob), Apply 'Player Attacks Player' rules[->3] for Amy vs Bob. Else if Mob is an NPC with a Master (Bob), Apply 'Player Attacks Player' rules for Amy vs Bob Else if Mob is a Good-aligned NPC, Set Amy's Criminal Flag
Reimplemented in Pol::Mobile::NPC.
Definition at line 809 of file repsys.cpp.
References Pol::Mobile::NPC::alignment(), Pol::Core::CLASS_CHARACTER, Pol::Core::NpcTemplate::GOOD, is_criminal(), Pol::Core::ULWObject::isa(), make_ref(), Pol::Mobile::NPC::master(), Pol::Core::RepSystem::on_pc_attacks_pc(), and Pol::Core::settingsManager.
Referenced by apply_raw_damage_hundredths(), attack(), Pol::Module::handle_script_cursor(), and set_opponent().
|
virtual |
[14] Mobile (MA) Damages Mobile (MB)
Rules are applied based on whether MA is a PC or an NPC.
[14.1] Player (Amy) Damages Mobile (Mob) If Mob is a PC (Bob), Apply 'Player Damages Player' rules[->4] for Amy vs Bob. Else if Mob is an NPC with a Master (Bob), Apply 'Player Damages Player' rules for Amy vs Bob Else if Mob is a Good-aligned NPC, Set Amy's Criminal Flag
Reimplemented in Pol::Mobile::NPC.
Definition at line 872 of file repsys.cpp.
References Pol::Mobile::NPC::alignment(), Pol::Core::CLASS_CHARACTER, Pol::Core::NpcTemplate::GOOD, is_criminal(), Pol::Core::ULWObject::isa(), make_ref(), Pol::Mobile::NPC::master(), Pol::Core::RepSystem::on_pc_damages_pc(), and Pol::Core::settingsManager.
Referenced by apply_raw_damage_hundredths(), attack(), and script_method_id().
|
virtual |
[15] Mobile (MA) Helps Mobile (MB)
Rules are applied based on whether MA is a PC or an NPC.
[15.1] Player (Amy) Helps Mobile (Mob) If Mob is a PC (Bob), Apply 'Player Helps Player' rules[->5] for Amy helps Bob. Else if Mob is an NPC with a Master (Bob), Apply 'Player Helps Player' rules for Amy helps Bob Else if Mob is an Evil-aligned NPC, Set Amy's Criminal Flag
Reimplemented in Pol::Mobile::NPC.
Definition at line 932 of file repsys.cpp.
References Pol::Mobile::NPC::alignment(), Pol::Core::CLASS_CHARACTER, Pol::Core::NpcTemplate::EVIL, Pol::Core::ULWObject::isa(), make_ref(), Pol::Mobile::NPC::master(), Pol::Core::RepSystem::on_pc_helps_pc(), and Pol::Core::settingsManager.
Referenced by Pol::Module::handle_script_cursor(), Pol::Module::VitalExecutorModule::mf_HealDamage(), and script_method_id().
void Pol::Mobile::Character::reset_swing_timer | ( | ) |
Definition at line 2828 of file charactr.cpp.
References Pol::Core::OneShotTask::cancel(), INFO_PRINT_TRACE, mob_flags_, opponent_, opponent_of, Pol::Core::polclock(), Pol::Mobile::READY_TO_SWING, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::remove(), schedule_attack(), Pol::Core::ULWObject::serial, swing_task, and swing_timer_start_clock_.
Referenced by check_attack_after_move(), equip(), face(), move(), set_opponent(), set_warmode(), and unequip().
void Pol::Mobile::Character::resetEquipableProperties | ( | ) |
Definition at line 2580 of file charactr.cpp.
Referenced by refresh_ar().
void Pol::Mobile::Character::restart_aggressor_timer | ( | Character * | chr, |
Core::polclock_t | until | ||
) |
Definition at line 709 of file repsys.cpp.
Referenced by Pol::Core::RepSystem::on_pc_attacks_pc().
void Pol::Mobile::Character::restart_criminal_timer | ( | Core::polclock_t | until | ) |
Definition at line 758 of file repsys.cpp.
References Pol::Core::WorldIterator< Filter >::InRange(), Pol::Mobile::NpcPropagateCriminal(), and Pol::Core::polclock().
Referenced by Pol::Core::RepSystem::on_pc_attacks_pc().
void Pol::Mobile::Character::restart_lawfully_damaged_timer | ( | Mobile::Character * | amy, |
Core::polclock_t | until | ||
) |
Definition at line 729 of file repsys.cpp.
Referenced by Pol::Core::RepSystem::on_pc_damages_pc().
void Pol::Mobile::Character::resurrect | ( | ) |
Definition at line 2048 of file charactr.cpp.
References Pol::Mobile::VitalValue::_current, Pol::Network::Client::chr, client, Pol::Core::UObject::color, Pol::Mobile::create_death_robe(), Pol::Mobile::DEAD, dead(), Pol::Core::UObject::destroy(), equip(), ERROR_PRINT, Pol::Mobile::FROZEN, Pol::Core::gamestate, Pol::Core::ULWObject::graphic, Pol::Core::WorldIterator< Filter >::InVisualRange(), layer_is_equipped(), Pol::Core::LAYER_ROBE_DRESS, mob_flags_, Pol::Core::UObject::name(), Pol::Realms::Realm::notify_resurrected(), Pol::Core::UObject::objtype_, Pol::Mobile::PARALYZED, Pol::Network::Client::pause(), Pol::Core::ULWObject::realm, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::remove(), Pol::Network::Client::restart(), Pol::Core::send_create_mobile_to_nearby_cansee(), Pol::Core::send_goxyz(), Pol::Core::send_owncreate(), Pol::Core::send_remove_character_to_nearby_cansee(), send_warmode(), set_current_ones(), Pol::Core::UObject::set_dirty(), truecolor, unequip(), UOBJ_DEATH_SHROUD, UOBJ_ELF_FEMALE, UOBJ_ELF_FEMALE_GHOST, UOBJ_ELF_MALE, UOBJ_ELF_MALE_GHOST, UOBJ_GARGOYLE_FEMALE, UOBJ_GARGOYLE_FEMALE_GHOST, UOBJ_GARGOYLE_MALE, UOBJ_GARGOYLE_MALE_GHOST, UOBJ_HUMAN_FEMALE, UOBJ_HUMAN_FEMALE_GHOST, UOBJ_HUMAN_MALE, UOBJ_HUMAN_MALE_GHOST, vital(), Pol::Mobile::WARMODE, and wornitems.
Referenced by Pol::Module::UOExecutorModule::mf_Resurrect().
void Pol::Mobile::Character::revoke_privilege | ( | const char * | priv | ) |
Definition at line 1193 of file charactr.cpp.
References privs, refresh_cached_settings(), Pol::Clib::StringSet::remove(), Pol::Core::UObject::set_dirty(), and settings.
Referenced by Pol::Module::UOExecutorModule::mf_RevokePrivilege().
void Pol::Mobile::Character::run_hit_script | ( | Character * | defender, |
double | damage | ||
) |
Definition at line 1914 of file charactr.cpp.
References Pol::Core::PolConfig::cache_interactive_scripts, Pol::Plib::SystemState::config, Pol::Core::create_script_executor(), Pol::Core::find_script2(), ref_ptr< T >::get(), get_hitscript_params(), Pol::Items::UWeapon::hit_script(), Pol::Core::ScriptDef::name(), POLLOG, Pol::Core::schedule_executor(), Pol::Plib::systemstate, and weapon.
Referenced by attack().
|
private |
Definition at line 2785 of file charactr.cpp.
References Pol::Items::UWeapon::delay(), dexterity(), INFO_PRINT_TRACE, Pol::Core::UObject::name(), Pol::Core::POLCLOCKS_PER_SEC, Pol::Core::ULWObject::serial, Pol::Items::UWeapon::speed(), swing_task, swing_task_func(), swing_timer_start_clock_, and weapon.
Referenced by check_attack_after_move(), check_justice_region_change(), reset_swing_timer(), and set_opponent().
void Pol::Mobile::Character::schedule_spell | ( | Core::USpell * | spell | ) |
Definition at line 25 of file chrcast.cpp.
References passert, Pol::Core::polclock(), and spell_task.
Referenced by Pol::Core::do_cast().
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 4627 of file uoscrobj.cpp.
References Pol::Core::POLCLASS_MOBILE.
Referenced by move(), and set_opponent().
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 2989 of file uoscrobj.cpp.
References Pol::Bscript::getKnownObjMethod(), and Pol::Bscript::ObjMethod::id.
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 2386 of file uoscrobj.cpp.
References Pol::Core::CmdLevel::cmdlevel, Pol::Module::UOExecutorModule::controller_, Pol::Core::convertArrayToUC(), Pol::Bscript::String::data(), Pol::Mobile::DecodeFacing(), Pol::Core::find_cmdlevel(), Pol::Bscript::Executor::findModule(), Pol::Core::gameclock, Pol::Core::getCharacterParam(), Pol::Bscript::Executor::getObjArrayParam(), Pol::Bscript::Executor::getParam(), Pol::Bscript::Executor::getParamImp(), Pol::Bscript::Executor::getStringParam(), Pol::Bscript::String::getStringRep(), Pol::Bscript::Executor::hasParams(), Pol::Bscript::BObjectImp::isa(), ISTRINGSTREAM, Pol::Bscript::MTH_ADD_BUFF, Pol::Bscript::MTH_ATTACK_ONCE, Pol::Bscript::MTH_CLEAR_BUFFS, Pol::Bscript::MTH_CLEARAGGRESSORTO, Pol::Bscript::MTH_CLEARGOTTENITEM, Pol::Bscript::MTH_CLEARLAWFULLYDAMAGEDTO, Pol::Bscript::MTH_COMPAREVERSION, Pol::Bscript::MTH_DEAF, Pol::Bscript::MTH_DEL_BUFF, Pol::Bscript::MTH_DISABLE, Pol::Bscript::MTH_DISABLE_SKILLS_FOR, Pol::Bscript::MTH_ENABLE, Pol::Bscript::MTH_ENABLED, Pol::Bscript::MTH_GETCORPSE, Pol::Bscript::MTH_GETGOTTENITEM, Pol::Bscript::MTH_KILL, Pol::Bscript::MTH_PRIVILEGES, Pol::Bscript::MTH_REMOVEREPORTABLE, Pol::Bscript::MTH_SET_SWINGTIMER, Pol::Bscript::MTH_SETAGGRESSORTO, Pol::Bscript::MTH_SETCMDLEVEL, Pol::Bscript::MTH_SETCRIMINAL, Pol::Bscript::MTH_SETFACING, Pol::Bscript::MTH_SETLAWFULLYDAMAGEDTO, Pol::Bscript::MTH_SETLIGHTLEVEL, Pol::Bscript::MTH_SETMURDERER, Pol::Bscript::MTH_SETPARALYZED, Pol::Bscript::MTH_SETPOISONED, Pol::Bscript::MTH_SETSEASON, Pol::Bscript::MTH_SETWARMODE, Pol::Bscript::MTH_SPENDGOLD, Pol::Bscript::MTH_SQUELCH, Pol::Bscript::Executor::numParams(), Pol::Core::ULWObject::orphan(), Pol::Bscript::BObjectImp::OTLong, Pol::Bscript::BObjectImp::OTString, Pol::Bscript::Executor::paramAsString(), PKTIN_02_FACING_MASK, Pol::Core::POLCLOCKS_PER_SEC, Pol::Core::poltime(), Pol::Core::read_gameclock(), Pol::Bscript::ObjArray::ref_arr, repsys_on_damage(), repsys_on_help(), Pol::Network::PktHelper::PacketOut< T >::Send(), SPEECH_MAX_LEN, Pol::Core::system_find_item(), and Pol::Bscript::BLong::value().
Items::Item * Pol::Mobile::Character::search_remote_containers | ( | u32 | find_serial, |
bool * | isRemoteContainer | ||
) | const |
Definition at line 3996 of file charactr.cpp.
References Pol::Core::CLASS_CONTAINER, Pol::Core::ULWObject::isa(), Pol::Core::ULWObject::orphan(), remote_containers_, and Pol::Core::ULWObject::serial.
Referenced by Pol::Core::find_legal_container(), Pol::Core::find_legal_item(), and Pol::Realms::Realm::has_los().
void Pol::Mobile::Character::select_opponent | ( | u32 | opp_serial | ) |
Definition at line 3044 of file charactr.cpp.
References Pol::Core::find_character(), opponent_, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::serial, and set_opponent().
Referenced by Pol::Mobile::handle_attack().
void Pol::Mobile::Character::send_buffs | ( | ) |
Resends all buffs (with updated duration), usually called at (re)login
Definition at line 4234 of file charactr.cpp.
References buffs_, client, Pol::Core::read_gameclock(), and Pol::Core::send_buff_message().
Referenced by Pol::Core::start_client_char().
void Pol::Mobile::Character::send_highlight | ( | ) | const |
Definition at line 2937 of file charactr.cpp.
References client, get_opponent(), has_active_client(), Pol::Network::PktHelper::PacketOut< T >::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Mobile::handle_attack(), inform_disengaged(), inform_engaged(), set_opponent(), and Pol::Core::start_client_char().
void Pol::Mobile::Character::send_warmode | ( | ) |
Definition at line 2017 of file charactr.cpp.
References client, Pol::Network::PktHelper::PacketOut< T >::Send(), and warmode().
Referenced by on_death(), resurrect(), and Pol::Core::start_client_char().
void Pol::Mobile::Character::set_caps_to_default | ( | ) |
Definition at line 4154 of file charactr.cpp.
References attribute(), Pol::Core::GameState::attributes, Pol::Mobile::AttributeValue::cap(), Pol::Mobile::Attribute::default_cap, Pol::Core::gamestate, and Pol::Core::GameState::numAttributes.
Referenced by Character().
void Pol::Mobile::Character::set_current | ( | const Core::Vital * | pVital, |
VitalValue & | vv, | ||
unsigned int | ones | ||
) |
Definition at line 1560 of file charactr.cpp.
References Pol::Mobile::VitalValue::current(), Pol::Core::UObject::set_dirty(), and Pol::Network::ClientInterface::tell_vital_changed().
Referenced by Pol::Module::VitalExecutorModule::mf_SetVital().
void Pol::Mobile::Character::set_current_ones | ( | const Core::Vital * | pVital, |
VitalValue & | vv, | ||
unsigned int | ones | ||
) |
Definition at line 1553 of file charactr.cpp.
References Pol::Mobile::VitalValue::current_ones(), Pol::Core::UObject::set_dirty(), and Pol::Network::ClientInterface::tell_vital_changed().
Referenced by die(), and resurrect().
void Pol::Mobile::Character::set_dexterity | ( | u16 | dexterity | ) |
void Pol::Mobile::Character::set_intelligence | ( | u16 | intelligence | ) |
void Pol::Mobile::Character::set_opponent | ( | Character * | opponent, |
bool | inform_old_opponent = true |
||
) |
Definition at line 2994 of file charactr.cpp.
References dead(), Pol::Clib::exit_signalled, get_opponent(), has_active_client(), INFO_PRINT_TRACE, inform_disengaged(), inform_engaged(), opponent_, opponent_of, Pol::Core::POLCLASS_NPC, repsys_on_attack(), reset_swing_timer(), schedule_attack(), script_isa(), send_highlight(), Pol::Core::ULWObject::serial, set_warmode(), and warmode().
Referenced by check_justice_region_change(), clear_opponent_of(), Pol::Core::RepSystem::de_escalate(), die(), Pol::Module::NPCExecutorModule::mf_SetOpponent(), Pol::Network::Client::PreDelete(), select_opponent(), and set_warmode().
void Pol::Mobile::Character::set_party_can_loot | ( | bool | b | ) |
Definition at line 1497 of file party.cpp.
Referenced by Pol::Core::handle_loot_perm().
void Pol::Mobile::Character::set_party_invite_timeout | ( | ) |
Definition at line 1502 of file party.cpp.
References Pol::Core::Party_Cfg::DeclineTimeout, Pol::Core::Party_Cfg::General, Pol::Core::invite_timeout(), Pol::Core::SettingsManager::party_cfg, Pol::Core::polclock(), Pol::Core::POLCLOCKS_PER_SEC, and Pol::Core::settingsManager.
Referenced by Pol::Core::add_candidate(), and Pol::Module::EPartyRefObjImp::call_method_id().
void Pol::Mobile::Character::set_privs | ( | const std::string & | privlist | ) |
Definition at line 1178 of file charactr.cpp.
References privs, Pol::Clib::StringSet::readfrom(), and Pol::Core::UObject::set_dirty().
Referenced by Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), and Pol::Core::ClientCreateCharKR().
|
virtual |
id test
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 2116 of file uoscrobj.cpp.
References Pol::Bscript::getKnownObjMember(), and Pol::Bscript::ObjMember::id.
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 2377 of file uoscrobj.cpp.
References Pol::Bscript::getKnownObjMember(), and Pol::Bscript::ObjMember::id.
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 2081 of file uoscrobj.cpp.
References Pol::Bscript::MBR_TITLE_GUILD, Pol::Bscript::MBR_TITLE_PREFIX, Pol::Bscript::MBR_TITLE_RACE, Pol::Bscript::MBR_TITLE_SUFFIX, and Pol::Core::send_object_cache_to_inrange().
|
virtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Mobile::NPC.
Definition at line 2125 of file uoscrobj.cpp.
References Pol::Core::CLASS_NPC, Pol::Core::gamestate, Pol::Core::GENDER_FEMALE, Pol::Core::GENDER_MALE, Pol::Bscript::MBR_AR_MOD, Pol::Bscript::MBR_CARRYINGCAPACITY_MOD, Pol::Bscript::MBR_CMDLEVEL, Pol::Bscript::MBR_COLD_DAMAGE_MOD, Pol::Bscript::MBR_COLD_RESIST_MOD, Pol::Bscript::MBR_CONCEALED, Pol::Bscript::MBR_DELAY_MOD, Pol::Bscript::MBR_ENERGY_DAMAGE_MOD, Pol::Bscript::MBR_ENERGY_RESIST_MOD, Pol::Bscript::MBR_EVASIONCHANCE_MOD, Pol::Bscript::MBR_FACING, Pol::Bscript::MBR_FIRE_DAMAGE_MOD, Pol::Bscript::MBR_FIRE_RESIST_MOD, Pol::Bscript::MBR_FOLLOWERS, Pol::Bscript::MBR_FOLLOWERSMAX, Pol::Bscript::MBR_FROZEN, Pol::Bscript::MBR_GENDER, Pol::Bscript::MBR_HIDDEN, Pol::Bscript::MBR_HITCHANCE_MOD, Pol::Bscript::MBR_LUCK, Pol::Bscript::MBR_MOUNTEDSTEPS, Pol::Bscript::MBR_MOVECOST_RUN, Pol::Bscript::MBR_MOVECOST_RUN_MOUNTED, Pol::Bscript::MBR_MOVECOST_WALK, Pol::Bscript::MBR_MOVECOST_WALK_MOUNTED, Pol::Bscript::MBR_MURDERER, Pol::Bscript::MBR_PARALYZED, Pol::Bscript::MBR_PHYSICAL_DAMAGE_MOD, Pol::Bscript::MBR_PHYSICAL_RESIST_MOD, Pol::Bscript::MBR_POISON_DAMAGE_MOD, Pol::Bscript::MBR_POISON_RESIST_MOD, Pol::Bscript::MBR_POISONED, Pol::Bscript::MBR_RACE, Pol::Bscript::MBR_SKILLCAP, Pol::Bscript::MBR_STATCAP, Pol::Bscript::MBR_STEALTHSTEPS, Pol::Bscript::MBR_TITHING, Pol::Bscript::MBR_TRUECOLOR, Pol::Bscript::MBR_TRUEOBJTYPE, Pol::Core::MOVEMODE_FLY, PKTIN_02_FACING_MASK, Pol::Core::RACE_ELF, Pol::Core::RACE_GARGOYLE, Pol::Core::RACE_HUMAN, Pol::ECompile::run(), and Pol::Core::send_full_statmsg().
|
virtual |
Reimplemented from Pol::Core::UObject.
Definition at line 2340 of file uoscrobj.cpp.
References Pol::Bscript::MBR_MOVECOST_RUN, Pol::Bscript::MBR_MOVECOST_RUN_MOUNTED, Pol::Bscript::MBR_MOVECOST_WALK, Pol::Bscript::MBR_MOVECOST_WALK_MOUNTED, and Pol::ECompile::run().
void Pol::Mobile::Character::set_setting | ( | const char * | setting, |
bool | value | ||
) |
Definition at line 1157 of file charactr.cpp.
References Pol::Clib::StringSet::add(), has_privilege(), refresh_cached_settings(), Pol::Clib::StringSet::remove(), Pol::Core::UObject::set_dirty(), and settings.
void Pol::Mobile::Character::set_stealthsteps | ( | unsigned short | newval | ) |
Definition at line 3624 of file charactr.cpp.
References stealthsteps_.
Referenced by on_concealed_changed(), and on_hidden_changed().
void Pol::Mobile::Character::set_strength | ( | u16 | strength | ) |
void Pol::Mobile::Character::set_vitals_to_maximum | ( | ) |
Definition at line 1647 of file charactr.cpp.
References Pol::Mobile::VitalValue::current(), Pol::Core::gamestate, Pol::Mobile::VitalValue::maximum(), Pol::Core::GameState::numVitals, Pol::Core::UObject::set_dirty(), Pol::Network::ClientInterface::tell_vital_changed(), vital(), and vitals.
Referenced by Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), and Pol::Mobile::NPC::readPropertiesForNewNPC().
void Pol::Mobile::Character::set_warmode | ( | bool | warmode | ) |
Definition at line 3072 of file charactr.cpp.
References Pol::Core::ExportedFunction::call(), Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::change(), client, dead(), disable_regeneration_for(), Pol::Core::gamestate, Pol::Core::WorldIterator< Filter >::InVisualRange(), mob_flags_, reset_swing_timer(), Pol::Network::MoveChrPkt::Send(), Pol::Core::send_create_mobile_to_nearby_cansee(), Pol::Core::send_remove_character_to_nearby_cantsee(), set_opponent(), Pol::Core::GameState::system_hooks, Pol::Mobile::WARMODE, warmode(), and Pol::Core::SystemHooks::warmode_change.
Referenced by Pol::Core::handle_mode_set(), Pol::Module::NPCExecutorModule::mf_SetWarMode(), and set_opponent().
|
virtual |
Implements Pol::Core::UObject.
Definition at line 1766 of file charactr.cpp.
References Pol::Core::UObject::facing.
Referenced by CustomHousingMove(), and face().
|
virtual |
Reimplemented from Pol::Core::UObject.
Definition at line 1659 of file charactr.cpp.
References Pol::Network::Client::chr, client, Pol::Core::ULWObject::graphic, Pol::Core::send_create_mobile_to_nearby_cansee(), Pol::Core::send_goxyz(), Pol::Core::send_remove_character_to_nearby_cansee(), and Pol::Core::UObject::set_dirty().
bool Pol::Mobile::Character::setting_enabled | ( | const char * | setting | ) | const |
Definition at line 1096 of file charactr.cpp.
References Pol::Mobile::ALL, cached_settings, Pol::Clib::StringSet::contains(), Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), and settings.
Referenced by refresh_cached_settings().
void Pol::Mobile::Character::showarmor | ( | ) | const |
Definition at line 2605 of file charactr.cpp.
References armor_, Pol::Core::GameState::armorzones, client, Pol::Core::gamestate, and Pol::Core::send_sysmessage().
Referenced by Pol::Core::textcmd_listarmor().
|
inline |
Definition at line 1013 of file charactr.h.
Referenced by Pol::Core::CanUseSkill(), Pol::Core::do_cast(), Pol::Items::Item::double_click(), and Pol::Module::UOExecutorModule::mf_UseItem().
Core::Spellbook * Pol::Mobile::Character::spellbook | ( | u8 | school | ) | const |
Definition at line 1281 of file charactr.cpp.
References backpack(), Pol::Core::UContainer::begin(), Pol::Core::UContainer::end(), GET_ITEM_PTR, Pol::Core::LAYER_HAND1, Pol::Core::POLCLASS_SPELLBOOK, Pol::Items::Item::script_isa(), Pol::Core::Spellbook::spell_school, and wornitem().
void Pol::Mobile::Character::spend_gold | ( | unsigned int | amount | ) |
Definition at line 1321 of file charactr.cpp.
References backpack(), client, Pol::Core::UContainer::consume_sumof_objtype_noninuse(), gold_carried(), passert, Pol::Core::send_full_statmsg(), and UOBJ_GOLD_COIN.
Referenced by Pol::Module::oldBuyHandler().
bool Pol::Mobile::Character::squelched | ( | ) | const |
Definition at line 4042 of file charactr.cpp.
References Pol::Core::read_gameclock().
Referenced by Pol::Core::create_nametags(), Pol::Core::handle_processed_speech(), Pol::Module::NPCExecutorModule::say(), Pol::Module::NPCExecutorModule::SayUC(), and Pol::Core::SendUnicodeSpeech().
bool Pol::Mobile::Character::start_itemuse_script | ( | Bscript::EScriptProgram * | prog, |
Items::Item * | item, | ||
bool | start_attached | ||
) |
Definition at line 82 of file chrituse.cpp.
References start_script().
Referenced by Pol::Items::Item::double_click(), and Pol::Module::UOExecutorModule::mf_UseItem().
bool Pol::Mobile::Character::start_script | ( | Bscript::EScriptProgram * | prog, |
bool | start_attached, | ||
Bscript::BObjectImp * | param2 = nullptr , |
||
Bscript::BObjectImp * | param3 = nullptr , |
||
Bscript::BObjectImp * | param4 = nullptr |
||
) |
Definition at line 30 of file chrituse.cpp.
References Pol::Bscript::UninitObject::create(), Pol::Core::create_script_executor(), Pol::Bscript::EScriptProgram::haveProgram, Pol::Bscript::EScriptProgram::name, passert, POLLOG, Pol::Core::schedule_executor(), script_ex, and Pol::Bscript::Executor::scriptname().
Referenced by Pol::Core::doubleclick(), Pol::Module::gumpbutton_handler(), Pol::Core::handle_char_profile_request(), Pol::Core::handle_help(), Pol::Core::handle_msg_BF(), Pol::Core::OnChatButton(), Pol::Core::OnGuildButton(), Pol::Core::OnQuestButton(), Pol::Core::skillrequest(), start_itemuse_script(), Pol::Module::OSExecutorModule::start_skill_script(), start_skill_script(), and start_spell_script().
bool Pol::Mobile::Character::start_skill_script | ( | Bscript::EScriptProgram * | prog | ) |
Definition at line 14 of file chrskuse.cpp.
References start_script().
Referenced by Pol::Core::StartSkillScript().
bool Pol::Mobile::Character::start_spell_script | ( | Bscript::EScriptProgram * | prog, |
Core::USpell * | spell | ||
) |
Definition at line 20 of file chrcast.cpp.
References Pol::Core::USpell::spell_id(), and start_script().
Referenced by Pol::Core::USpell::cast().
|
private |
Definition at line 497 of file charactr.cpp.
References Pol::Module::OSExecutorModule::in_debugger_holdlist(), Pol::Core::UOExecutor::os_module, Pol::Module::OSExecutorModule::revive(), Pol::Module::OSExecutorModule::revive_debugged(), script_ex, and Pol::Bscript::Executor::seterror().
Referenced by destroy(), and disconnect_cleanup().
u16 Pol::Mobile::Character::strength | ( | ) | const |
Definition at line 4085 of file charactr.cpp.
References attribute(), Pol::Mobile::AttributeValue::effective(), and Pol::Core::gamestate.
Referenced by attack(), and carrying_capacity().
bool Pol::Mobile::Character::strong_enough_to_equip | ( | const Items::Item * | item | ) | const |
Definition at line 1350 of file charactr.cpp.
References attribute(), Pol::Mobile::AttributeValue::base(), Pol::Items::ItemDesc::base_str_req, Pol::Core::gamestate, and Pol::Items::Item::itemdesc().
Referenced by Pol::Core::equip_item().
|
staticprivate |
Definition at line 2776 of file charactr.cpp.
References check_attack_after_move(), INFO_PRINT_TRACE, mob_flags_, Pol::Mobile::READY_TO_SWING, Pol::Core::ULWObject::serial, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::set(), and THREAD_CHECKPOINT.
Referenced by manual_set_swing_timer(), and schedule_attack().
bool Pol::Mobile::Character::target_cursor_busy | ( | ) | const |
Definition at line 4098 of file charactr.cpp.
References client, Pol::Network::Client::gd, Pol::Network::ClientGameData::target_cursor_uoemod, and tcursor2.
Referenced by Pol::Module::UOExecutorModule::mf_Target(), Pol::Module::UOExecutorModule::mf_TargetCancel(), Pol::Module::UOExecutorModule::mf_TargetCoordinates(), Pol::Module::UOExecutorModule::mf_TargetMultiPlacement(), Pol::Core::LosCheckedCoordCursor::send_coord_cursor(), and Pol::Core::TargetCursor::send_object_cursor().
|
virtual |
Reimplemented from Pol::Core::UObject.
Definition at line 4149 of file charactr.cpp.
void Pol::Mobile::Character::tellmove | ( | void | ) |
Definition at line 3967 of file charactr.cpp.
References check_attack_after_move(), check_region_changes(), move_reason, Pol::Realms::Realm::notify_moved(), opponent_, opponent_of, OTHER, Pol::Mobile::PropagateMove(), and Pol::Core::ULWObject::realm.
Referenced by Pol::Module::NPCExecutorModule::_internal_move(), Pol::Multi::UBoat::do_tellmoves(), Pol::Core::handle_walk(), Pol::Module::NPCExecutorModule::move(), Pol::Core::move_character_to(), Pol::Module::NPCExecutorModule::move_self(), and Pol::Core::start_client_char().
bool Pol::Mobile::Character::trade_accepted | ( | ) | const |
Definition at line 4122 of file charactr.cpp.
References Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), mob_flags_, and Pol::Mobile::TRADE_ACCEPTED.
Referenced by Pol::Core::change_trade_status(), Pol::Core::do_open_trade_window(), Pol::Core::do_place_item_in_secure_trade_container(), and Pol::Core::send_trade_statuses().
void Pol::Mobile::Character::trade_accepted | ( | bool | newvalue | ) |
Definition at line 4127 of file charactr.cpp.
References Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::change(), mob_flags_, and Pol::Mobile::TRADE_ACCEPTED.
Core::UContainer * Pol::Mobile::Character::trade_container | ( | ) |
Definition at line 4142 of file charactr.cpp.
References ref_ptr< T >::get(), and trading_cont.
Referenced by Pol::Core::cancel_trade(), Pol::Core::change_trade_status(), Pol::Core::do_open_trade_window(), Pol::Core::doubleclick(), Pol::Core::find_legal_singleclick_item(), Pol::Core::place_item(), Pol::Core::place_item_in_secure_trade_container(), Pol::Core::return_traded_items(), and Pol::Core::send_trade_statuses().
void Pol::Mobile::Character::unequip | ( | Items::Item * | item | ) |
Definition at line 1464 of file charactr.cpp.
References Pol::Items::Item::container, ref_ptr< T >::get(), intrinsic_weapon(), is_equipped(), passert, refresh_ar(), reset_swing_timer(), shield, Pol::Items::valid_equip_layer(), weapon, and wornitems.
Referenced by die(), Pol::Items::Item::extricate(), and resurrect().
void Pol::Mobile::Character::unhide | ( | ) |
Definition at line 3598 of file charactr.cpp.
References client, Pol::Core::gamestate, hidden(), Pol::Core::WorldIterator< Filter >::InVisualRange(), is_visible(), is_visible_to_me(), Pol::Core::make_mobileref(), Pol::Realms::Realm::notify_unhid(), Pol::Core::ULWObject::realm, and Pol::Core::send_owncreate().
Referenced by apply_raw_damage_hundredths(), Pol::Items::Item::double_click(), face(), Pol::Core::handle_processed_speech(), Pol::Module::UOExecutorModule::mf_UseItem(), move(), on_concealed_changed(), on_hidden_changed(), Pol::Module::NPCExecutorModule::say(), Pol::Module::NPCExecutorModule::SayUC(), Pol::Core::SendUnicodeSpeech(), Pol::Module::OSExecutorModule::start_skill_script(), and Pol::Core::StartSkillScript().
void Pol::Mobile::Character::updateEquipableProperties | ( | Items::Item * | item | ) |
Definition at line 2555 of file charactr.cpp.
Referenced by refresh_ar().
void Pol::Mobile::Character::validate_stat_ranges | ( | ) |
|
inline |
Definition at line 1061 of file charactr.h.
References passert.
Referenced by apply_raw_damage_hundredths(), calc_single_vital(), can_face(), Pol::Core::USpell::check_mana(), check_undamaged(), Pol::Core::USpell::consume_mana(), die(), heal_damage_hundredths(), Pol::Module::VitalExecutorModule::mf_ConsumeVital(), Pol::Module::VitalExecutorModule::mf_GetVital(), Pol::Module::VitalExecutorModule::mf_GetVitalMaximumValue(), Pol::Module::VitalExecutorModule::mf_GetVitalRegenRate(), Pol::Module::VitalExecutorModule::mf_SetVital(), move(), Pol::Core::Party::on_mana_changed(), Pol::Core::Party::on_stam_changed(), printProperties(), readAttributesAndVitals(), regen_vital(), resurrect(), Pol::Core::send_attributes_normalized(), Pol::Network::send_fake_hits(), Pol::Core::send_full_statmsg(), Pol::Core::send_mana_level(), Pol::Core::send_short_statmsg(), Pol::Core::send_stamina_level(), Pol::Network::send_uo_hits(), Pol::Network::send_uo_mana(), Pol::Network::send_uo_stamina(), Pol::Core::send_update_hits_to_inrange(), and set_vitals_to_maximum().
|
inline |
Definition at line 1066 of file charactr.h.
References passert.
bool Pol::Mobile::Character::warmode | ( | ) | const |
Definition at line 3067 of file charactr.cpp.
References Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), mob_flags_, and Pol::Mobile::WARMODE.
Referenced by Pol::Mobile::NPC::anchor_allows_move(), get_flag1(), is_visible_to_me(), Pol::Core::open_trade_window(), Pol::Core::send_paperdoll(), send_warmode(), set_opponent(), and set_warmode().
Core::UACTION Pol::Mobile::Character::weapon_anim | ( | ) | const |
Definition at line 3154 of file charactr.cpp.
References Pol::Items::UWeapon::anim(), Pol::Items::UWeapon::mounted_anim(), on_mount(), and weapon.
Referenced by do_attack_effects().
const AttributeValue & Pol::Mobile::Character::weapon_attribute | ( | ) | const |
Definition at line 3112 of file charactr.cpp.
References Pol::Items::UWeapon::attribute(), attribute(), Pol::Mobile::Attribute::attrid, and weapon.
Referenced by attack().
Core::USKILLID Pol::Mobile::Character::weapon_skillid | ( | ) | const |
|
virtual |
A Mobile's weight is 10 stones + the weight of their equipment.
Implements Pol::Core::UObject.
Definition at line 513 of file charactr.cpp.
References ref_ptr< T >::get(), trading_cont, and wornitems.
Referenced by move(), and Pol::Core::send_full_statmsg().
Items::Item * Pol::Mobile::Character::wornitem | ( | int | layer | ) | const |
Definition at line 1332 of file charactr.cpp.
References wornitems.
Referenced by Pol::Module::character_race_changer_handler(), Pol::Core::handle_open_spellbook(), Pol::Core::hands_are_free(), Pol::Core::knows_spell(), Pol::Module::UOExecutorModule::mf_GetEquipmentByLayer(), Pol::Module::UOExecutorModule::mf_ListEquippedItems(), Pol::Core::send_owncreate(), and spellbook().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 570 of file charactr.h.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 653 of file charactr.h.
|
friend |
Definition at line 894 of file charactr.h.
|
private |
Definition at line 875 of file charactr.h.
Referenced by last_textcolor().
Core::AccountRef Pol::Mobile::Character::acct |
Definition at line 914 of file charactr.h.
Referenced by Pol::Accounts::AccountObjImp::call_method_id(), Pol::Core::char_select(), charindex(), Pol::Core::ObjectHash::ClearCharacterAccountReferences(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Core::createchar2(), Pol::Core::delete_character(), die(), Pol::Mobile::handle_attack(), Pol::Core::handle_target_cursor(), Pol::Module::handle_textentry(), printProperties(), Pol::Core::read_data(), readCommonProperties(), and ~Character().
|
mutableprivate |
Definition at line 843 of file charactr.h.
Referenced by estimatedSize(), Pol::Core::RepSystem::repsys_task(), and Pol::Core::RepSystem::show_repdata().
|
protected |
Definition at line 822 of file charactr.h.
Referenced by Pol::Mobile::NPC::refresh_ar(), and refresh_ar().
|
protected |
Definition at line 785 of file charactr.h.
Referenced by choose_armor(), estimatedSize(), Pol::Mobile::NPC::refresh_ar(), refresh_ar(), and showarmor().
std::vector<AttributeValue> Pol::Mobile::Character::attributes |
Definition at line 835 of file charactr.h.
Referenced by calc_vital_stuff(), and estimatedSize().
Definition at line 910 of file charactr.h.
Referenced by addBuff(), clearBuffs(), delBuff(), estimatedSize(), and send_buffs().
|
protected |
Definition at line 895 of file charactr.h.
Referenced by apply_raw_damage_hundredths(), can_be_heard_as_ghost(), can_clothe(), can_freemove(), can_hearghosts(), can_move(), can_moveanydist(), can_plogany(), can_rename(), can_speedhack(), doors_block(), face(), invul(), is_attackable(), is_visible_to_me(), Pol::Module::UOExecutorModule::mf_Resurrect(), move(), refresh_cached_settings(), setting_enabled(), and Pol::Mobile::PrivUpdater::~PrivUpdater().
Network::Client* Pol::Mobile::Character::client |
Definition at line 871 of file charactr.h.
Referenced by Pol::Multi::UHouse::AcceptHouseCommit(), Pol::Core::add_candidate(), addBuff(), attack(), Pol::Network::UOClientInterface::bcast_vital_changed(), Pol::Core::BPacket::call_method_id(), Pol::Accounts::AccountObjImp::call_method_id(), Pol::Module::EPartyRefObjImp::call_method_id(), can_face(), cancel_menu(), Pol::Core::cancel_trade(), Pol::Core::USpell::cast(), Pol::Core::char_select(), check_attack_after_move(), check_justice_region_change(), check_light_region_change(), check_music_region_change(), check_region_changes(), check_weather_region_change(), clear_gotten_item(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Multi::CustomHousesAddMulti(), Pol::Multi::CustomHousesClear(), Pol::Multi::CustomHousesErase(), Pol::Multi::UHouse::CustomHousesQuit(), Pol::Multi::CustomHousesRestore(), Pol::Multi::CustomHousesRevert(), Pol::Multi::CustomHousesRoofRemove(), Pol::Multi::CustomHousesSelectFloor(), Pol::Multi::CustomHousesSynch(), Pol::Multi::CustomHouseStopEditing(), CustomHousingMove(), delBuff(), Pol::Multi::destroy_boat(), Pol::Mobile::PrivUpdater::disable_invul(), Pol::Mobile::PrivUpdater::disable_see_ghosts(), Pol::Mobile::PrivUpdater::disable_see_hidden(), Pol::Mobile::PrivUpdater::disable_see_invis_items(), Pol::Core::Party::disband(), Pol::Core::do_open_trade_window(), Pol::Core::do_place_item_in_secure_trade_container(), Pol::Mobile::PrivUpdater::enable_invul(), Pol::Mobile::PrivUpdater::enable_see_ghosts(), Pol::Mobile::PrivUpdater::enable_see_hidden(), Pol::Mobile::PrivUpdater::enable_see_invis_items(), Pol::Multi::UHouse::FindWorkingHouse(), Pol::Core::handle_add_member_cursor(), Pol::Mobile::handle_attack(), Pol::Module::handle_coord_cursor(), Pol::Core::handle_decline_invite(), Pol::Core::handle_delete_character(), Pol::Core::handle_ident_cursor(), Pol::Core::handle_remove(), Pol::Core::handle_remove_member_cursor(), Pol::Module::handle_script_cursor(), Pol::Core::TargetCursor::handle_target_cursor(), has_active_client(), has_active_gump(), has_active_prompt(), Pol::Module::UOExecutorModule::internal_MoveCharacter(), Pol::Module::UOExecutorModule::internal_SendCompressedGumpMenu(), Pol::Module::UOExecutorModule::internal_SendUnCompressedGumpMenu(), Pol::Core::invite_timeout(), is_house_editing(), Pol::Module::menu_selection_made(), Pol::Module::UOExecutorModule::mf_CloseGump(), Pol::Module::UOExecutorModule::mf_CloseWindow(), Pol::Module::VitalExecutorModule::mf_ConsumeMana(), Pol::Module::PartyExecutorModule::mf_CreateParty(), Pol::Module::UOExecutorModule::mf_DisconnectClient(), Pol::Module::UOExecutorModule::mf_GetRegionName(), Pol::Module::UOExecutorModule::mf_MoveItemToSecureTradeWin(), Pol::Module::UOExecutorModule::mf_OpenPaperdoll(), Pol::Module::OSExecutorModule::mf_OpenURL(), Pol::Module::UOExecutorModule::mf_PlayMusic(), Pol::Module::UOExecutorModule::mf_PromptInput(), Pol::Module::UnicodeExecutorModule::mf_RequestInputUC(), Pol::Module::UOExecutorModule::mf_SecureTradeWin(), Pol::Module::UOExecutorModule::mf_SelectColor(), Pol::Module::UOExecutorModule::mf_SelectMenuItem(), Pol::Module::UOExecutorModule::mf_SendBuyWindow(), Pol::Module::UOExecutorModule::mf_SendCharacterRaceChanger(), Pol::Module::UOExecutorModule::mf_SendGumpMenu(), Pol::Module::UOExecutorModule::mf_SendHousingTool(), Pol::Module::UOExecutorModule::mf_SendInstaResDialog(), Pol::Module::UOExecutorModule::mf_SendOpenBook(), Pol::Module::UOExecutorModule::mf_SendOpenSpecialContainer(), Pol::Module::UOExecutorModule::mf_SendPacket(), Pol::Module::UOExecutorModule::mf_SendPopUpMenu(), Pol::Module::UOExecutorModule::mf_SendQuestArrow(), Pol::Module::UOExecutorModule::mf_SendSellWindow(), Pol::Module::UOExecutorModule::mf_SendSkillWindow(), Pol::Module::UOExecutorModule::mf_SendStatus(), Pol::Module::UOExecutorModule::mf_SendStringAsTipWindow(), Pol::Module::UOExecutorModule::mf_SendSysMessage(), Pol::Module::ClilocExecutorModule::mf_SendSysMessageCL(), Pol::Module::UnicodeExecutorModule::mf_SendSysMessageUC(), Pol::Module::UOExecutorModule::mf_SendTextEntryGump(), Pol::Module::UOExecutorModule::mf_SendViewContainer(), Pol::Module::UOExecutorModule::mf_SingleClick(), Pol::Module::UOExecutorModule::mf_Target(), Pol::Module::UOExecutorModule::mf_TargetCancel(), Pol::Module::UOExecutorModule::mf_TargetCoordinates(), Pol::Module::UOExecutorModule::mf_TargetMultiPlacement(), Pol::Module::UOExecutorModule::mf_UpdateMobile(), Pol::Module::UOExecutorModule::mf_UseItem(), Pol::Multi::UBoat::move(), Pol::Core::move_character_to(), Pol::Multi::UBoat::move_components(), Pol::Core::move_item(), Pol::Multi::UBoat::move_travellers(), on_aos_ext_stat_changed(), on_color_changed(), on_concealed_changed(), on_death(), on_facing_changed(), on_hidden_changed(), Pol::Core::on_loggon_party(), Pol::Core::Party::on_mana_changed(), Pol::Core::RepSystem::on_pc_attacks_pc(), on_poison_changed(), Pol::Core::Party::on_stam_changed(), Pol::Core::LosCheckedTargetCursor::on_target_cursor(), Pol::Core::NoLosCheckedTargetCursor::on_target_cursor(), Pol::Core::open_trade_window(), Pol::Core::place_item_in_secure_trade_container(), Pol::Core::play_moving_effect2(), Pol::Core::play_moving_effect2_ex(), Pol::Core::play_moving_effect_ex(), Pol::Core::play_object_centered_effect_ex(), Pol::Core::play_sound_effect(), Pol::Core::play_sound_effect_private(), Pol::Core::play_sound_effect_xyz(), Pol::Core::play_stationary_effect(), Pol::Core::play_stationary_effect_ex(), Pol::Module::popup_menu_selection_made(), Pol::Network::Client::PreDelete(), Pol::Core::private_say_above(), Pol::Core::private_say_above_cl(), Pol::Core::private_say_above_cl_affix(), Pol::Core::private_say_above_ex(), Pol::Mobile::PropagateMove(), realm_changed(), refresh_ar(), remove_as_aggressor_to(), remove_as_lawful_damager(), Pol::Core::RepSystem::repsys_task(), resurrect(), Pol::Core::return_traded_items(), Pol::Multi::UHouse::script_method_id(), Pol::Core::send_action_to_inrange(), Pol::Core::send_attributes_normalized(), Pol::Core::send_buff_message(), send_buffs(), Pol::Core::send_corpse_equip_inrange(), Pol::Core::send_create_mobile_to_nearby_cansee(), Pol::Core::send_damage(), Pol::Core::send_death_message(), Pol::Multi::UBoat::send_display_boat_to_inrange(), Pol::Core::send_empty_party(), send_highlight(), Pol::Core::send_invite(), Pol::Core::send_item_to_inrange(), Pol::Core::Party::send_member_list(), Pol::Core::Party::send_member_msg_private(), Pol::Core::Party::send_member_msg_public(), Pol::Core::send_move_mobile_to_nearby_cansee(), Pol::Core::Party::send_msg_to_all(), Pol::Core::send_multi_to_inrange(), Pol::Core::send_remove_character_to_nearby(), Pol::Core::send_remove_character_to_nearby_cansee(), Pol::Core::send_remove_character_to_nearby_cantsee(), Pol::Core::Party::send_remove_member(), Pol::Core::send_remove_object_to_inrange(), Pol::Multi::UBoat::send_smooth_move_to_inrange(), Pol::Core::Party::send_stat_to(), Pol::Core::Party::send_stats_on_add(), Pol::Core::send_trade_statuses(), Pol::Core::send_update_hits_to_inrange(), send_warmode(), Pol::Core::sendCharProfile(), set_warmode(), setgraphic(), Pol::Core::show_repdata(), showarmor(), Pol::Core::USpell::speak_power_words(), spend_gold(), Pol::Core::start_packetlog(), Pol::Module::OSExecutorModule::start_skill_script(), Pol::Core::stop_packetlog(), target_cursor_busy(), Pol::Network::ClientInterface::tell_attribute_changed(), Pol::Network::ClientInterface::tell_vital_changed(), Pol::Multi::UBoat::transform_components(), Pol::Core::transmit_to_inrange(), Pol::Core::transmit_to_others_inrange(), Pol::Multi::UBoat::turn_travellers(), unhide(), Pol::Core::Guild::update_online_members(), Pol::Core::Guild::update_online_members_remove(), Pol::Core::UpdateCharacterWeight(), Pol::Realms::Realm::walkheight(), ~Character(), Pol::Module::UnicodeExecutorModule::~UnicodeExecutorModule(), and Pol::Module::UOExecutorModule::~UOExecutorModule().
u8 Pol::Mobile::Character::cmdlevel_ |
Definition at line 878 of file charactr.h.
Referenced by printProperties(), and readCommonProperties().
|
protected |
Definition at line 888 of file charactr.h.
Referenced by printProperties(), and readCommonProperties().
|
protected |
Definition at line 906 of file charactr.h.
Referenced by Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Core::createchar2(), printProperties(), and readCommonProperties().
|
private |
Definition at line 845 of file charactr.h.
Referenced by Pol::Core::RepSystem::repsys_task(), and Pol::Core::RepSystem::show_repdata().
u8 Pol::Mobile::Character::dir |
Definition at line 800 of file charactr.h.
Referenced by Pol::Network::MoveChrPkt::build(), CustomHousingMove(), and move().
time_t Pol::Mobile::Character::disable_regeneration_until |
Definition at line 834 of file charactr.h.
Referenced by disable_regeneration_for().
Core::UGENDER Pol::Mobile::Character::gender |
Definition at line 918 of file charactr.h.
Referenced by Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Core::createchar2(), die(), get_damaged_sound(), get_flag1(), Pol::Module::UOExecutorModule::mf_SendCharacterRaceChanger(), printProperties(), readCommonProperties(), and Pol::Core::send_full_statmsg().
enum Pol::Mobile::Character::GOTTEN_ITEM_TYPE Pol::Mobile::Character::gotten_item_source |
Referenced by Pol::Core::get_item(), and Pol::Core::undo_get_item().
short Pol::Mobile::Character::gradual_boost |
Definition at line 801 of file charactr.h.
Referenced by Pol::Mobile::NPC::could_move(), move(), and Pol::Core::move_character_to().
u32 Pol::Mobile::Character::last_corpse |
Definition at line 920 of file charactr.h.
Referenced by die(), printProperties(), and readProperties().
u16 Pol::Mobile::Character::lastx |
Definition at line 802 of file charactr.h.
Referenced by Pol::Core::char_select(), CustomHousingMove(), Pol::Mobile::NPC::inform_imoved(), Pol::Mobile::NPC::inform_moved(), move(), Pol::Core::move_character_to(), Pol::Multi::UBoat::move_travellers(), Pol::Realms::Realm::notify_moved(), Pol::Mobile::PropagateMove(), Pol::Core::send_char_if_newly_inrange(), Pol::Core::send_item_if_newly_inrange(), Pol::Core::send_multi_if_newly_inrange(), Pol::Core::start_client_char(), Pol::Multi::UBoat::turn_traveller_coords(), Pol::Multi::UBoat::turn_travellers(), Pol::Items::Item::walk_on(), and Pol::Multi::UHouse::walk_on().
u16 Pol::Mobile::Character::lasty |
Definition at line 802 of file charactr.h.
Referenced by Pol::Core::char_select(), CustomHousingMove(), Pol::Mobile::NPC::inform_imoved(), Pol::Mobile::NPC::inform_moved(), move(), Pol::Core::move_character_to(), Pol::Multi::UBoat::move_travellers(), Pol::Realms::Realm::notify_moved(), Pol::Mobile::PropagateMove(), Pol::Core::send_char_if_newly_inrange(), Pol::Core::send_item_if_newly_inrange(), Pol::Core::send_multi_if_newly_inrange(), Pol::Core::start_client_char(), Pol::Multi::UBoat::turn_traveller_coords(), Pol::Multi::UBoat::turn_travellers(), Pol::Items::Item::walk_on(), and Pol::Multi::UHouse::walk_on().
s8 Pol::Mobile::Character::lastz |
Definition at line 803 of file charactr.h.
Referenced by move(), Pol::Core::move_character_to(), Pol::Core::start_client_char(), Pol::Items::Item::walk_on(), and Pol::Multi::UHouse::walk_on().
|
mutableprivate |
Definition at line 844 of file charactr.h.
Referenced by estimatedSize(), Pol::Core::RepSystem::repsys_task(), and Pol::Core::RepSystem::show_repdata().
weak_ptr<Core::Menu> Pol::Mobile::Character::menu |
Definition at line 862 of file charactr.h.
Referenced by cancel_menu(), Pol::Core::handle_menu_selection(), and Pol::Module::UOExecutorModule::mf_SelectMenuItem().
|
protected |
Definition at line 896 of file charactr.h.
Referenced by apply_raw_damage_hundredths(), check_attack_after_move(), connected(), die(), logged_in(), manual_set_swing_timer(), readCommonProperties(), Pol::Mobile::NPC::readNpcProperties(), reset_swing_timer(), resurrect(), set_warmode(), swing_task_func(), trade_accepted(), Pol::Mobile::NPC::use_adjustments(), and warmode().
|
protected |
Definition at line 890 of file charactr.h.
Referenced by move(), printProperties(), and readCommonProperties().
enum Pol::Mobile::Character::MOVEREASON Pol::Mobile::Character::move_reason |
Core::MOVEMODE Pol::Mobile::Character::movemode |
Definition at line 811 of file charactr.h.
Referenced by get_flag1(), Pol::Core::handle_msg_BF(), Pol::Module::UOExecutorModule::internal_MoveCharacter(), Pol::Module::UOExecutorModule::mf_Resurrect(), Pol::Core::move_character_to(), on_mount(), printProperties(), readCommonProperties(), and Pol::Realms::Realm::walkheight().
void( * Pol::Mobile::Character::on_menu_selection) (Network::Client *client, Core::MenuItem *mi, Core::PKTIN_7D *msg) |
Definition at line 863 of file charactr.h.
Referenced by cancel_menu(), Pol::Core::handle_menu_selection(), and Pol::Module::UOExecutorModule::mf_SelectMenuItem().
void( * Pol::Mobile::Character::on_popup_menu_selection) (Network::Client *client, u32 serial, u16 id) |
Definition at line 864 of file charactr.h.
Referenced by Pol::Core::handle_msg_BF(), and Pol::Module::UOExecutorModule::mf_SendPopUpMenu().
|
protected |
Definition at line 828 of file charactr.h.
Referenced by check_justice_region_change(), Pol::Core::RepSystem::de_escalate(), get_attackable_opponent(), get_opponent(), inform_disengaged(), inform_engaged(), Pol::Mobile::NPC::inform_moved(), manual_set_swing_timer(), on_death(), removal_cleanup(), reset_swing_timer(), select_opponent(), set_opponent(), and tellmove().
|
protected |
Definition at line 829 of file charactr.h.
Referenced by check_justice_region_change(), clear_opponent_of(), estimatedSize(), get_attackable_opponent(), get_opponent(), manual_set_swing_timer(), removal_cleanup(), Pol::Core::RepSystem::repsys_task(), reset_swing_timer(), set_opponent(), and tellmove().
|
private |
Definition at line 853 of file charactr.h.
Referenced by ~Character().
|
protected |
Definition at line 892 of file charactr.h.
Referenced by all_privs(), estimatedSize(), grant_privilege(), has_privilege(), printProperties(), readCommonProperties(), revoke_privilege(), and set_privs().
Core::URACE Pol::Mobile::Character::race |
Definition at line 919 of file charactr.h.
Referenced by Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), die(), Pol::Core::handle_msg_BF(), Pol::Module::UOExecutorModule::mf_SendCharacterRaceChanger(), on_mount(), printProperties(), readCommonProperties(), and Pol::Core::send_full_statmsg().
u32 Pol::Mobile::Character::registered_house |
Definition at line 915 of file charactr.h.
Referenced by Pol::Mobile::NPC::destroy(), destroy(), Pol::Multi::destroy_house(), move(), Pol::Core::move_character_to(), Pol::Mobile::NPC::printProperties(), printProperties(), readCommonProperties(), Pol::Mobile::NPC::readNpcProperties(), and Pol::Core::start_client_char().
std::vector<Core::ItemRef> Pol::Mobile::Character::remote_containers_ |
Definition at line 797 of file charactr.h.
Referenced by add_remote_container(), estimatedSize(), mightsee(), move(), and search_remote_containers().
|
private |
Definition at line 848 of file charactr.h.
Referenced by estimatedSize(), printProperties(), readCommonProperties(), and Pol::Core::RepSystem::show_repdata().
|
private |
Definition at line 846 of file charactr.h.
Referenced by Pol::Core::RepSystem::schedule_repsys_task(), Pol::Core::RepSystem::show_repdata(), and ~Character().
|
protected |
Definition at line 867 of file charactr.h.
Referenced by Pol::Module::UOExecutorModule::mf_Attach(), Pol::Module::UOExecutorModule::mf_Detach(), start_script(), stop_skill_script(), and Pol::Module::UOExecutorModule::~UOExecutorModule().
|
protected |
Definition at line 893 of file charactr.h.
Referenced by all_settings(), estimatedSize(), printProperties(), readCommonProperties(), revoke_privilege(), set_setting(), and setting_enabled().
|
protected |
Definition at line 784 of file charactr.h.
Referenced by attack(), equip(), Pol::Mobile::NPC::readNpcProperties(), refresh_ar(), and unequip().
|
protected |
Definition at line 868 of file charactr.h.
Referenced by schedule_spell().
|
protected |
Definition at line 889 of file charactr.h.
Referenced by face(), move(), and set_stealthsteps().
|
protected |
Definition at line 831 of file charactr.h.
Referenced by check_justice_region_change(), manual_set_swing_timer(), removal_cleanup(), reset_swing_timer(), and schedule_attack().
|
protected |
Definition at line 830 of file charactr.h.
Referenced by manual_set_swing_timer(), reset_swing_timer(), and schedule_attack().
Core::TargetCursor* Pol::Mobile::Character::tcursor2 |
Definition at line 861 of file charactr.h.
Referenced by Pol::Core::TargetCursor::cancel(), disconnect_cleanup(), Pol::Core::handle_target_cursor(), Pol::Core::LosCheckedCoordCursor::send_coord_cursor(), Pol::Core::TargetCursor::send_object_cursor(), Pol::Core::MultiPlacementCursor::send_placemulti(), and target_cursor_busy().
|
private |
Definition at line 847 of file charactr.h.
Referenced by estimatedSize(), and Pol::Core::RepSystem::show_repdata().
ref_ptr<Core::UContainer> Pol::Mobile::Character::trading_cont |
Definition at line 856 of file charactr.h.
Referenced by create_trade_container(), realm_changed(), trade_container(), weight(), and ~Character().
Core::CharacterRef Pol::Mobile::Character::trading_with |
Definition at line 857 of file charactr.h.
Referenced by Pol::Core::cancel_trade(), Pol::Core::change_trade_status(), Pol::Core::do_open_trade_window(), Pol::Core::doubleclick(), Pol::Core::find_legal_singleclick_item(), Pol::Core::handle_walk(), is_trading(), Pol::Module::UOExecutorModule::mf_CloseTradeWindow(), Pol::Core::place_item_in_secure_trade_container(), and Pol::Core::send_trade_statuses().
u16 Pol::Mobile::Character::truecolor |
Definition at line 916 of file charactr.h.
Referenced by Pol::Module::character_race_changer_handler(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Core::createchar2(), die(), printProperties(), readCommonProperties(), and resurrect().
u32 Pol::Mobile::Character::trueobjtype |
Definition at line 917 of file charactr.h.
Referenced by Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Core::createchar2(), printProperties(), and readCommonProperties().
std::string Pol::Mobile::Character::uclang |
Definition at line 872 of file charactr.h.
Referenced by estimatedSize(), Pol::Core::handle_msg_BF(), and readCommonProperties().
std::vector<VitalValue> Pol::Mobile::Character::vitals |
Definition at line 836 of file charactr.h.
Referenced by calc_vital_stuff(), estimatedSize(), and set_vitals_to_maximum().
u32 Pol::Mobile::Character::warmode_wait |
Definition at line 819 of file charactr.h.
Referenced by Pol::Core::handle_mode_set().
|
protected |
Definition at line 783 of file charactr.h.
Referenced by attack(), damage_weapon(), do_attack_effects(), do_hit_failure_effects(), do_hit_success_effects(), equip(), equippable(), face(), is_attackable(), max_weapon_damage(), min_weapon_damage(), move(), random_weapon_damage(), Pol::Mobile::NPC::readNpcProperties(), run_hit_script(), schedule_attack(), unequip(), weapon_anim(), and weapon_attribute().
|
protected |
Definition at line 787 of file charactr.h.
Referenced by attack(), backpack(), Character(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Core::createchar2(), Pol::Mobile::NPC::destroy(), die(), equip(), find_wornitem(), is_equipped(), layer_is_equipped(), position_changed(), printWornItems(), readCommonProperties(), realm_changed(), refresh_ar(), resurrect(), unequip(), weight(), wornitem(), and ~Character().