Pol
Revision:cb584c9
|
#include <npc.h>
Public Member Functions | |
NPC (u32 objtype, const Clib::ConfigElem &elem) | |
virtual | ~NPC () |
Core::NpcTemplate::ALIGNMENT | alignment () const |
bool | anchor_allows_move (Core::UFACING dir) const |
virtual void | apply_raw_damage_hundredths (unsigned int damage, Character *source, bool userepsys=true, bool send_damage_packet=false) POL_OVERRIDE |
virtual unsigned short | ar () const POL_OVERRIDE |
virtual double | armor_absorb_damage (double damage) POL_OVERRIDE |
bool | can_accept_event (Core::EVENTID eventid) |
virtual bool | can_be_renamed_by (const Character *chr) const POL_OVERRIDE |
bool | could_move (Core::UFACING dir) const |
virtual Bscript::BObjectImp * | custom_script_method (const char *methodname, Bscript::Executor &ex) POL_OVERRIDE |
virtual void | destroy () POL_OVERRIDE |
virtual size_t | estimatedSize () const POL_OVERRIDE |
virtual void | get_hitscript_params (double damage, Items::UArmor **parmor, unsigned short *rawdamage) POL_OVERRIDE |
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 |
virtual unsigned char | hilite_color_idx (const Character *seen_by) const POL_OVERRIDE |
[16] NPC Highlighting If the NPC has a master, Highlight color is the same as the Master's. Else the NPC is invul Hilite them invul is ssopt.cfg option says to. Else Highlight Good NPCs INNOCENT (Blue) Highlight Neutral NPCs ATTACKABLE (Grey) Highlight Evil NPCs MURDERER (Red) More... | |
virtual void | inform_criminal (Character *thecriminal) POL_OVERRIDE |
virtual void | inform_disengaged (Character *disengaged) POL_OVERRIDE |
virtual void | inform_engaged (Character *engaged) POL_OVERRIDE |
virtual void | inform_enteredarea (Character *whoentered) POL_OVERRIDE |
virtual void | inform_imoved (Character *chr) POL_OVERRIDE |
virtual void | inform_leftarea (Character *wholeft) POL_OVERRIDE |
virtual void | inform_moved (Character *moved) POL_OVERRIDE |
virtual Items::UWeapon * | intrinsic_weapon () POL_OVERRIDE |
Character * | master () const |
virtual unsigned short | name_color (const Character *seen_by) const POL_OVERRIDE |
bool | no_drop_exception () const |
void | no_drop_exception (bool newvalue) |
bool | npc_path_blocked (Core::UFACING dir) const |
virtual void | on_death (Items::Item *corpse) POL_OVERRIDE |
void | on_ghost_pc_spoke (Character *src_chr, const char *speech, u8 texttype) |
void | on_ghost_pc_spoke (Character *src_chr, const char *speech, u8 texttype, const u16 *wspeech, const char lang[4], Bscript::ObjArray *speechtokens=nullptr) |
void | on_pc_spoke (Character *src_chr, const char *speech, u8 texttype) |
void | on_pc_spoke (Character *src_chr, const char *speech, u8 texttype, const u16 *wspeech, const char lang[4], Bscript::ObjArray *speechtokens=nullptr) |
virtual void | readProperties (Clib::ConfigElem &elem) POL_OVERRIDE |
void | readPropertiesForNewNPC (Clib::ConfigElem &elem) |
virtual void | refresh_ar () POL_OVERRIDE |
virtual void | repsys_on_attack (Character *defender) POL_OVERRIDE |
[13.2] NPC (MA) Attacks Mobile (MB) If MA has a Master (Amy), Apply 'Player Attacks Mobile' rules[->13.1] for Amy vs MB Else Exit with no (RepSystem) effect. More... | |
virtual void | repsys_on_damage (Character *defender) POL_OVERRIDE |
[14.2] NPC (MA) Damages Mobile (MB) If MA has a Master (Amy), Apply 'Player Damages Mobile' rules[->14.1] for Amy vs MB Else Exit with no (RepSystem) effect. More... | |
virtual void | repsys_on_help (Character *recipient) POL_OVERRIDE |
[15.2] NPC (MA) Helps Mobile (MB) If MA has a Master (Amy), Apply 'Player Helps Mobile' rules[->15.1] for Amy helps MB Else Exit with no (RepSystem) effect. More... | |
void | restart_script () |
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 |
bool | send_event (Bscript::BObjectImp *event) |
Bscript::BObjectImp * | send_event_script (Bscript::BObjectImp *event) |
virtual Bscript::BObjectImp * | set_script_member (const char *membername, int value) POL_OVERRIDE |
id test More... | |
virtual Bscript::BObjectImp * | set_script_member (const char *membername, const std::string &) POL_OVERRIDE |
id test More... | |
virtual Bscript::BObjectImp * | set_script_member_id (const int id, int value) POL_OVERRIDE |
virtual Bscript::BObjectImp * | set_script_member_id (const int id, const std::string &) POL_OVERRIDE |
void | start_script () |
std::string | templatename () const |
bool | use_adjustments () const |
void | use_adjustments (bool newvalue) |
![]() | |
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) |
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 |
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 () |
bool | CustomHousingMove (unsigned char i_dir) |
void | damage_weapon () |
bool | dead () const |
bool | deafened () const |
bool | delBuff (u16 icon) |
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 |
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 |
Character * | get_opponent () const |
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) |
const CharacterSet & | hostiles () const |
bool | ignores_line_of_sight () const |
u16 | intelligence () const |
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) |
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 () |
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) |
void | realm_changed () |
void | regen_vital (const Core::Vital *) |
void | removal_cleanup () |
void | remove_as_aggressor_to (Character *chr) |
void | remove_as_lawful_damager (Character *chr) |
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 *) |
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_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) |
Protected Member Functions | |
virtual const char * | classname () const POL_OVERRIDE |
virtual u16 | get_damaged_sound () const POL_OVERRIDE |
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 | stop_scripts () |
![]() | |
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) | |
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) |
Private Types | |
typedef Character | base |
Private Attributes | |
Anchor | anchor |
Core::CharacterRef | master_ |
unsigned short | npc_ar_ |
boost_utils::script_name_flystring | script |
const Core::NpcTemplate & | template_ |
Friends | |
class | Core::RepSystem |
class | Module::NPCExecutorModule |
class | ref_ptr< NPC > |
Additional Inherited Members | |
![]() | |
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 } |
![]() | |
static Core::MOVEMODE | decode_movemode (const std::string &str) |
static std::string | encode_movemode (Core::MOVEMODE movemode) |
![]() | |
static std::atomic< unsigned int > | clean_writes |
static std::atomic< unsigned int > | dirty_writes |
|
private |
|
explicit |
Definition at line 80 of file npc.cpp.
References Pol::Core::CLASS_NPC, Pol::Mobile::Character::connected(), Pol::Mobile::Character::logged_in(), Pol::Core::UObjCount::npc_count, Pol::Core::stateManager, Pol::Core::StateManager::uobjcount, and use_adjustments().
|
virtual |
Definition at line 104 of file npc.cpp.
References Pol::Core::UObjCount::npc_count, Pol::Core::stateManager, stop_scripts(), and Pol::Core::StateManager::uobjcount.
|
private |
|
inline |
Definition at line 270 of file npc.h.
Referenced by Pol::Mobile::Character::repsys_on_attack(), Pol::Mobile::Character::repsys_on_damage(), and Pol::Mobile::Character::repsys_on_help().
bool Pol::Mobile::NPC::anchor_allows_move | ( | Core::UFACING | dir | ) | const |
Definition at line 150 of file npc.cpp.
References anchor, Pol::Mobile::Anchor::dstart, Pol::Mobile::Anchor::enabled, Pol::Core::move_delta, Pol::Core::pol_distance(), Pol::Mobile::Anchor::psub, Pol::Clib::random_int(), Pol::Mobile::Character::warmode(), Pol::Core::ULWObject::x, Pol::Mobile::Anchor::x, Pol::Core::MoveDelta::xmove, Pol::Core::ULWObject::y, Pol::Mobile::Anchor::y, and Pol::Core::MoveDelta::ymove.
Referenced by could_move(), and Pol::Module::NPCExecutorModule::move_self().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 921 of file npc.cpp.
References Pol::Mobile::Character::apply_raw_damage_hundredths(), Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_DAMAGED, ex, Pol::Core::UOExecutor::os_module, and Pol::Module::OSExecutorModule::signal_event().
|
inlinevirtual |
Reimplemented from Pol::Mobile::Character.
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 937 of file npc.cpp.
References Pol::Mobile::Character::armor_absorb_damage(), INFO_PRINT, npc_ar_, Pol::Clib::random_int(), and Pol::Core::settingsManager.
bool Pol::Mobile::NPC::can_accept_event | ( | Core::EVENTID | eventid | ) |
Definition at line 877 of file npc.cpp.
References Pol::Core::UOExecutor::eventmask, and ex.
Referenced by Pol::Mobile::PrivUpdater::disable_see_ghosts(), Pol::Mobile::PrivUpdater::disable_see_hidden(), Pol::Core::doubleclick(), Pol::Core::drop_item_on_mobile(), Pol::Mobile::PrivUpdater::enable_see_ghosts(), and Pol::Mobile::PrivUpdater::enable_see_hidden().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 626 of file npc.cpp.
References master_.
|
protectedvirtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 139 of file npc.cpp.
Referenced by printOn().
bool Pol::Mobile::NPC::could_move | ( | Core::UFACING | dir | ) | const |
Definition at line 174 of file npc.cpp.
References anchor_allows_move(), Pol::Mobile::Character::gradual_boost, Pol::Core::move_delta, npc_path_blocked(), Pol::Core::ULWObject::realm, Pol::Realms::Realm::walkheight(), 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(), and Pol::Module::NPCExecutorModule::CanMove().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 3261 of file uoscrobj.cpp.
References Pol::Bscript::Executor::fparams, and Pol::Bscript::Executor::numParams().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 123 of file npc.cpp.
References Pol::Mobile::Character::destroy(), Pol::Mobile::Character::registered_house, Pol::Core::system_find_multi(), Pol::Multi::UMulti::unregister_object(), and Pol::Mobile::Character::wornitems.
Referenced by on_death().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 1029 of file npc.cpp.
References anchor, and Pol::Mobile::Character::estimatedSize().
|
protectedvirtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 1041 of file npc.cpp.
References damaged_sound, and Pol::Mobile::Character::get_damaged_sound().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 961 of file npc.cpp.
References Pol::Mobile::calc_thru_damage(), Pol::Mobile::Character::get_hitscript_params(), and npc_ar_.
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 3152 of file uoscrobj.cpp.
References Pol::Bscript::getKnownObjMember(), and Pol::Bscript::ObjMember::id.
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 3089 of file uoscrobj.cpp.
References Pol::Bscript::MBR_ALIGNMENT, Pol::Bscript::MBR_EVENTMASK, Pol::Bscript::MBR_MASTER, Pol::Bscript::MBR_NO_DROP_EXCEPTION, Pol::Bscript::MBR_NPCTEMPLATE, Pol::Bscript::MBR_PROCESS, Pol::Bscript::MBR_RUN_SPEED, Pol::Bscript::MBR_SAVEONEXIT, Pol::Bscript::MBR_SCRIPT, Pol::Bscript::MBR_SPEECH_COLOR, Pol::Bscript::MBR_SPEECH_FONT, Pol::Bscript::MBR_USE_ADJUSTMENTS, and Pol::Core::ULWObject::orphan().
|
virtual |
[16] NPC Highlighting If the NPC has a master, Highlight color is the same as the Master's. Else the NPC is invul Hilite them invul is ssopt.cfg option says to. Else Highlight Good NPCs INNOCENT (Blue) Highlight Neutral NPCs ATTACKABLE (Grey) Highlight Evil NPCs MURDERER (Red)
Reimplemented from Pol::Mobile::Character.
Definition at line 1001 of file repsys.cpp.
References Pol::Core::ExportedFunction::call_long(), CHAR_HILITE_ATTACKABLE, CHAR_HILITE_INNOCENT, CHAR_HILITE_INVUL, CHAR_HILITE_MURDERER, Pol::Core::NpcTemplate::EVIL, Pol::Core::NpcTemplate::GOOD, Pol::Core::RepSys_Cfg::HighLightColor, Pol::Core::RepSystem::hilite_color_idx(), Pol::Core::RepSys_Cfg::Hooks, Pol::Mobile::Character::make_ref(), Pol::Core::NpcTemplate::NEUTRAL, Pol::Core::SettingsManager::repsys_cfg, and Pol::Core::settingsManager.
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 748 of file npc.cpp.
References Pol::Core::UOExecutor::area_size, Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_GONE_CRIMINAL, ex, Pol::Core::inrangex(), Pol::Mobile::Character::is_visible_to_me(), Pol::Core::UOExecutor::os_module, Pol::Core::settingsManager, and Pol::Module::OSExecutorModule::signal_event().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 735 of file npc.cpp.
References Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_DISENGAGED, ex, Pol::Core::UOExecutor::os_module, and Pol::Module::OSExecutorModule::signal_event().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 722 of file npc.cpp.
References Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_ENGAGED, ex, Pol::Core::UOExecutor::os_module, and Pol::Module::OSExecutorModule::signal_event().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 779 of file npc.cpp.
References Pol::Core::UOExecutor::area_size, Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_ENTEREDAREA, ex, Pol::Mobile::Character::is_visible_to_me(), Pol::Core::UOExecutor::os_module, Pol::Core::pol_distance(), Pol::Core::settingsManager, and Pol::Module::OSExecutorModule::signal_event().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 850 of file npc.cpp.
References Pol::Core::UOExecutor::area_size, Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_ENTEREDAREA, Pol::Core::EVID_LEFTAREA, ex, Pol::Mobile::Character::is_visible_to_me(), Pol::Mobile::Character::lastx, Pol::Mobile::Character::lasty, Pol::Core::UOExecutor::os_module, passert, Pol::Core::settingsManager, Pol::Module::OSExecutorModule::signal_event(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 763 of file npc.cpp.
References Pol::Core::UOExecutor::area_size, Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_LEFTAREA, ex, Pol::Mobile::Character::is_visible_to_me(), Pol::Core::UOExecutor::os_module, Pol::Core::pol_distance(), Pol::Core::settingsManager, and Pol::Module::OSExecutorModule::signal_event().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 796 of file npc.cpp.
References Pol::Core::UOExecutor::area_size, Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_ENTEREDAREA, Pol::Core::EVID_LEFTAREA, Pol::Core::EVID_OPPONENT_MOVED, ex, Pol::Mobile::Character::is_visible_to_me(), Pol::Mobile::Character::lastx, Pol::Mobile::Character::lasty, Pol::Mobile::Character::opponent_, Pol::Core::UOExecutor::os_module, passert, Pol::Core::settingsManager, Pol::Module::OSExecutorModule::signal_event(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 973 of file npc.cpp.
References Pol::Core::gamestate, Pol::Core::NpcTemplate::intrinsic_weapon, template_, and Pol::Core::GameState::wrestling_weapon.
|
private |
Definition at line 395 of file npc.cpp.
References Pol::Core::ValueModPack::addToValue(), Pol::Core::Dice::load(), Pol::Core::ValueModPack::mod, npc_ar_, Pol::Clib::ConfigElem::remove_prop(), and Pol::Core::Dice::roll().
Referenced by readNpcProperties().
|
inline |
Definition at line 265 of file npc.h.
Referenced by npc_path_blocked(), Pol::Mobile::Character::repsys_on_attack(), Pol::Mobile::Character::repsys_on_damage(), and Pol::Mobile::Character::repsys_on_help().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 1042 of file repsys.cpp.
References Pol::Core::RepSys_Cfg::Attackable, Pol::Core::ExportedFunction::call_long(), Pol::Core::RepSys_Cfg::Criminal, Pol::Core::NpcTemplate::EVIL, Pol::Core::NpcTemplate::GOOD, Pol::Core::RepSys_Cfg::Hooks, Pol::Core::RepSys_Cfg::Innocent, Pol::Mobile::Character::make_ref(), Pol::Core::RepSys_Cfg::Murderer, Pol::Core::RepSystem::name_color(), Pol::Core::RepSys_Cfg::NameColor, Pol::Core::RepSys_Cfg::NameColoring, Pol::Core::NpcTemplate::NEUTRAL, Pol::Core::SettingsManager::repsys_cfg, and Pol::Core::settingsManager.
bool Pol::Mobile::NPC::no_drop_exception | ( | ) | const |
Definition at line 1058 of file npc.cpp.
References Pol::Core::UObject::flags_, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), and Pol::Core::NO_DROP_EXCEPTION.
Referenced by Pol::Core::drop_item_on_mobile(), printProperties(), and readNpcProperties().
void Pol::Mobile::NPC::no_drop_exception | ( | bool | newvalue | ) |
bool Pol::Mobile::NPC::npc_path_blocked | ( | Core::UFACING | dir | ) | const |
Definition at line 207 of file npc.cpp.
References Pol::Mobile::Character::can_freemove(), Pol::Core::Zone::characters, Pol::Mobile::Character::dead(), Pol::Mobile::Character::is_visible_to_me(), master(), Pol::Core::move_delta, Pol::Core::Zone::npcs, Pol::Core::ULWObject::realm, Pol::Core::settingsManager, Pol::Core::ULWObject::x, Pol::Core::MoveDelta::xmove, Pol::Core::ULWObject::y, Pol::Core::MoveDelta::ymove, Pol::Core::ULWObject::z, Pol::Realms::Realm::zone, and Pol::Core::zone_convert_clip().
Referenced by could_move().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 568 of file npc.cpp.
References Pol::Core::ClrCharacterWorldPosition(), destroy(), ex, Pol::Clib::FileExists(), Pol::Module::OSExecutorModule::in_debugger_holdlist(), Pol::Realms::NpcDeath, Pol::Core::UOExecutor::os_module, Pol::Module::OSExecutorModule::revive(), Pol::Module::OSExecutorModule::revive_debugged(), Pol::Core::send_remove_character_to_nearby(), Pol::Bscript::Executor::seterror(), Pol::Core::UObject::setprop(), Pol::Core::start_script(), and template_name.
Definition at line 654 of file npc.cpp.
References Pol::Mobile::Character::deafened(), Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_GHOST_SPEECH, ex, Pol::Core::inrangex(), Pol::Mobile::Character::is_visible_to_me(), Pol::Core::UOExecutor::os_module, Pol::Core::settingsManager, Pol::Module::OSExecutorModule::signal_event(), Pol::Core::UOExecutor::speech_size, and Pol::Core::TextTypeToString().
void Pol::Mobile::NPC::on_ghost_pc_spoke | ( | Character * | src_chr, |
const char * | speech, | ||
u8 | texttype, | ||
const u16 * | wspeech, | ||
const char | lang[4], | ||
Bscript::ObjArray * | speechtokens = nullptr |
||
) |
Definition at line 695 of file npc.cpp.
References Pol::Mobile::Character::deafened(), Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_GHOST_SPEECH, Pol::Core::EVID_TOKEN_GHOST_SPOKE, ex, Pol::Core::inrangex(), Pol::Mobile::Character::is_visible_to_me(), Pol::Core::UOExecutor::os_module, Pol::Core::settingsManager, Pol::Module::OSExecutorModule::signal_event(), Pol::Core::UOExecutor::speech_size, and Pol::Core::TextTypeToString().
Definition at line 632 of file npc.cpp.
References Pol::Mobile::Character::deafened(), Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_SPOKE, ex, Pol::Core::inrangex(), Pol::Mobile::Character::is_visible_to_me(), Pol::Core::UOExecutor::os_module, Pol::Core::settingsManager, Pol::Module::OSExecutorModule::signal_event(), Pol::Core::UOExecutor::speech_size, and Pol::Core::TextTypeToString().
void Pol::Mobile::NPC::on_pc_spoke | ( | Character * | src_chr, |
const char * | speech, | ||
u8 | texttype, | ||
const u16 * | wspeech, | ||
const char | lang[4], | ||
Bscript::ObjArray * | speechtokens = nullptr |
||
) |
Definition at line 670 of file npc.cpp.
References Pol::Mobile::Character::deafened(), Pol::Core::UOExecutor::eventmask, Pol::Core::EVID_SPOKE, Pol::Core::EVID_TOKEN_SPOKE, ex, Pol::Core::inrangex(), Pol::Mobile::Character::is_visible_to_me(), Pol::Core::UOExecutor::os_module, Pol::Core::settingsManager, Pol::Module::OSExecutorModule::signal_event(), Pol::Core::UOExecutor::speech_size, and Pol::Core::TextTypeToString().
|
protectedvirtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 325 of file npc.cpp.
References anchor, Pol::Mobile::Anchor::dstart, Pol::Mobile::Anchor::enabled, pf_endl, Pol::Mobile::Character::printDebugProperties(), Pol::Mobile::Anchor::psub, Pol::Mobile::Anchor::x, and Pol::Mobile::Anchor::y.
|
protectedvirtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 255 of file npc.cpp.
References classname(), pf_endl, printProperties(), and template_name.
Referenced by printSelfOn().
|
protectedvirtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 270 of file npc.cpp.
References Pol::Mobile::Character::dexterity(), master_, no_drop_exception(), npc_ar_, pf_endl, Pol::Mobile::Character::printProperties(), Pol::Mobile::Character::registered_house, run_speed, script, and use_adjustments().
Referenced by printOn().
|
protectedvirtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 265 of file npc.cpp.
References printOn().
|
private |
Definition at line 511 of file npc.cpp.
References Pol::Mobile::Character::attribute(), Pol::Mobile::ATTRIBUTE_MAX_BASE, Pol::Mobile::AttributeValue::base(), Pol::Mobile::Attribute::FindAttribute(), Pol::Core::Dice::load(), Pol::Mobile::Attribute::next, Pol::Clib::ConfigElem::remove_prop(), Pol::Core::Dice::roll(), and Pol::Clib::ConfigElem::throw_error().
Referenced by readPropertiesForNewNPC().
|
private |
Definition at line 336 of file npc.cpp.
References Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::change(), Pol::Items::create_intrinsic_shield_from_npctemplate(), Pol::Items::create_intrinsic_weapon_from_npctemplate(), damaged_sound, Pol::Core::DEFAULT_TEXT_COLOR, Pol::Core::DEFAULT_TEXT_FONT, Pol::Mobile::Character::dexterity(), Pol::Items::find_intrinsic_equipment(), Pol::Core::UObject::getprop(), Pol::Core::LAYER_HAND1, Pol::Core::LAYER_HAND2, loadEquipablePropertiesNPC(), master_, Pol::Mobile::Character::mob_flags_, no_drop_exception(), Pol::Core::NpcTemplate::pkg, Pol::Mobile::Character::registered_house, Pol::Clib::ConfigElem::remove_bool(), Pol::Clib::ConfigElem::remove_prop(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_ulong(), Pol::Clib::ConfigElem::remove_ushort(), Pol::Clib::ConfigElemBase::rest(), run_speed, Pol::Core::UObject::saveonexit(), script, Pol::Mobile::Character::shield, start_script(), Pol::Core::system_find_mobile(), template_, template_name, Pol::Mobile::USE_ADJUSTMENTS, and Pol::Mobile::Character::weapon.
Referenced by readProperties(), and readPropertiesForNewNPC().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 492 of file npc.cpp.
References Pol::Core::UObject::getprop(), readNpcProperties(), Pol::Mobile::Character::readProperties(), Pol::Clib::ConfigElemBase::rest(), and template_name.
void Pol::Mobile::NPC::readPropertiesForNewNPC | ( | Clib::ConfigElem & | elem | ) |
Definition at line 540 of file npc.cpp.
References Pol::Mobile::Character::calc_vital_stuff(), Pol::Mobile::Character::readCommonProperties(), readNewNpcAttributes(), readNpcProperties(), and Pol::Mobile::Character::set_vitals_to_maximum().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 981 of file npc.cpp.
References Pol::Mobile::Character::ar_, Pol::Mobile::Character::armor_, Pol::Core::GameState::armorzones, Pol::Core::gamestate, npc_ar_, Pol::Mobile::Character::refresh_ar(), and resetEquipablePropertiesNPC().
|
virtual |
[13.2] NPC (MA) Attacks Mobile (MB) If MA has a Master (Amy), Apply 'Player Attacks Mobile' rules[->13.1] for Amy vs MB Else Exit with no (RepSystem) effect.
Reimplemented from Pol::Mobile::Character.
Definition at line 844 of file repsys.cpp.
References Pol::Mobile::Character::make_ref(), and Pol::Core::settingsManager.
|
virtual |
[14.2] NPC (MA) Damages Mobile (MB) If MA has a Master (Amy), Apply 'Player Damages Mobile' rules[->14.1] for Amy vs MB Else Exit with no (RepSystem) effect.
Reimplemented from Pol::Mobile::Character.
Definition at line 906 of file repsys.cpp.
References Pol::Mobile::Character::make_ref(), and Pol::Core::settingsManager.
|
virtual |
[15.2] NPC (MA) Helps Mobile (MB) If MA has a Master (Amy), Apply 'Player Helps Mobile' rules[->15.1] for Amy helps MB Else Exit with no (RepSystem) effect.
Reimplemented from Pol::Mobile::Character.
Definition at line 967 of file repsys.cpp.
References Pol::Mobile::Character::make_ref(), and Pol::Core::settingsManager.
|
private |
Definition at line 1004 of file npc.cpp.
Referenced by refresh_ar().
void Pol::Mobile::NPC::restart_script | ( | ) |
Definition at line 551 of file npc.cpp.
References ex, Pol::Module::OSExecutorModule::in_debugger_holdlist(), Pol::Core::UOExecutor::os_module, Pol::Module::OSExecutorModule::revive(), Pol::Module::OSExecutorModule::revive_debugged(), script, Pol::Bscript::Executor::seterror(), and start_script().
Referenced by Pol::Module::UOExecutorModule::mf_RestartScript().
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 4632 of file uoscrobj.cpp.
References Pol::Core::Multi, and Pol::Core::POLCLASS_NPC.
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 3252 of file uoscrobj.cpp.
References Pol::Bscript::getKnownObjMethod(), and Pol::Bscript::ObjMethod::id.
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 3221 of file uoscrobj.cpp.
References Pol::Core::getCharacterParam(), Pol::Bscript::MTH_SETMASTER, and Pol::Bscript::Executor::numParams().
bool Pol::Mobile::NPC::send_event | ( | Bscript::BObjectImp * | event | ) |
Definition at line 887 of file npc.cpp.
References ex, Pol::Core::UOExecutor::os_module, and Pol::Module::OSExecutorModule::signal_event().
Referenced by Pol::Module::buyhandler(), Pol::Mobile::PrivUpdater::disable_see_ghosts(), Pol::Mobile::PrivUpdater::disable_see_hidden(), Pol::Core::doubleclick(), Pol::Core::drop_item_on_mobile(), Pol::Mobile::PrivUpdater::enable_see_ghosts(), Pol::Mobile::PrivUpdater::enable_see_hidden(), Pol::Module::oldBuyHandler(), Pol::Module::oldSellHandler(), and Pol::Module::sellhandler().
Bscript::BObjectImp * Pol::Mobile::NPC::send_event_script | ( | Bscript::BObjectImp * | event | ) |
Definition at line 902 of file npc.cpp.
References ex, Pol::Core::UOExecutor::os_module, and Pol::Module::OSExecutorModule::signal_event().
Referenced by Pol::Module::UOExecutorModule::mf_SendEvent().
|
virtual |
id test
Reimplemented from Pol::Mobile::Character.
Definition at line 3212 of file uoscrobj.cpp.
References Pol::Bscript::getKnownObjMember(), and Pol::Bscript::ObjMember::id.
|
virtual |
id test
Reimplemented from Pol::Mobile::Character.
Definition at line 3175 of file uoscrobj.cpp.
References Pol::Bscript::getKnownObjMember(), and Pol::Bscript::ObjMember::id.
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 3184 of file uoscrobj.cpp.
References Pol::Bscript::MBR_NO_DROP_EXCEPTION, Pol::Bscript::MBR_RUN_SPEED, Pol::Bscript::MBR_SAVEONEXIT, Pol::Bscript::MBR_SPEECH_COLOR, Pol::Bscript::MBR_SPEECH_FONT, and Pol::Bscript::MBR_USE_ADJUSTMENTS.
|
virtual |
Reimplemented from Pol::Mobile::Character.
Definition at line 3161 of file uoscrobj.cpp.
References Pol::Bscript::MBR_SCRIPT.
void Pol::Mobile::NPC::start_script | ( | ) |
Definition at line 592 of file npc.cpp.
References Pol::Bscript::Executor::addModule(), Pol::Module::UOExecutorModule::attached_npc_, Pol::Core::create_script_executor(), ERROR_PRINT, ex, Pol::Core::find_script2(), ref_ptr< T >::get(), Pol::Core::UObject::name(), passert, Pol::Core::NpcTemplate::pkg, Pol::Core::schedule_executor(), script, Pol::Core::ULWObject::serial, Pol::Bscript::Executor::setProgram(), and template_.
Referenced by readNpcProperties(), and restart_script().
|
protected |
Definition at line 110 of file npc.cpp.
References ex, Pol::Module::OSExecutorModule::in_debugger_holdlist(), Pol::Core::UOExecutor::os_module, Pol::Module::OSExecutorModule::revive(), Pol::Module::OSExecutorModule::revive_debugged(), and Pol::Bscript::Executor::seterror().
Referenced by ~NPC().
std::string Pol::Mobile::NPC::templatename | ( | ) | const |
Definition at line 1068 of file npc.cpp.
References template_name.
bool Pol::Mobile::NPC::use_adjustments | ( | ) | const |
Definition at line 1048 of file npc.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::Character::mob_flags_, and Pol::Mobile::USE_ADJUSTMENTS.
Referenced by Pol::Module::NPCExecutorModule::move_self(), NPC(), and printProperties().
void Pol::Mobile::NPC::use_adjustments | ( | bool | newvalue | ) |
|
friend |
|
friend |
|
private |
Definition at line 240 of file npc.h.
Referenced by anchor_allows_move(), estimatedSize(), Pol::Module::NPCExecutorModule::mf_SetAnchor(), and printDebugProperties().
unsigned short Pol::Mobile::NPC::damaged_sound |
Definition at line 255 of file npc.h.
Referenced by get_damaged_sound(), and readNpcProperties().
|
protected |
Definition at line 250 of file npc.h.
Referenced by apply_raw_damage_hundredths(), can_accept_event(), inform_criminal(), inform_disengaged(), inform_engaged(), inform_enteredarea(), inform_imoved(), inform_leftarea(), inform_moved(), on_death(), on_ghost_pc_spoke(), on_pc_spoke(), restart_script(), send_event(), send_event_script(), start_script(), stop_scripts(), and Pol::Module::NPCExecutorModule::~NPCExecutorModule().
|
private |
Definition at line 261 of file npc.h.
Referenced by can_be_renamed_by(), printProperties(), and readNpcProperties().
|
private |
Definition at line 234 of file npc.h.
Referenced by armor_absorb_damage(), get_hitscript_params(), loadEquipablePropertiesNPC(), printProperties(), and refresh_ar().
unsigned short Pol::Mobile::NPC::run_speed |
Definition at line 237 of file npc.h.
Referenced by Pol::Module::NPCExecutorModule::move_self(), printProperties(), and readNpcProperties().
|
private |
Definition at line 247 of file npc.h.
Referenced by printProperties(), readNpcProperties(), restart_script(), and start_script().
|
private |
Definition at line 262 of file npc.h.
Referenced by intrinsic_weapon(), readNpcProperties(), and start_script().
|
protected |
Definition at line 258 of file npc.h.
Referenced by on_death(), printOn(), readNpcProperties(), readProperties(), and templatename().