Pol
Revision:cb584c9
|
Functions | |
bool | acct_check (Network::Client *client, int i) |
void | add_candidate (Mobile::Character *member, Mobile::Character *leader) |
void | add_common_exmods (Core::UOExecutor &ex) |
bool | add_item_to_stack (Network::Client *client, Items::Item *item, Items::Item *target_item) |
void | add_item_to_world (Items::Item *item) |
void | add_loaded_item (Items::Item *cont_item, Items::Item *item) |
void | add_multi_to_world (Multi::UMulti *multi) |
void | add_realm (const std::string &name, Realms::Realm *base) |
static void | add_task (ScheduledTask *task) |
unsigned int | base_to_raw (unsigned short base) |
void | broadcast (const char *text, unsigned short font, unsigned short color, unsigned short requiredCmdLevel) |
void | broadcast (const u16 *wtext, const char lang[4], unsigned short font, unsigned short color, unsigned short requiredCmdLevel) |
void | build_owncreate (const Character *chr, PktOut_78 *owncreate) |
void | build_sysmessage_cl (PktOut_C1 *msg, unsigned int cliloc_num, const u16 *arguments, unsigned short font, unsigned short color) |
void | build_sysmessage_cl_affix (PktOut_CC *msg, unsigned int cliloc_num, const char *affix, bool prepend, const u16 *arguments, unsigned short font, unsigned short color) |
void | calc_abs_timeout (struct timespec *ptimeout, unsigned int millis) |
polclock_t | calc_scheduler_clocksleft (polclock_t now) |
polclock_t | calc_script_clocksleft (polclock_t now) |
void | call_chr_scripts (Mobile::Character *chr, const std::string &root_script_ecl, const std::string &pkg_script_ecl, bool offline=false) |
void | call_ondelete_scripts (Mobile::Character *chr) |
bool | call_script (const ScriptDef &script, Bscript::BObjectImp *param0) |
bool | call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1) |
bool | call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2) |
bool | call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3) |
bool | call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4) |
bool | call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4, Bscript::BObjectImp *param5) |
bool | call_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4, Bscript::BObjectImp *param5, Bscript::BObjectImp *param6) |
Bscript::BObjectImp * | CallPropertyListMethod (PropertyList &proplist, const char *methodname, Bscript::Executor &ex, bool &changed) |
Bscript::BObjectImp * | CallPropertyListMethod_id (PropertyList &proplist, const int id, Bscript::Executor &ex, bool &changed) |
bool | can_delete_character (Mobile::Character *chr, int delete_by) |
bool | can_see_on_corpse (const Client *client, const Item *item) |
void | cancel_all_trades () |
void | cancel_trade (Mobile::Character *chr1) |
bool | CanUseSkill (Network::Client *client) |
void | catch_signals_thread (void) |
void | change_trade_status (Mobile::Character *chr, bool set) |
void | char_select (Network::Client *client, PKTIN_5D *msg) |
void | check_blocked (polclock_t *pclocksleft) |
void | check_character_integrity () |
void | check_config () |
bool | check_inactivity (Network::Client *client) |
void | check_incoming_data (void) |
bool | check_item_integrity () |
void | check_scheduled_tasks (polclock_t *clocksleft, bool *pactivity) |
void | check_scheduled_tasks2 (void) |
bool | check_single_zone_item_integrity (int, int, Realms::Realm *) |
bool | check_verdata (unsigned int file, unsigned int block, const Core::USTRUCT_VERSION *&vrec) |
void | checka (Clib::ConfigElem &elem, UoClientGeneral::Mapping &mapping, const char *tag) |
void | checkpoint (const char *msg, unsigned short minlvl) |
void | checkv (Clib::ConfigElem &elem, UoClientGeneral::Mapping &mapping, const char *tag) |
Character * | chr_from_wornitems (UContainer *wornitems) |
void | clean_resources () |
void | clean_skills () |
void | clean_spells () |
void | clean_vitals () |
void | clear_listen_points () |
void | clear_save_index () |
void | clear_script_profile_counters () |
void | clear_tiledata () |
bool | client_io_thread (Network::Client *client, bool login) |
void | ClientCreateChar (Network::Client *client, PKTIN_00 *msg) |
void | ClientCreateChar70160 (Network::Client *client, PKTIN_F8 *msg) |
void | ClientCreateCharKR (Network::Client *client, PKTIN_8D *msg) |
bool | clientHasCharacter (Client *c) |
void | ClrCharacterWorldPosition (Mobile::Character *chr, Realms::WorldChangeReason reason) |
void | ClrItemWorldPosition (Items::Item *item) |
void | combined_thread (void) |
bool | commit (const std::string &basename) |
bool | commit_incremental (const std::string &basename) |
void | commit_incremental_saves () |
void | config_web_server () |
void | console_thread (void) |
BOOL WINAPI | control_handler_SystemTray (DWORD dwCtrlType) |
u16 | convert_objtype_to_spellnum (u32 objtype, int school) |
bool | convertArrayToUC (Bscript::ObjArray *&in_text, u16 *out_wtext, size_t textlen, bool ConvToBE, bool nullterm) |
bool | convertUCtoArray (const u16 *in_wtext, Bscript::ObjArray *&out_text, size_t textlen, bool ConvFromBE) |
Items::Item * | copy_item (const Items::Item *src_item) |
void | CoreSetSysTrayToolTip (const std::string &text, Priority priority) |
void | count_resource_tiles () |
BObjectImp * | create_debug_context () |
void | create_dummy_data () |
UOExecutor * | create_full_script_executor () |
std::string | create_nametags (Mobile::Character *chr) |
const NpcTemplate & | create_npc_template (const Clib::ConfigElem &elem, const Plib::Package *pkg) |
UOExecutor * | create_script_executor () |
void | create_servers () |
void | create_starting_locations () |
void | create_stub_accounts () |
void | createchar2 (Accounts::Account *acct, unsigned index) |
void | CreateEmptyStoredConfigFile (const std::string &filename) |
Bscript::BObjectImp * | CreateStorageAreasImp () |
unsigned char | cvt_8to6 (char ch) |
void | debug_listen_thread (void) |
void | decay_items () |
void | decay_single_thread (void *arg) |
void | decay_single_zone () |
void | decay_single_zone (Realms::Realm *realm, unsigned gridx, unsigned gridy, unsigned &wx, unsigned &wy) |
[3] Decay Sweep Each 64x64 tile World Zone is checked for decay approximately once every 10 minutes More... | |
void | decay_thread (void *arg) |
void | decay_thread_shadow (void *arg) |
void | decay_worldzone (unsigned wx, unsigned wy, Realms::Realm *realm) |
[1] Item Decay Criteria An Item is allowed to decay if ALL of the following are true: More... | |
std::string | decode_base64 (const std::string &b64s) |
bool | decode_page (const std::string &ipage, Plib::Package **ppkg, std::string *pfilename, std::string *ppagetype, std::string *redirect_to) |
void | defer_item_insertion (Items::Item *item, pol_serial_t container_serial) |
bool | defined_realm (const std::string &name) |
void | deinit_ipc_vars () |
template<class T > | |
void | Delete (T *p) |
void | delete_character (Accounts::Account *acct, Mobile::Character *chr, int charidx) |
void | deregister_from_speech_events (UOExecutor *uoexec) |
void | deschedule_executor (UOExecutor *ex) |
void | destroy_item (Item *item) |
BOOL CALLBACK | DialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
void | disband_party (u32 leader) |
void | display_leftover_objects () |
int | display_orphan (UObject *o) |
void | display_reftypes () |
void | display_unreaped_orphan_instances () |
void | do_cast (Network::Client *client, u16 spellid) |
bool | do_open_trade_window (Network::Client *client, Items::Item *item, Mobile::Character *dropon) |
bool | do_place_item_in_secure_trade_container (Network::Client *client, Items::Item *item, UContainer *cont, Mobile::Character *dropon, u16 x, u16 y, u8 move_type) |
void | doubleclick (Network::Client *client, PKTIN_06 *msg) |
void | drop_item (Network::Client *client, PKTIN_08_V1 *msg) |
bool | drop_item_on_ground (Network::Client *client, Items::Item *item, u16 x, u16 y, s8 z) |
bool | drop_item_on_mobile (Network::Client *client, Items::Item *item, u32 target_serial, u8 slotIndex) |
bool | drop_item_on_object (Network::Client *client, Items::Item *item, u32 target_serial, u8 slotIndex) |
void | drop_item_v2 (Network::Client *client, PKTIN_08_V2 *msg) |
polclock_t | earliest_timer (polclock_t timer1_until, polclock_t timer2_until) |
std::string | elapsed (clock_t start, clock_t end) |
Bscript::BObjectImp * | equip_from_template (Mobile::Character *chr, const char *template_name) |
void | equip_item (Network::Client *client, PKTIN_13 *msg) |
void | equip_loaded_item (Mobile::Character *chr, Items::Item *item) |
void | ext_stats_in (Client *client, PKTBI_BF *msg) |
std::string | extractkey (const std::string &istr) |
Mobile::Character * | find_character (u32 serial) |
CmdLevel * | find_cmdlevel (const char *name) |
Items::Item * | find_existing_item (u32 objtype, u16 x, u16 y, s8 z, Realms::Realm *realm) |
UContainer * | find_giveitem_container (Items::Item *item_to_add, u8 slotIndex) |
UContainer * | find_legal_container (const Character *chr, u32 serial) |
Item * | find_legal_item (const Character *chr, u32 serial, bool *additlegal, bool *isRemoteContainer) |
Items::Item * | find_legal_singleclick_item (Mobile::Character *chr, u32 serial) |
static void | find_missing_char_in_zone (Mobile::Character *chr, Realms::WorldChangeReason reason) |
const NpcTemplate & | find_npc_template (const Clib::ConfigElem &elem) |
Realms::Realm * | find_realm (const std::string &name) |
ResourceDef * | find_resource_def (const std::string &rname) |
ref_ptr< Bscript::EScriptProgram > | find_script (const std::string &name, bool complain_if_not_found, bool cache_script) |
ref_ptr< Bscript::EScriptProgram > | find_script2 (const ScriptDef &script, bool complain_if_not_found, bool cache_script) |
Items::Item * | find_toplevel_item (u32 serial) |
UObject * | find_toplevel_object (u32 serial) |
bool | find_uoexec (unsigned int pid, UOExecutor **pp_uoexec) |
Items::Item * | find_walkon_item (ItemsVector &ivec, short z) |
CmdLevel * | FindCmdLevelByAlias (const std::string &str) |
ConfigFileRef | FindConfigFile (const std::string &filename, const std::string &allpkgbase) |
bool | FindEquipTemplate (const char *template_name, Clib::ConfigElem &elem) |
ExportedFunction * | FindExportedFunction (Clib::ConfigElem &elem, const Plib::Package *pkg, const std::string &descriptor, unsigned nargs, bool complain_if_missing) |
ExportScript * | FindExportScript (const ScriptDef &sd) |
bool | FindNpcTemplate (const char *template_name, Clib::ConfigElem &elem) |
bool | FindNpcTemplate (const char *template_name, Clib::ConfigFile &cf, Clib::ConfigElem &elem) |
bool | findstatic (unsigned short x, unsigned short y, unsigned short graphic) |
Vital * | FindVital (const std::string &str) |
Vital * | FindVital (unsigned vitalid) |
unsigned char | flags_from_tileflags (unsigned int uoflags) |
bool | flags_standable (unsigned int flags) |
bool | flags_swimmable (unsigned int flags) |
std::string | format_description (unsigned int polflags, const std::string &descdef, unsigned short amount, const std::string suffix) |
std::string | full_scriptname (const std::string &spec, const Plib::Package *pkg, const char *mainpfx) |
u16 | Get12BitNumber (u8 *thearray, u16 theindex) |
std::string | get_fileline (EScriptProgram *prog, int filenum, int linenum) |
Bscript::BObjectImp * | get_harvest_difficulty (const char *resource, xcoord x, ycoord y, Realms::Realm *realm, unsigned short marker) |
void | get_item (Network::Client *client, PKTIN_07 *msg) |
int | get_mobile_count () |
std::string | get_page_filename (const std::string &page) |
std::string | get_pagetype (const std::string &page) |
Bscript::BObjectImp * | get_region_string (const char *resource, xcoord x, ycoord y, Realms::Realm *realm, const std::string &propname) |
unsigned | get_save_index (pol_serial_t serial) |
bool | get_script_page_filename (const std::string &page, ScriptDef &sd) |
std::string | get_textcmd_help (Mobile::Character *chr, const char *cmd) |
int | get_toplevel_item_count () |
bool | getAttributeParam (Executor &exec, unsigned param, const Mobile::Attribute *&attr) |
bool | getCharacterOrClientParam (Executor &exec, unsigned param, Mobile::Character *&chrptr, Network::Client *&clientptr) |
bool | getCharacterParam (Bscript::Executor &exec, unsigned param, Mobile::Character *&chrptr) |
std::string | getcmdstr (char ch) |
Bscript::ObjArray * | GetCommandsInPackage (Plib::Package *m_pkg, int cmdlvl_num) |
u32 | GetCurrentCharSerialNumber (void) |
u32 | GetCurrentItemSerialNumber (void) |
polclock_base_type | getCurrentPolClockSeconds () |
BObjectImp * | GetGlobals (const UOExecutor *uoexec) |
bool | getItemParam (Executor &exec, unsigned param, Items::Item *&itemptr) |
Bscript::BObjectImp * | GetListenPoints () |
void | getmapinfo (unsigned short x, unsigned short y, short *z, USTRUCT_MAPINFO *mi) |
bool | getMultiParam (Executor &exec, unsigned param, Multi::UMulti *&multiptr) |
u32 | GetNewItemSerialNumber (void) |
u32 | GetNextSerialNumber (void) |
int | GetNextUTF8 (u8 *bytemsg, int i, u16 &unicodeChar) |
bool | getObjtypeParam (Executor &exec, unsigned param, unsigned int &objtype) |
bool | getObjtypeParam (Executor &exec, unsigned param, const Items::ItemDesc *&itemdesc_out) |
bool | getSkillIdParam (Executor &exec, unsigned param, USKILLID &skillid) |
bool | getUBoatParam (Executor &exec, unsigned param, Multi::UBoat *&boatptr) |
bool | getUObjectParam (Executor &exec, unsigned param, UObject *&objptr) |
const UOSkill & | GetUOSkill (unsigned skillid) |
bool | getVitalParam (Executor &exec, unsigned param, const Vital *&vital) |
Zone & | getzone (unsigned short x, unsigned short y, Realms::Realm *realm) |
bool | groundheight (unsigned short x, unsigned short y, short *z) |
void | handle_A4 (Network::Client *, PKTIN_A4 *) |
void | handle_accept_invite (Network::Client *client, PKTBI_BF *msg) |
void | handle_action (Network::Client *client, PKTIN_12 *cmd) |
void | handle_add (Network::Client *client, PKTBI_BF *msg) |
void | handle_add_member_cursor (Mobile::Character *chr, PKTBI_6C *msgin) |
void | handle_allnames (Client *client, PKTBI_98_IN *msg) |
void | handle_aos_commands (Client *client, PKTBI_D7 *msg) |
void | handle_bulletin_boards (Client *client, PKTBI_71 *) |
void | handle_cast_spell (Network::Client *client, PKTIN_12 *msg) |
void | handle_char_profile_request (Client *client, PKTBI_B8_IN *msg) |
void | handle_client_version (Client *client, PKTBI_BD *msg) |
void | handle_D9 (Network::Client *client, PKTIN_D9 *msg) |
void | handle_decline_invite (Network::Client *client, PKTBI_BF *msg) |
void | handle_delete_character (Network::Client *client, PKTIN_83 *msg) |
void | handle_e1_clienttype (Client *client, PKTIN_E1 *msg) |
void | handle_ef_seed (Client *client, PKTIN_EF *msg) |
void | handle_get_tip (Network::Client *client, PKTIN_A7 *msg) |
void | handle_help (Network::Client *client, PKTIN_9B *) |
void | handle_humongous_packet (Network::Client *client, unsigned int reported_size) |
void | handle_HUP (int) |
void | handle_ident_cursor (Mobile::Character *chr, PKTBI_6C *msgin) |
void | handle_keep_alive (Network::Client *client, PKTBI_73 *msg) |
void | handle_loot_perm (Network::Client *client, PKTBI_BF *msg) |
void | handle_map_pin (Network::Client *client, PKTBI_56 *msg) |
void | handle_member_msg (Network::Client *client, PKTBI_BF *msg) |
void | handle_menu_selection (Network::Client *client, PKTIN_7D *msg) |
void | handle_mode_set (Client *client, PKTBI_72 *msg) |
void | handle_msg_B5 (Client *client, PKTIN_B5 *) |
void | handle_msg_BB (Client *client, PKTBI_BB *) |
void | handle_msg_BF (Client *client, PKTBI_BF *msg) |
void | handle_open_spellbook (Network::Client *client, PKTIN_12 *msg) |
void | handle_party_msg (Network::Client *client, PKTBI_BF *msg) |
void | handle_processed_speech (Network::Client *client, char *textbuf, int textbuflen, char firstchar, u8 type, u16 color, u16 font) |
void | handle_prompt (Network::Client *client, PKTBI_9A *msg) |
void | handle_remove (Network::Client *client, PKTBI_BF *msg) |
void | handle_remove_member_cursor (Mobile::Character *chr, PKTBI_6C *msgin) |
void | handle_rename_char (Client *client, PKTIN_75 *msg) |
void | handle_request_tooltip (Network::Client *client, PKTIN_B6 *msgin) |
void | handle_resync_request (Network::Client *client, PKTBI_22_SYNC *msg) |
void | handle_se_object_list (Client *client, PKTBI_D6_IN *msgin) |
void | handle_secure_trade_msg (Network::Client *client, PKTBI_6F *msg) |
void | handle_SIGUSR1 (int) |
void | handle_singleclick (Network::Client *client, PKTIN_09 *msg) |
void | handle_skill_lock (Network::Client *client, PKTBI_3A_LOCKS *msg) |
void | handle_target_cursor (Network::Client *client, PKTBI_6C *msg) |
void | handle_undefined_packet (Network::Client *client) |
void | handle_unicode_prompt (Client *client, Core::PKTBI_C2 *msg) |
void | handle_unknown_C4 (Client *client, PKTOUT_C4 *) |
void | handle_unknown_packet (Client *client) |
void | handle_update_range_change (Client *client, PKTBI_C8 *) |
void | handle_use_skill (Network::Client *client, PKTIN_12 *msg) |
void | handle_walk (Network::Client *client, PKTIN_02 *msg02) |
bool | hands_are_free (Mobile::Character *chr) |
Bscript::BObjectImp * | harvest_resource (const char *resource, xcoord x, ycoord y, Realms::Realm *realm, int b, int n) |
void | hook (ExportScript *shs, const std::string &hookname, const std::string &exfuncname) |
std::string | http_decodestr (const std::string &s) |
void | http_forbidden (Clib::Socket &sck) |
void | http_forbidden (Clib::Socket &sck, const std::string &filename) |
void | http_func (SOCKET client_socket) |
void | http_not_authorized (Clib::Socket &sck, const std::string &) |
void | http_not_found (Clib::Socket &sck, const std::string &filename) |
bool | http_readline (Clib::Socket &sck, std::string &s) |
void | http_redirect (Clib::Socket &sck, const std::string &new_url) |
void | http_thread (void) |
void | http_writeline (Clib::Socket &sck, const std::string &s) |
void | implicit_package_cmds_cfg (Plib::Package *pkg) |
void | import (Clib::ConfigElem &elem) |
void | import_new_data () |
bool | in_say_range (const Character *c1, const Character *c2) |
bool | in_whisper_range (const Character *c1, const Character *c2) |
bool | in_yell_range (const Character *c1, const Character *c2) |
void | init_http_thread_support () |
void | init_ipc_vars () |
void | InitializeSystemTrayHandling () |
bool | inrange (const UObject *c1, unsigned short x, unsigned short y) |
bool | inrange (const Mobile::Character *c1, const Mobile::Character *c2) |
bool | inrange (const Mobile::Character *c1, const UObject *obj) |
bool | inrange (unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2) |
bool | inrangex (const Character *c1, const Character *c2, int maxdist) |
bool | inrangex (const UObject *c1, unsigned short x, unsigned short y, int maxdist) |
bool | inrangex_inline (const Mobile::Character *c1, const Mobile::Character *c2, int maxdist) |
bool | inrangex_inline (const UObject *c1, unsigned short x, unsigned short y, int maxdist) |
void | insert_deferred_items () |
void | install_null_handler (int sig) |
void | install_signal_handlers () |
void | invite_timeout (Mobile::Character *mem) |
void | invoke (Network::Client *client, const char *spellidstr) |
void | invoke (Network::Client *client, const u16 *wspellidstr) |
bool | is_a_parent (const Item *item, u32 serial) |
bool | IsCharacter (u32 serial) |
bool | IsItem (u32 serial) |
bool | iswater (u16 objtype) |
bool | knows_spell (Mobile::Character *chr, u16 spellid) |
void | KR_Verifier_Response (Network::Client *, PKTIN_E4 *) |
unsigned int | landtile_flags (unsigned short landtile) |
unsigned int | landtile_uoflags (unsigned short landtile) |
bool | legal_pagename (const std::string &page) |
int | lightlevel (unsigned short x, unsigned short y) |
void | list_crit_script (UOExecutor *uoexec) |
void | list_crit_scripts (const char *desc, const ExecList &ls) |
void | list_crit_scripts () |
void | list_script (UOExecutor *uoexec) |
void | list_scripts (const char *desc, const ExecList &ls) |
void | list_scripts () |
void | load_anim_xlate_cfg (bool) |
void | load_circle_data () |
void | load_cmdlevels () |
void | load_config (bool reload) |
void | load_data () |
void | load_general_entry (const Plib::Package *pkg, Clib::ConfigElem &elem) |
void | load_incremental_indexes () |
void | load_intrinsic_weapons () |
Creates the intrinsic wrestling weapon for PCs must be called at startup. More... | |
void | load_landtile_cfg () |
void | load_landtile_entry (const Plib::Package *, Clib::ConfigElem &elem) |
void | load_listener_entry (const Plib::Package *, Clib::ConfigElem &elem) |
void | load_mime_config (void) |
void | load_movecost (bool reload) |
void | load_npc_templates () |
void | load_package_cmdlevels () |
void | load_party_cfg (bool reload) |
void | load_party_cfg_general (Clib::ConfigElem &elem) |
void | load_party_cfg_hooks (Clib::ConfigElem &elem) |
void | load_pol_static_files () |
void | load_protocol_entry (const Plib::Package *, Clib::ConfigElem &elem) |
bool | load_realms () |
void | load_repsys_cfg (bool reload) |
void | load_repsys_cfg_general (Clib::ConfigElem &elem) |
void | load_repsys_cfg_hooks (Clib::ConfigElem &elem) |
void | load_repsys_cfg_namecoloring (Clib::ConfigElem &elem) |
Reputation System. More... | |
void | load_resource_cfg () |
void | load_skill_entry (const Plib::Package *pkg, Clib::ConfigElem &elem) |
void | load_skill_scripts () |
void | load_spell_data () |
void | load_spells_cfg (const char *path, Plib::Package *pkg) |
void | load_stacking_cfg () |
void | load_system_hooks () |
void | load_tile_entry (const Plib::Package *, Clib::ConfigElem &elem) |
void | load_tiles_cfg () |
void | load_tips () |
void | load_uoclient_cfg () |
void | load_uoclient_entry (const Plib::Package *pkg, Clib::ConfigElem &elem) |
void | load_uoskills_cfg () |
void | load_vital_entry (const Plib::Package *pkg, Clib::ConfigElem &elem) |
void | load_vitals_cfg () |
ConfigFileRef | LoadTusScpFile (const std::string &filename) |
void | log_all_script_cycle_counts (bool clear_counters) |
void | login2 (Network::Client *client, PKTIN_91 *msg) |
void | login_complete (Client *c) |
void | loginserver_login (Network::Client *client, PKTIN_80 *msg) |
Bscript::BObjectImp * | make_boatref (Multi::UBoat *boat) |
Bscript::BObjectImp * | make_itemref (Items::Item *item) |
Bscript::BObjectImp * | make_mobileref (Mobile::Character *chr) |
bool | move_character_to (Mobile::Character *chr, unsigned short x, unsigned short y, short z, int flags, Realms::Realm *oldrealm) |
void | move_item (Item *item, UFACING facing) |
void | move_item (Item *item, unsigned short newx, unsigned short newy, signed char newz, Realms::Realm *oldrealm) |
void | move_multi_in_world (unsigned short oldx, unsigned short oldy, unsigned short newx, unsigned short newy, Multi::UMulti *multi, Realms::Realm *oldrealm) |
void | MoveCharacterWorldPosition (unsigned short oldx, unsigned short oldy, unsigned short newx, unsigned short newy, Mobile::Character *chr, Realms::Realm *oldrealm) |
unsigned short | movecost (const Mobile::Character *chr, int carry_perc, bool running, bool mounted) |
void | MoveItemWorldPosition (unsigned short oldx, unsigned short oldy, Items::Item *item, Realms::Realm *oldrealm) |
bool | multi_inrange (const Mobile::Character *c1, const Multi::UMulti *obj) |
bool | multi_inrange (unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2) |
bool | newstat_dont_add (std::vector< Plib::STATIC_ENTRY > &vec, USTRUCT_STATIC *pstat) |
static bool | nocast_here (Mobile::Character *chr) |
void | null_handler (int) |
void | on_loggoff_party (Mobile::Character *chr) |
void | on_loggon_party (Mobile::Character *chr) |
void | OnChatButton (Client *client) |
void | onetime_create_stubdata () |
void | OnGuildButton (Client *client) |
void | OnQuestButton (Client *client) |
FILE * | open_map_file (std::string name, int map_id) |
bool | open_trade_window (Network::Client *client, Items::Item *item, Mobile::Character *dropon) |
Bscript::BObjectImp * | open_trade_window (Network::Client *client, Mobile::Character *dropon) |
void | open_uo_data_files (void) |
FILE * | open_uo_file (const std::string &filename_part) |
bool | open_uopmap_file (const int mapid) |
Clib::StreamWriter & | operator<< (Clib::StreamWriter &writer, const UObject &obj) |
void | optimize_zones () |
std::ofstream | orphans_txt ("orphans.txt", std::ios::out|std::ios::trunc) |
void | party_cmd_handler (Client *client, PKTBI_BF *msg) |
void | pause_pol_clocks () |
void | pause_polclock () |
void | pause_poltime () |
bool | place_item (Network::Client *client, Items::Item *item, u32 target_serial, u16 x, u16 y, u8 slotIndex) |
bool | place_item_in_container (Network::Client *client, Items::Item *item, UContainer *cont, u16 x, u16 y, u8 slotIndex) |
bool | place_item_in_secure_trade_container (Network::Client *client, Items::Item *item, u16 x, u16 y) |
Bscript::BObjectImp * | place_item_in_secure_trade_container (Network::Client *client, Items::Item *item) |
void | play_lightning_bolt_effect (const UObject *center) |
void | play_moving_effect (const UObject *src, const UObject *dst, u16 effect, u8 speed, u8 loop, u8 explode) |
void | play_moving_effect2 (u16 xs, u16 ys, s8 zs, u16 xd, u16 yd, s8 zd, u16 effect, u8 speed, u8 loop, u8 explode, Realms::Realm *realm) |
void | play_moving_effect2_ex (u16 xs, u16 ys, s8 zs, u16 xd, u16 yd, s8 zd, Realms::Realm *realm, u16 effect, u8 speed, u8 duration, u32 hue, u32 render, u8 direction, u8 explode, u16 effect3d, u16 effect3dexplode, u16 effect3dsound) |
void | play_moving_effect_ex (const UObject *src, const UObject *dst, u16 effect, u8 speed, u8 duration, u32 hue, u32 render, u8 direction, u8 explode, u16 effect3d, u16 effect3dexplode, u16 effect3dsound) |
void | play_object_centered_effect (const UObject *center, u16 effect, u8 speed, u8 loop) |
void | play_object_centered_effect_ex (const UObject *center, u16 effect, u8 speed, u8 duration, u32 hue, u32 render, u8 layer, u16 effect3d) |
void | play_sound_effect (const UObject *center, u16 effect) |
void | play_sound_effect_private (const UObject *center, u16 effect, Character *forchr) |
void | play_sound_effect_xyz (u16 cx, u16 cy, s8 cz, u16 effect, Realms::Realm *realm) |
void | play_stationary_effect (u16 x, u16 y, s8 z, u16 effect, u8 speed, u8 loop, u8 explode, Realms::Realm *realm) |
void | play_stationary_effect_ex (u16 x, u16 y, s8 z, Realms::Realm *realm, u16 effect, u8 speed, u8 duration, u32 hue, u32 render, u16 effect3d) |
unsigned short | pol_distance (unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2) |
unsigned short | pol_distance (const Mobile::Character *c1, const UObject *obj) |
void | pol_sleep_ms (unsigned int millis) |
polclock_t | polclock () |
static std::atomic< polclock_base_type > | polclock_base (0) |
void | polclock_checkin () |
void | polsem_lock () |
void | polsem_unlock () |
polticks_t | polticks_t_to_ms (polticks_t ticks) |
time_t | poltime () |
static std::atomic< time_t > | poltime_base (0) |
static std::atomic< time_t > | poltime_paused_at (0) |
void | PrintAllocationData () |
bool | private_say_above (Character *chr, const UObject *obj, const char *text, unsigned short font, unsigned short color, unsigned int journal_print) |
bool | private_say_above (Character *chr, const UObject *obj, const u16 *wtext, const char lang[4], unsigned short font, unsigned short color, unsigned int journal_print) |
void | private_say_above_cl (Mobile::Character *chr, const UObject *obj, unsigned int cliloc_num, const u16 *arguments, unsigned short font, unsigned short color) |
void | private_say_above_cl_affix (Mobile::Character *chr, const UObject *obj, unsigned int cliloc_num, const char *affix, bool prepend, const u16 *arguments, unsigned short font, unsigned short color) |
bool | private_say_above_ex (Mobile::Character *chr, const UObject *obj, const char *text, unsigned short color) |
bool | process_command (Network::Client *client, const char *text, const u16 *wtext, const char *lang) |
bool | process_data (Network::Client *client) |
void | process_package_cmds_cfg (Plib::Package *pkg) |
bool | process_tildecommand (Network::Client *client, const char *textbuf) |
bool | process_tildecommand (Network::Client *client, const u16 *wtextbuf) |
unsigned short | raw_to_base (unsigned int raw) |
void | rawmapfullread () |
static signed char | rawmapinfo (unsigned short x, unsigned short y, USTRUCT_MAPINFO *gi) |
void | rawstaticfullread () |
void | read_character (Clib::ConfigElem &elem) |
int | read_data () |
void | read_extobj () |
gameclock_t | read_gameclock () |
Reads the current value of the game clock. More... | |
void | read_gameservers () |
void | read_global_data (Clib::ConfigElem &elem) |
void | read_global_item (Clib::ConfigElem &elem, int) |
void | read_guilds_dat () |
void | read_incremental_saves () |
Items::Item * | read_item (Clib::ConfigElem &elem) |
void | read_items_dat () |
void | read_justice_zones () |
static void | read_landtiledata () |
void | read_light_zones () |
void | read_map_difs () |
void | read_movecost (Clib::ConfigElem &elem, MovementCost &movecost) |
void | read_multi (Clib::ConfigElem &elem) |
void | read_multis_dat () |
void | read_music_zones () |
void | read_nocast_zones () |
void | read_npc (Clib::ConfigElem &elem) |
void | read_npc_templates () |
void | read_npc_templates (Plib::Package *pkg) |
void | read_npcequip_dat () |
void | read_npcs_dat () |
void | read_objects_dat () |
void | read_objinfo (u16 graphic, struct USTRUCT_TILE &objinfo) |
void | read_objinfo (u16 graphic, struct USTRUCT_TILE_HSA &objinfo) |
void | read_party_dat () |
void | read_pcequip_dat () |
void | read_pcs_dat () |
void | read_pol_dat () |
void | read_region_data (RegionGroupBase &grp, const char *preferred_filename, const char *other_filename, const char *tags_expected) |
void | read_region_data (Clib::ConfigElem &elem) |
void | read_resource_cfg (const char *resource) |
void | read_resources_dat () |
void | read_shadow_realms (Clib::ConfigElem &elem) |
void | read_stacking_cfg (Clib::ConfigFile &cf) |
void | read_starting_locations () |
void | read_static_diffs () |
void | read_storage_dat () |
void | read_system_vars (Clib::ConfigElem &elem) |
static void | read_tiledata () |
void | read_uo_data (void) |
static void | read_veridx () |
void | read_weather_zones () |
void | readallstatics (StaticList &vec, unsigned short x, unsigned short y) |
void | readlandtile (unsigned short tilenum, USTRUCT_LAND_TILE *landtile) |
void | readlandtile (unsigned short tilenum, USTRUCT_LAND_TILE_HSA *landtile) |
void | readstaticblock (std::vector< USTRUCT_STATIC > *ppst, int *pnum, unsigned short x, unsigned short y) |
void | readstatics (StaticList &vec, unsigned short x, unsigned short y) |
void | readstatics (StaticList &vec, unsigned short x, unsigned short y, unsigned int flags) |
void | readstatics2 (StaticList &vec, unsigned short x, unsigned short y) |
void | readtile (unsigned short tilenum, USTRUCT_TILE *tile) |
void | readtile (unsigned short tilenum, USTRUCT_TILE_HSA *tile) |
void | readwater () |
void | reap_thread (void) |
void | regen_resources () |
void | regen_stats () |
void | register_command (const char *cmd, TextCmdFunc f) |
void | register_command (const char *cmd, ParamTextCmdFunc f) |
void | register_deleted_serials () |
void | register_for_speech_events (UObject *obj, UOExecutor *uoexec, int range, int flags) |
void | register_guilds () |
void | register_party_members () |
void | register_spell (USpell *spell, unsigned short spellid) |
void | register_with_supporting_multi (Item *item) |
void | reload_configuration () |
void | remove_item_from_world (Items::Item *item) |
void | remove_multi_from_world (Multi::UMulti *multi) |
void | remove_objects_inrange (Network::Client *client) |
void | remove_realm (const std::string &name) |
void | rename_dat_files () |
void | report_weird_packet (Network::Client *client, const std::string &why) |
void | restart_all_clients () |
void | restart_pol_clocks () |
void | restart_polclock () |
void | restart_poltime () |
void | return_traded_items (Mobile::Character *chr) |
void | rndat (const std::string &basename) |
BObjectImp * | run_executor_to_completion (UOExecutor &ex, const ScriptDef &script) |
void | run_logon_script (Mobile::Character *chr) |
void | run_ready (void) |
void | run_reconnect_script (Mobile::Character *chr) |
bool | run_script_to_completion (const char *filename, Bscript::BObjectImp *parameter) |
bool | run_script_to_completion (const char *filename) |
Bscript::BObjectImp * | run_script_to_completion (const ScriptDef &script) |
Bscript::BObjectImp * | run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1) |
Bscript::BObjectImp * | run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2) |
Bscript::BObjectImp * | run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3) |
Bscript::BObjectImp * | run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4) |
Bscript::BObjectImp * | run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4, Bscript::BObjectImp *param5) |
Bscript::BObjectImp * | run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4, Bscript::BObjectImp *param5, Bscript::BObjectImp *param6) |
Bscript::BObjectImp * | run_script_to_completion (const ScriptDef &script, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3, Bscript::BObjectImp *param4, Bscript::BObjectImp *param5, Bscript::BObjectImp *param6, Bscript::BObjectImp *param7) |
bool | run_script_to_completion_worker (UOExecutor &ex, Bscript::EScriptProgram *prog) |
void | run_start_scripts () |
int | RunWindowsService (int argc, char **argv) |
void | safe_getmapinfo (unsigned short x, unsigned short y, short *z, USTRUCT_MAPINFO *mi) |
int | save_incremental (unsigned int &dirty, unsigned int &clean, long long &elapsed_ms) |
bool | say_above (const UObject *obj, const char *text, unsigned short font, unsigned short color, unsigned int journal_print) |
bool | say_above (const UObject *obj, const u16 *wtext, const char lang[4], unsigned short font, unsigned short color, unsigned int journal_print) |
void | say_above_cl (UObject *obj, unsigned int cliloc_num, const u16 *arguments, unsigned short font, unsigned short color) |
void | say_above_cl_affix (UObject *obj, unsigned int cliloc_num, const char *affix, bool prepend, const u16 *arguments, unsigned short font, unsigned short color) |
void | sayto_listening_points (Mobile::Character *speaker, const char *p_text, int, u8 texttype, const u16 *p_wtext, const char *p_lang, int p_wtextlen, Bscript::ObjArray *speechtokens) |
void | schedule_executor (UOExecutor *ex) |
bool | script_loaded (ScriptDef &sd) |
void | scripts_thread (void) |
static bool | seekto_newer_version (unsigned int file, unsigned int block) |
void | select_server (Network::Client *client, PKTIN_A0 *msg) |
void | send_action_to_inrange (const Mobile::Character *obj, UACTION action, unsigned short framecount=0x05, unsigned short repeatcount=0x01, DIRECTION_FLAG_OLD backward=FORWARD, REPEAT_FLAG_OLD repeatflag=NOREPEAT, unsigned char delay=0x01) |
void | send_attributes_normalized (Mobile::Character *chr, Mobile::Character *bob) |
void | send_binary (Clib::Socket &sck, const std::string &page, const std::string &filename, const std::string &content_type) |
void | send_buff_message (Character *chr, u16 icon, bool show, u16 duration, u32 cl_name, u32 cl_descr, std::vector< u32 > arguments) |
void | send_char_data (Client *client, Character *chr) |
void | send_char_if_newly_inrange (Mobile::Character *chr, Network::Client *client) |
void | send_client_char_data (Mobile::Character *chr, Network::Client *client) |
void | send_ClientTransmit_pulse () |
void | send_container_contents (Network::Client *client, const UContainer &cont) |
void | send_corpse (Client *client, const Item *item) |
void | send_corpse_contents (Client *client, const UCorpse *corpse) |
void | send_corpse_equip (Client *client, const UCorpse *corpse) |
void | send_corpse_equip_inrange (const Item *item) |
void | send_create_mobile_if_nearby_cansee (Client *client, const Character *chr) |
void | send_create_mobile_to_nearby_cansee (const Character *chr) |
void | send_damage (Character *attacker, Character *defender, u16 damage) |
void | send_death_message (Character *chr_died, Item *corpse) |
void | send_empty_party (Mobile::Character *chr) |
void | send_feature_enable (Client *client) |
void | send_fight_occuring (Client *client, Character *opponent) |
void | send_full_corpse (Client *client, const Item *item) |
void | send_full_statmsg (Network::Client *client, Mobile::Character *chr) |
void | send_goxyz (Client *client, const Character *chr) |
void | send_html (Clib::Socket &sck, const std::string &page, const std::string &filename) |
void | send_inrange_items (Network::Client *client) |
void | send_inrange_multis (Network::Client *client) |
void | send_invite (Mobile::Character *member, Mobile::Character *leader) |
void | send_invulhealthbar (Client *client, const Character *chr) |
void | send_item (Client *client, const Item *item) |
void | send_item_if_newly_inrange (Items::Item *item, Network::Client *client) |
void | send_item_move_failure (Network::Client *client, u8 reason) |
void | send_item_to_inrange (const Item *item) |
void | send_light (Client *client, int lightlevel) |
void | send_login_error (Network::Client *client, unsigned char reason) |
void | send_mana_level (Client *client) |
void | send_map_difs (Client *client) |
Sends number of maps used and number of map/static patches for each map. More... | |
bool | send_menu (Network::Client *client, Menu *menu) |
void | send_midi (Client *client, u16 midi) |
void | send_mode (Network::Client *client) |
void | send_move (Network::Client *client, const Mobile::Character *chr, Network::PktOut_77 *movebuffer) |
void | send_move (Client *client, const Character *chr) |
void | send_move_if_inrange2 (Mobile::Character *chr, Network::Client *client) |
void | send_move_mobile_to_nearby_cansee (const Character *chr) |
void | send_multi (Network::Client *client, const Multi::UMulti *multi) |
void | send_multi_if_newly_inrange (Multi::UMulti *multi, Network::Client *client) |
void | send_multi_to_inrange (const Multi::UMulti *multi) |
void | send_multis_newly_inrange (Multi::UMulti *multi, Network::Client *client) |
void | send_nametext (Client *client, const Character *chr, const std::string &str) |
void | send_new_subserver (Client *client) |
void | send_objdesc (Client *client, Item *item) |
void | send_object_cache (Network::Client *client, const UObject *obj) |
void | send_object_cache_to_inrange (const UObject *obj) |
void | send_objects_newly_inrange (Network::Client *client) |
void | send_objects_newly_inrange_on_boat (Network::Client *client, u32 serial) |
void | send_open_gump (Network::Client *client, const UContainer &cont) |
void | send_owncreate (Client *client, const Character *chr) |
void | send_owncreate (Client *client, const Character *chr, PktOut_78 *owncreate) |
void | send_paperdoll (Network::Client *client, Mobile::Character *chr) |
void | send_poisonhealthbar (Client *client, const Character *chr) |
void | send_prompt (Network::Client *client, u32 serial) |
void | send_pulse () |
void | send_put_in_container (Client *client, const Item *item) |
void | send_put_in_container_to_inrange (const Item *item) |
void | send_realm_change (Client *client, Realms::Realm *realm) |
void | send_remove (Network::Client &client, UObject &to_remove) |
void | send_remove_character (Client *client, const Character *chr) |
void | send_remove_character (Network::Client *client, const Mobile::Character *chr, Network::RemoveObjectPkt &pkt) |
void | send_remove_character_to_nearby (const Character *chr) |
void | send_remove_character_to_nearby_cansee (const Character *chr) |
void | send_remove_character_to_nearby_cantsee (const Character *chr) |
void | send_remove_object (Client *client, const UObject *object) |
void | send_remove_object (Client *client, const UObject *item, RemoveObjectPkt &pkt) |
void | send_remove_object_if_inrange (Client *client, const Item *item) |
void | send_remove_object_to_inrange (const UObject *centerObject) |
void | send_season_info (Client *client) |
void | send_short_statmsg (Network::Client *client, Mobile::Character *chr) |
void | send_skillmsg (Network::Client *client, const Mobile::Character *chr) |
void | send_spellbook_contents (Network::Client *client, Spellbook &spellbook) |
void | send_stamina_level (Client *client) |
void | send_start (Network::Client *client) |
void | send_startup (Network::Client *client) |
void | send_stat_locks (Network::Client *client, Mobile::Character *chr) |
void | send_sysmessage (Network::Client *client, const char *text, unsigned short font, unsigned short color) |
void | send_sysmessage (Network::Client *client, const u16 *wtext, const char lang[4], unsigned short font, unsigned short color) |
void | send_sysmessage (Network::Client *client, const std::string &text, unsigned short font, unsigned short color) |
void | send_sysmessage (Network::Client *client, const std::wstring &wtext, const char lang[4], unsigned short font, unsigned short color) |
void | send_sysmessage_cl (Client *client, unsigned int cliloc_num, const u16 *arguments, unsigned short font, unsigned short color) |
void | send_sysmessage_cl_affix (Client *client, unsigned int cliloc_num, const char *affix, bool prepend, const u16 *arguments, unsigned short font, unsigned short color) |
bool | send_tip (Network::Client *client, const char *tipname, unsigned short tipnum) |
bool | send_tip (Network::Client *client, const char *tipname) |
void | send_tip (Network::Client *client, const std::string &tiptext) |
void | send_trade_container (Network::Client *client, Mobile::Character *whos, UContainer *cont) |
void | send_trade_statuses (Mobile::Character *chr) |
void | send_unicode_prompt (Client *client, u32 serial) |
void | send_update_hits_to_inrange (Mobile::Character *chr) |
void | send_weather (Client *client, u8 type, u8 severity, u8 aux) |
void | send_wornitem (Client *client, const Character *chr, const Item *item) |
void | send_wornitem_to_inrange (const Character *chr, const Item *item) |
void | SendAOSTooltip (Network::Client *client, UObject *obj, bool vendor_content) |
void | sendCharProfile (Character *chr, Character *of_who, const char *title, const u16 *utext, const u16 *etext) |
void | SendUnicodeSpeech (Network::Client *client, PKTIN_AD *msgin, u16 *wtext, size_t wtextlen, char *ntext, size_t ntextlen, Bscript::ObjArray *speechtokens) |
bool | server_applies (Network::Client *client, int i) |
void | set_watch_vars () |
void | SetCharacterWorldPosition (Mobile::Character *chr, Realms::WorldChangeReason reason) |
void | SetCurrentCharSerialNumber (u32 serial) |
void | SetCurrentItemSerialNumber (u32 serial) |
void | SetItemWorldPosition (Items::Item *item) |
void | setrealm (Item *item, void *arg) |
void | setrealmif (Item *item, void *arg) |
void | SetRegionLightLevel (LightRegion *lightregion, int lightlevel) |
void | SetRegionWeatherLevel (WeatherRegion *weatherregion, unsigned type, unsigned severity, unsigned aux, int lightoverride) |
void | SetSysTrayPopupText (const char *text) |
void | setup_update_rpm (void) |
bool | should_switch_realm (size_t index, unsigned x, unsigned y, unsigned *gridx, unsigned *gridy) |
bool | should_write_data () |
void | show_repdata (Mobile::Character *looker, Mobile::Character *mob) |
void | ShutdownSystemTrayHandling () |
void | signal_catch_thread () |
void | sigpipe_handler (int x) |
void | singleclick (Network::Client *client, u32 serial) |
void | skillrequest (Network::Client *client, u32 serial) |
void | slurp (const char *filename, const char *tags, int sysfind_flags=0) |
void | SpeechHandler (Network::Client *client, PKTIN_03 *mymsg) |
void | sql_service_thread_stub () |
void | srequest (Network::Client *client, PKTIN_34 *msg) |
void | standheight (MOVEMODE movemode, StaticList &statics, unsigned short x, unsigned short y, short oldz, bool *result_out, short *newz_out) |
void | start_client_char (Network::Client *client) |
void | start_gameclock () |
The functions below deal with reading and updating the gameclock. The state is protected by a mutex. More... | |
bool | start_http_script (Clib::Socket &sck, const std::string &page, Plib::Package *pkg, const std::string &file_ecl, const std::string &query_string) |
void | start_http_server () |
void | start_packetlog (Mobile::Character *looker, Mobile::Character *mob) |
void | start_pol_clocks () |
void | start_polclock () |
void | start_poltime () |
void | start_script (const char *filename, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1) |
Module::UOExecutorModule * | start_script (const ScriptDef &script, Bscript::BObjectImp *param) |
Module::UOExecutorModule * | start_script (const ScriptDef &script, Bscript::BObjectImp *param0, Bscript::BObjectImp *param1, Bscript::BObjectImp *param2, Bscript::BObjectImp *param3) |
Module::UOExecutorModule * | start_script (ref_ptr< Bscript::EScriptProgram > program, Bscript::BObjectImp *param) |
void | start_sql_service () |
void | start_tasks () |
bool | start_textcmd_script (Network::Client *client, const char *text, const u16 *wtext=nullptr, const char *lang=nullptr) |
void | start_threads () |
void | start_uo_client_listeners (void) |
bool | StartSkillScript (Network::Client *client, const Mobile::Attribute *attrib) |
void | staticsmax () |
void | statrequest (Network::Client *client, u32 serial) |
void | step_scripts (polclock_t *clocksleft, bool *pactivity) |
void | stop_gameclock () |
Stops the game clock and saves the current value into "gameclock". More... | |
void | stop_packetlog (Mobile::Character *looker, Mobile::Character *mob) |
UACTION | str_to_action (Clib::ConfigElem &elem, const std::string &str) |
void | subtract_amount_from_item (Item *item, unsigned short amount) |
Items::Item * | system_find_item (u32 serial) |
Mobile::Character * | system_find_mobile (u32 serial) |
Multi::UMulti * | system_find_multi (u32 serial) |
UObject * | system_find_object (u32 serial) |
void | SystemTrayDialogThread (void *) |
void | tasks_thread (void) |
void | tasks_thread_sleep (unsigned int millis) |
void | test_decode (const char *page, bool result_expected, Plib::Package *pkg_expected, const char *filename_expected, const char *pagetype_expected, const char *redirect_to_expected) |
void | test_decode () |
void | textcmd_constat (Network::Client *client) |
void | textcmd_flag1 (Network::Client *client, const char *text) |
void | textcmd_flag2 (Network::Client *client, const char *text) |
void | textcmd_heapcheck (Network::Client *) |
void | textcmd_ident (Network::Client *client) |
void | textcmd_integ_chr (Network::Client *) |
void | textcmd_integ_item (Network::Client *client) |
void | textcmd_list_crit_scripts (Network::Client *) |
void | textcmd_list_scripts (Network::Client *) |
void | textcmd_listarmor (Network::Client *client) |
void | textcmd_log_profile (Network::Client *client) |
void | textcmd_log_profile_clear (Network::Client *client) |
void | textcmd_orphans (Network::Client *client) |
void | textcmd_procs (Network::Client *client) |
void | textcmd_repdata (Network::Client *client) |
void | textcmd_resendchars (Network::Client *client) |
void | textcmd_shutdown (Network::Client *) |
void | textcmd_singlezone_integ_item (Network::Client *client) |
void | textcmd_startlog (Network::Client *client) |
void | textcmd_stoplog (Network::Client *client) |
void | textcmd_threads (Network::Client *client) |
const char * | TextTypeToString (u8 texttype) |
void | threadstatus_thread (void) |
std::string | tile_desc (unsigned short tilenum) |
unsigned int | tile_flags (unsigned short tilenum) |
unsigned int | tile_uoflags (unsigned short tilenum) |
char | tileheight (unsigned short tilenum) |
unsigned char | tilelayer (unsigned short tilenum) |
unsigned short | tileweight (unsigned short tilenum) |
std::string | timeoutstr (polclock_t at) |
bool | timer_expired (polclock_t timer_until, polclock_t now) |
int | translate (const std::string &name, TRANSLATION *table) |
void | transmit_to_inrange (const UObject *center, const void *msg, unsigned msglen) |
void | transmit_to_others_inrange (Character *center, const void *msg, unsigned msglen) |
bool | UACTION_IS_VALID (unsigned short action) |
void | undo_get_item (Mobile::Character *chr, Items::Item *item) |
void | UnicodeSpeechHandler (Network::Client *client, PKTIN_AD *msgin) |
int | unload_all_scripts () |
void | unload_data () |
void | unload_party () |
void | unload_party_hooks () |
void | unload_repsys_cfg () |
void | unload_repsys_cfg_hooks () |
int | unload_script (const std::string &name_in) |
int | UnloadConfigFile (const std::string &filename) |
void | uo_client_listener_thread (void *arg) |
void | update_all_weatherregions () |
void | update_gameclock () |
Saves the current value into the global cprop "gameclock". More... | |
void | update_item_to_inrange (const Item *item) |
void | update_lightregion (Client *client, LightRegion *) |
void | update_rpm (void) |
void | update_sysload () |
void | update_weatherregion (Client *client, WeatherRegion *weatherregion) |
void | update_wornitem_to_inrange (const Character *chr, const Item *item) |
void | UpdateCharacterOnDestroyItem (Item *item) |
Character * | UpdateCharacterWeight (Item *item) |
u32 | UseCharSerialNumber (u32 serial) |
u32 | UseItemSerialNumber (u32 serial) |
bool | VALID_LIGHTLEVEL (int lightlevel) |
bool | valid_message_length (Network::Client *client, unsigned int length) |
bool | VALID_SPELL_ID (int spellid) |
bool | validbeard (u16 BeardStyle) |
bool | validface (u16 FaceStyle) |
bool | validhair (u16 HairStyle) |
short | validhaircolor (u16) |
void | wait_for_ClientTransmit_pulse (unsigned int millis) |
void | wait_for_pulse (unsigned int millis) |
void | wake_tasks_thread () |
void | write_characters (SaveContext &sc) |
int | write_data (unsigned int &dirty_writes, unsigned int &clean_writes, long long &elapsed_ms) |
void | write_dirty_data (Clib::StreamWriter &sw_data) |
void | write_dirty_storage (Clib::StreamWriter &sw_data) |
void | write_global_properties (Clib::StreamWriter &sw) |
void | write_guilds (Clib::StreamWriter &sw) |
void | write_index (std::ostream &ofs) |
void | write_items (Clib::StreamWriter &sw_items) |
void | write_multis (Clib::StreamWriter &ofs) |
void | write_npcs (SaveContext &sc) |
void | write_object_dirty_owners (Clib::StreamWriter &sw_data, const UObject *obj, bool &has_nonsaved_owner) |
void | write_party (Clib::StreamWriter &sw) |
int | write_pol_static_files (const std::string &realm) |
void | write_resources_dat (Clib::StreamWriter &sw_resource) |
void | write_shadow_realms (Clib::StreamWriter &sw) |
void | write_system_data (Clib::StreamWriter &sw) |
void | WriteGottenItem (Mobile::Character *chr, Items::Item *item, Clib::StreamWriter &sw) |
std::pair< unsigned, unsigned > | XyToZone (xcoord x, ycoord y) |
void | zone_convert (unsigned short x, unsigned short y, unsigned short *wx, unsigned short *wy, const Realms::Realm *realm) |
void | zone_convert_clip (int x, int y, const Realms::Realm *realm, unsigned short *wx, unsigned short *wy) |
Variables | |
static Clib::SpinLock | _gameclock_lock |
std::array< int, 7 > | adjustments = {{0, +1, -1, +2, -2, +3, -3}} |
UFACING | away_cvt [8] |
int | cfg_max_statics_per_block = 1000 |
bool | cfg_show_illegal_graphic_warning = 1 |
bool | cfg_show_roof_and_platform_warning = 1 |
bool | cfg_use_new_hsa_format = 0 |
int | cfg_warning_statics_per_block = 1000 |
const u8 | CHAR_FLAG1_CANALTER = 0x02 |
const u8 | CHAR_FLAG1_FLYING = 0x04 |
const u8 | CHAR_FLAG1_GENDER = 0x02 |
const u8 | CHAR_FLAG1_INVISIBLE = 0x80 |
const u8 | CHAR_FLAG1_NORMAL = 0x00 |
const u8 | CHAR_FLAG1_POISONED = 0x04 |
const u8 | CHAR_FLAG1_WARMODE = 0x40 |
const u8 | CHAR_FLAG1_YELLOWHEALTH = 0x08 |
const u32 | CHARACTERSERIAL_END = 0x3FFFFFFFLu |
const u32 | CHARACTERSERIAL_START = 0x00000001Lu |
pthread_cond_t | clienttransmit_pulse_cond = PTHREAD_COND_INITIALIZER |
pthread_mutex_t | clienttransmit_pulse_mut = PTHREAD_MUTEX_INITIALIZER |
const int | CLP_Add_Living = 1005442 |
const int | CLP_Add_No_Leader |
const int | CLP_Add_Yourself = 1005439 |
const int | CLP_Added = 1005445 |
const int | CLP_Allow_Loot = 1005447 |
const int | CLP_Already_in_a_Party = 1005441 |
const int | CLP_Already_Your_Party = 1005440 |
const int | CLP_Cannot_Remove_Self |
const int | CLP_Decline = 1008092 |
const int | CLP_Disbanded = 1005449 |
const int | CLP_Ignore_Offer = 1005444 |
const int | CLP_Invite = 1008089 |
const int | CLP_Invited = 1008090 |
const int | CLP_Joined = 1008094 |
const int | CLP_Last_Person = 1005450 |
const int | CLP_Max_Size = 1008095 |
const int | CLP_No_Invite = 3000222 |
const int | CLP_No_Party = 3000211 |
const int | CLP_Notify_Decline = 1008091 |
const int | CLP_Player_Rejoined = 1008087 |
const int | CLP_Player_Removed = 1005452 |
const int | CLP_Prevent_Loot |
const int | CLP_Rejoined = 1005437 |
const int | CLP_Removed = 1005451 |
const int | CLP_Too_Late_Decline |
const int | CLP_Who_To_Add = 1005454 |
const int | CLP_Who_to_Remove = 1005455 |
ConfigurationBuffer | configurationbuffer |
BApplicObjType | debugcontextobjimp_type |
const unsigned short | DEFAULT_TEXT_COLOR = 0x3B2 |
const unsigned short | DEFAULT_TEXT_FONT = 3 |
const unsigned short | DEFAULT_TEXT_REQUIREDCMD = 0 |
const int | DELETE_BY_PLAYER = 0x00 |
const int | DELETE_BY_SCRIPT = 0x01 |
int | dupe_count |
const int | ENUMERATE_IGNORE_LOCKED = 0x01 |
const int | ENUMERATE_ROOT_ONLY = 0x02 |
const int | FINDOBJTYPE_IGNORE_LOCKED = 0x01 |
const int | FINDOBJTYPE_ROOT_ONLY = 0x02 |
const int | FINDSUBSTANCE_FIND_ALL = 0x04 |
const int | FINDSUBSTANCE_IGNORE_LOCKED = 0x01 |
const int | FINDSUBSTANCE_ROOT_ONLY = 0x02 |
const int | FP_IGNORE_DOORS = 0x02 |
const int | FP_IGNORE_MOBILES = 0x01 |
boost_utils::flyweight_initializers | fw_inits |
static gameclock_t | gameclock |
GameState | gamestate |
pthread_attr_t | http_attr |
HWND | hwnd |
USTRUCT_IDX | idxrec |
int | import_count |
const int | INSERT_ADD_ITEM = 0x01 |
const int | INSERT_INCREASE_STACK = 0x02 |
const int | ITEMS_IGNORE_MULTIS = 0x02 |
const int | ITEMS_IGNORE_STATICS = 0x01 |
const u32 | ITEMSERIAL_END = 0x7FffFFffLu |
const u32 | ITEMSERIAL_START = 0x40000000Lu |
const int | JOURNAL_PRINT_NAME = 0x00 |
const int | JOURNAL_PRINT_YOU_SEE = 0x01 |
SVR_KEYDESC | keydesc [257] |
const unsigned | LANDTILE_COUNT = 0x4000 |
unsigned int | landtile_flags_arr [N_LANDTILEDATA] |
unsigned int | last_block = ~0u |
size_t | last_blocks_free = 0 |
size_t | last_blocks_used = 0 |
size_t | last_bytes_free = 0 |
size_t | last_bytes_used = 0 |
static time_t | last_read |
const int | LIST_IGNORE_Z = 0x40000000L |
const int | LISTENPT_HEAR_GHOSTS = 0x01 |
const int | LISTENPT_HEAR_TOKENS = 0x02 |
const int | LISTENPT_NO_SPEECH = 0x04 |
size_t | locker |
const int | LOG_DATETIME = 0x01 |
pthread_t | main_pthread |
FILE * | mapdif_file = nullptr |
FILE * | mapdifl_file = nullptr |
FILE * | mapfile = nullptr |
const unsigned | MAX_LIGHTLEVEL = 30 |
const unsigned | MIN_LIGHTLEVEL = 0 |
MoveDelta | move_delta [8] |
const int | MOVEITEM_FORCELOCATION = 0x40000000L |
const int | MOVEITEM_IGNOREMOVABLE = 0x20000000L |
const unsigned | N_LANDTILEDATA = 0x4000 |
NOTIFYICONDATA | ndata |
NetworkManager | networkManager |
ObjectStorageManager | objStorageManager |
static ContStack | parent_conts |
const unsigned | POLCLASS_ARMOR = 15 |
const unsigned | POLCLASS_BOAT = 12 |
const unsigned | POLCLASS_CONTAINER = 6 |
const unsigned | POLCLASS_CORPSE = 7 |
const unsigned | POLCLASS_DOOR = 8 |
const unsigned | POLCLASS_EQUIPMENT = 14 |
const unsigned | POLCLASS_HOUSE = 13 |
const unsigned | POLCLASS_ITEM = 2 |
const unsigned | POLCLASS_LOCKABLE = 5 |
const unsigned | POLCLASS_MAP = 10 |
const unsigned | POLCLASS_MOBILE = 3 |
const unsigned | POLCLASS_MULTI = 11 |
const unsigned | POLCLASS_NPC = 4 |
const unsigned | POLCLASS_OBJECT = 1 |
const unsigned | POLCLASS_SPELLBOOK = 9 |
const unsigned | POLCLASS_WEAPON = 16 |
const unsigned | POLCLOCK_DIV = ( CLOCKS_PER_SEC / POLCLOCKS_PER_SEC ) |
const polclock_t | POLCLOCKS_PER_SEC = 100 |
const char * | poldbg_base_members [] |
const char * | poldbg_itemref_members [] |
const char * | poldbg_mobileref_members [] |
pthread_mutex_t | polsem |
pthread_mutexattr_t | polsem_attr |
pthread_mutex_t | polsemdbg_mut = PTHREAD_MUTEX_INITIALIZER |
pthread_cond_t | pulse_cond = PTHREAD_COND_INITIALIZER |
pthread_mutex_t | pulse_mut = PTHREAD_MUTEX_INITIALIZER |
static Pol::Plib::RawMap | rawmap |
static bool | rawmap_ready = false |
static std::vector< USTRUCT_STATIC_BUFFER > | rawstatic_buffer_vec |
static bool | rawstatic_init = false |
const int | RESURRECT_FORCELOCATION = 0x01 |
const int | SAVE_FULL = 0x00 |
const int | SAVE_INCREMENTAL = 0x01 |
BApplicObjType | scriptexobjimp_type |
ScriptScheduler | scriptScheduler |
const int | SENDDIALOGMENU_FORCE_OLD = 0x01 |
SettingsManager | settingsManager |
FILE * | sidxfile = nullptr |
int | srec_count |
USTRUCT_STATIC | srecs [MAX_STATICS_PER_BLOCK] |
FILE * | stadif_file = nullptr |
FILE * | stadifi_file = nullptr |
StaticDifBlockIndex | stadifl |
FILE * | stadifl_file = nullptr |
const unsigned | STAIDX_CHUNK = 8 |
StateManager | stateManager |
FILE * | statfile = nullptr |
bool | static_debug_on = false |
const unsigned | SYSFIND_SEARCH_OFFLINE_MOBILES = 1 |
const unsigned | SYSFIND_SKIP_WORLD = 4 |
pthread_cond_t | task_pulse_cond = PTHREAD_COND_INITIALIZER |
pthread_mutex_t | task_pulse_mut = PTHREAD_MUTEX_INITIALIZER |
pthread_attr_t | thread_attr |
bool | thread_started |
pthread_mutex_t | threadstart_mut = PTHREAD_MUTEX_INITIALIZER |
pthread_cond_t | threadstart_pulse_cond = PTHREAD_COND_INITIALIZER |
pthread_mutex_t | threadstart_pulse_mut = PTHREAD_MUTEX_INITIALIZER |
TileData * | tiledata |
FILE * | tilefile = nullptr |
u8 | tmp_flag1 |
u8 | tmp_flag2 |
std::set< UObject * > | unreaped_orphan_instances |
unsigned short | uo_map_height = 4096 |
unsigned short | uo_map_width = 6144 |
int | uo_mapid = 0 |
bool | uo_readuop = true |
int | uo_usedif = 0 |
std::ifstream | uopmapfile |
const unsigned | VALID_ITEM_COLOR_MASK = 0x0FFF |
const int | VENDOR_BUYABLE_CONTAINER_FILTER = 0x02 |
const int | VENDOR_SEND_AOS_TOOLTIP = 0x01 |
FILE * | verfile = nullptr |
VerdataIndexes | vidx [32] |
const unsigned int | vidx_count = 32 |
const unsigned int | VITAL_HIGHEST_MAX_HUNDREDTHS = 10000000L |
const int | VITAL_HIGHEST_REGENRATE = 30000 |
const unsigned int | VITAL_LOWEST_MAX_HUNDREDTHS = 100L |
const int | VITAL_LOWEST_REGENRATE = -30000 |
const unsigned int | VITAL_MAX_HUNDREDTHS = 10000000L |
const unsigned | VITAL_MAX_VALUE = 100000L |
std::set< unsigned int > | water |
unsigned | WM_TASKBARCREATED |
TRANSLATION | xlate_align [] |
const short | ZCOORD_MAX = +127 |
const short | ZCOORD_MIN = -128 |
const unsigned | ZONE_SHIFT = 2 |
const unsigned | ZONE_SIZE = 4 |
Definition at line 45 of file reftypes.h.
typedef std::vector<AccountRef> Pol::Core::AccountsVector |
typedef std::vector<ArmorZone> Pol::Core::ArmorZones |
typedef std::map<std::string, Mobile::Attribute*, Clib::ci_cmp_pred> Pol::Core::AttributesByName |
typedef std::map<u16 , Multi::BoatShape*> Pol::Core::BoatShapes |
typedef std::map<std::string, ConfigFileRef> Pol::Core::CfgFiles |
Definition at line 42 of file reftypes.h.
typedef std::vector<Network::Client*> Pol::Core::Clients |
typedef std::vector<Core::CmdLevel> Pol::Core::CmdLevels |
typedef ref_ptr< StoredConfigFile > Pol::Core::ConfigFileRef |
Definition at line 101 of file cfgrepos.h.
typedef std::stack<UContainer*> Pol::Core::ContStack |
Definition at line 212 of file uimport.cpp.
typedef std::map<std::string, Module::DataStoreFile*, Clib::ci_cmp_pred> Pol::Core::DataStore |
Definition at line 207 of file poldbg.cpp.
typedef std::multimap<pol_serial_t, UObject*> Pol::Core::DeferList |
Definition at line 21 of file object_storage.h.
typedef std::deque<UOExecutor*> Pol::Core::ExecList |
Definition at line 18 of file script_internals.h.
typedef unsigned int Pol::Core::gameclock_t |
Definition at line 14 of file gameclck.h.
typedef ref_ptr<Guild> Pol::Core::GuildRef |
typedef std::map<unsigned int, GuildRef> Pol::Core::Guilds |
typedef std::multimap<Core::polclock_t, Core::UOExecutor*> Pol::Core::HoldList |
Definition at line 22 of file script_internals.h.
typedef std::map<NameAndLayer, Items::Equipment*> Pol::Core::IntrinsicEquipments |
typedef ref_ptr<Items::Item> Pol::Core::ItemRef |
Definition at line 43 of file reftypes.h.
typedef RegionGroup<LightRegion> Pol::Core::LightDef |
typedef std::map<UOExecutor*, ListenPoint*> Pol::Core::ListenPoints |
typedef RegionGroup<MusicRegion> Pol::Core::MusicDef |
typedef std::pair<std::string , u8 > Pol::Core::NameAndLayer |
typedef RegionGroup<NoCastRegion> Pol::Core::NoCastDef |
typedef std::set<UOExecutor*> Pol::Core::NoTimeoutHoldList |
Definition at line 21 of file script_internals.h.
typedef FilterImp<FilterType::NPC> Pol::Core::NPCFilter |
typedef ref_ptr<Mobile::NPC> Pol::Core::NpcRef |
Definition at line 44 of file reftypes.h.
typedef std::map<std::string, NpcTemplate*> Pol::Core::NpcTemplates |
typedef std::map<std::string, NpcTemplateElem, Clib::ci_cmp_pred> Pol::Core::NpcTemplatesElems |
typedef std::map<std::string, u32, Clib::ci_cmp_pred> Pol::Core::ObjtypeByNameMap |
typedef std::vector<std::string> Pol::Core::OldCfgFiles |
typedef std::map<unsigned int, unsigned int> Pol::Core::OldObjtypeConversions |
typedef void( * Pol::Core::ParamTextCmdFunc) (Network::Client *, const char *) |
typedef std::map<std::string, ParamTextCmdFunc, wordicmp> Pol::Core::ParamTextCmds |
typedef std::vector<PartyRef> Pol::Core::Parties |
typedef ref_ptr<Party> Pol::Core::PartyRef |
typedef std::map<unsigned int, UOExecutor*> Pol::Core::PidList |
Definition at line 24 of file script_internals.h.
typedef u16 Pol::Core::pol_objtype_t |
typedef u32 Pol::Core::pol_serial_t |
typedef int Pol::Core::polclock_base_type |
Definition at line 28 of file polclock.cpp.
typedef int Pol::Core::polclock_t |
Definition at line 26 of file polclock.h.
typedef int Pol::Core::polticks_t |
Definition at line 27 of file polclock.h.
typedef std::set<std::string> Pol::Core::PropSet |
typedef std::vector<std::string> Pol::Core::QueryParam |
Definition at line 117 of file sqlscrobj.h.
typedef std::shared_ptr<QueryParam> Pol::Core::QueryParams |
Definition at line 120 of file sqlscrobj.h.
typedef unsigned short Pol::Core::RegionId |
typedef std::shared_ptr<ResultWrapper> Pol::Core::RES_WRAPPER |
Definition at line 55 of file sqlscrobj.h.
typedef std::map<std::string, ResourceDef*> Pol::Core::ResourceDefs |
typedef weak_ptr<UOExecutor> Pol::Core::ScriptExPtr |
Definition at line 35 of file exscrobj.h.
typedef std::map<std::string, ref_ptr<Bscript::EScriptProgram>, Clib::ci_cmp_pred> Pol::Core::ScriptStorage |
Definition at line 23 of file script_internals.h.
typedef std::unordered_map<pol_serial_t, unsigned> Pol::Core::SerialIndexMap |
Definition at line 20 of file object_storage.h.
typedef std::vector<ServerDescription*> Pol::Core::Servers |
typedef std::vector<StartingLocation*> Pol::Core::StartingLocations |
typedef std::map<unsigned int, unsigned int> Pol::Core::StaticDifBlockIndex |
Definition at line 42 of file uofile02.cpp.
typedef std::vector<StaticRec> Pol::Core::StaticList |
Definition at line 38 of file udatfile.h.
typedef std::priority_queue<ScheduledTask*, std::vector<ScheduledTask*>, SchComparer> Pol::Core::TaskQueue |
typedef void( * Pol::Core::TextCmdFunc) (Network::Client *) |
typedef std::map<std::string, TextCmdFunc, Clib::ci_cmp_pred> Pol::Core::TextCmds |
typedef HoldList::iterator Pol::Core::TimeoutHandle |
Definition at line 25 of file script_internals.h.
typedef ref_ptr<UObject> Pol::Core::UObjectRef |
Definition at line 37 of file reftypes.h.
typedef boost::variant<u8, u16, u32, s8, s16, s32, ValueModPack, SkillStatCap, ExtStatBarFollowers, gameclock_t> Pol::Core::variant_storage |
Definition at line 210 of file dynproperties.h.
typedef std::map<std::string, Vital*, Clib::ci_cmp_pred> Pol::Core::VitalsByName |
typedef unsigned short Pol::Core::xcoord |
typedef unsigned short Pol::Core::ycoord |
typedef short Pol::Core::zcoord |
typedef std::vector<Mobile::Character*> Pol::Core::ZoneCharacters |
typedef std::vector<Items::Item*> Pol::Core::ZoneItems |
typedef std::vector<Multi::UMulti*> Pol::Core::ZoneMultis |
enum Pol::Core::DynPropTypes : u8 |
Definition at line 84 of file dynproperties.h.
enum Pol::Core::EVENTID |
|
strong |
enum Pol::Core::MOVEMODE : u8 |
|
strong |
enum Pol::Core::PKTBOTHID : unsigned char |
Definition at line 16 of file pktbothid.h.
enum Pol::Core::PKTINID |
enum Pol::Core::PKTOUTID : unsigned char |
Definition at line 21 of file pktoutid.h.
enum Pol::Core::Priority |
enum Pol::Core::UACTION |
enum Pol::Core::UFACING : u8 |
enum Pol::Core::UGENDER : u8 |
|
strong |
This is meant to be coarse-grained. It's meant as an alternative to dynamic_cast.
Mostly used to go from UItem to UContainer.
Enumerator | |
---|---|
CLASS_ITEM | |
CLASS_CONTAINER | |
CLASS_CHARACTER | |
CLASS_NPC | |
CLASS_WEAPON | |
CLASS_ARMOR | |
CLASS_MULTI | |
INVALID |
Definition at line 21 of file baseobject.h.
enum Pol::Core::URACE : u8 |
enum Pol::Core::USKILLID |
enum Pol::Core::UTEXTTYPE : u8 |
bool Pol::Core::acct_check | ( | Network::Client * | client, |
int | i | ||
) |
Definition at line 69 of file login.cpp.
References Pol::Network::Client::acct, Pol::Accounts::Account::name(), networkManager, and Pol::Core::NetworkManager::servers.
Referenced by server_applies().
void Pol::Core::add_candidate | ( | Mobile::Character * | member, |
Mobile::Character * | leader | ||
) |
Definition at line 1342 of file party.cpp.
References Pol::Core::Party::add_candidate(), Pol::Core::ExportedFunction::call(), Pol::Core::Party::can_add(), Pol::Core::Party_Cfg::CanAddToParty, CLASS_NPC, Pol::Mobile::Character::client, CLP_Add_Living, CLP_Add_No_Leader, CLP_Add_Yourself, CLP_Already_in_a_Party, CLP_Already_Your_Party, CLP_Ignore_Offer, CLP_Max_Size, Pol::Module::CreatePartyRefObjImp(), Pol::Core::Party_Cfg::DeclineTimeout, gamestate, Pol::Core::Party_Cfg::General, Pol::Core::Party_Cfg::Hooks, Pol::Core::Party::is_candidate(), Pol::Core::Party::is_leader(), Pol::Core::Party::is_member(), Pol::Core::ULWObject::isa(), Pol::Mobile::Character::make_ref(), Pol::Core::Party_Cfg::OnPartyCreate, Pol::Core::GameState::parties, Pol::Core::Party::Party(), Pol::Core::SettingsManager::party_cfg, send_invite(), send_sysmessage_cl(), Pol::Core::ULWObject::serial, Pol::Mobile::Character::set_party_invite_timeout(), and settingsManager.
void Pol::Core::add_common_exmods | ( | Core::UOExecutor & | ex | ) |
Definition at line 282 of file scrsched.cpp.
References Pol::Bscript::Executor::addModule(), and Pol::Module::CreateFileAccessExecutorModule().
Referenced by create_full_script_executor(), create_script_executor(), run_executor_to_completion(), and run_script_to_completion_worker().
bool Pol::Core::add_item_to_stack | ( | Network::Client * | client, |
Items::Item * | item, | ||
Items::Item * | target_item | ||
) |
Definition at line 247 of file dropitem.cpp.
References Pol::Items::Item::add_to_self(), Pol::Items::Item::can_add_to_self(), Pol::Core::UContainer::can_insert_increase_stack(), Pol::Network::Client::chr, Pol::Items::Item::container, Pol::Items::Item::getamount(), MOVE_ITEM_FAILURE_UNKNOWN, Pol::Core::UContainer::MT_PLAYER, Pol::Core::UContainer::on_insert_increase_stack(), Pol::Core::ULWObject::orphan(), Pol::Items::Item::restart_decay_timer(), send_item_move_failure(), send_remove_object_to_inrange(), send_sysmessage(), Pol::Items::Item::stackable(), and update_item_to_inrange().
Referenced by place_item().
void Pol::Core::add_item_to_world | ( | Items::Item * | item | ) |
Definition at line 31 of file uworld.cpp.
References Pol::Realms::Realm::add_toplevel_item(), getzone(), Pol::Core::Zone::items, passert, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Module::_complete_create_item_at_location(), Pol::Multi::UHouse::add_component(), Pol::Testing::add_item(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Multi::UBoat::create_components(), Pol::Mobile::Character::die(), drop_item_on_ground(), get_item(), import(), Pol::Module::UOExecutorModule::internal_MoveItem(), read_global_item(), return_traded_items(), Pol::Items::Item::script_method_id(), Pol::Core::UContainer::spill_contents(), undo_get_item(), and Pol::Module::ItemGivenEvent::~ItemGivenEvent().
void Pol::Core::add_loaded_item | ( | Items::Item * | cont_item, |
Items::Item * | item | ||
) |
Definition at line 248 of file loaddata.cpp.
References Pol::Core::UContainer::add(), Pol::Core::Spellbook::bitwise_contents, Pol::Core::UContainer::can_add(), Pol::Core::UContainer::can_add_to_slot(), CLASS_CONTAINER, Pol::Core::UObject::clear_dirty(), Pol::Core::USpellScroll::convert_objtype_to_spellnum(), Pol::Core::UObject::destroy(), ERROR_PRINT, Pol::Core::StateManager::gflag_enforce_container_limits, INFO_PRINT, Pol::Core::ULWObject::isa(), Pol::Core::UObject::objtype_, POLCLASS_SPELLBOOK, Pol::Core::UContainer::script_isa(), Pol::Core::ULWObject::serial, Pol::Items::Item::slot_index(), Pol::Core::Spellbook::spell_school, and stateManager.
Referenced by insert_deferred_items(), Pol::Core::StorageArea::load_item(), and read_global_item().
void Pol::Core::add_multi_to_world | ( | Multi::UMulti * | multi | ) |
Definition at line 69 of file uworld.cpp.
References Pol::Realms::Realm::add_multi(), getzone(), Pol::Core::Zone::multis, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Testing::add_multi(), read_multi(), Pol::Multi::UHouse::scripted_create(), and Pol::Multi::UBoat::scripted_create().
void Pol::Core::add_realm | ( | const std::string & | name, |
Realms::Realm * | base | ||
) |
Definition at line 84 of file realms.cpp.
References gamestate, Pol::Core::GameState::Realms, Pol::Realms::Realm::shadowid, Pol::Core::GameState::shadowrealm_count, and Pol::Core::GameState::shadowrealms_by_id.
Referenced by Pol::Module::PolSystemExecutorModule::mf_AddRealm(), and read_shadow_realms().
|
static |
Definition at line 35 of file schedule.cpp.
References gamestate, Pol::Core::TaskScheduler::mark_dirty(), and Pol::Core::GameState::task_queue.
Referenced by Pol::Core::OneShotTask::OneShotTask(), and Pol::Core::PeriodicTask::start().
unsigned int Pol::Core::base_to_raw | ( | unsigned short | base | ) |
Definition at line 72 of file skilladv.cpp.
References raw_to_base().
Referenced by Pol::Module::AttributeExecutorModule::mf_BaseSkillToRaw(), and Pol::Testing::skilladv_test().
void Pol::Core::broadcast | ( | const char * | text, |
unsigned short | font, | ||
unsigned short | color, | ||
unsigned short | requiredCmdLevel | ||
) |
Definition at line 1213 of file ufunc.cpp.
References Pol::Core::NetworkManager::clients, networkManager, and send_sysmessage().
Referenced by Pol::Module::UOExecutorModule::broadcast(), and Pol::Module::UnicodeExecutorModule::mf_BroadcastUC().
void Pol::Core::broadcast | ( | const u16 * | wtext, |
const char | lang[4], | ||
unsigned short | font, | ||
unsigned short | color, | ||
unsigned short | requiredCmdLevel | ||
) |
Definition at line 1225 of file ufunc.cpp.
References Pol::Core::NetworkManager::clients, networkManager, and send_sysmessage().
Definition at line 282 of file ufunc.cpp.
References Pol::Core::UObject::color, Pol::Core::UObject::facing, Pol::Core::ULWObject::graphic, Pol::Network::PacketInterface::offset, Pol::Core::UObject::serial_ext, Pol::Network::PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), Pol::Network::PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Mobile::PropagateMove().
void Pol::Core::build_sysmessage_cl | ( | PktOut_C1 * | msg, |
unsigned int | cliloc_num, | ||
const u16 * | arguments, | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 247 of file clfunc.cpp.
References Pol::Network::PacketInterface::offset, SPEECH_MAX_LEN, Pol::Network::PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and Pol::Network::PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Referenced by Pol::Core::Party::send_msg_to_all().
void Pol::Core::build_sysmessage_cl_affix | ( | PktOut_CC * | msg, |
unsigned int | cliloc_num, | ||
const char * | affix, | ||
bool | prepend, | ||
const u16 * | arguments, | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 279 of file clfunc.cpp.
References Pol::Network::PacketInterface::offset, SPEECH_MAX_LEN, Pol::Network::PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and Pol::Network::PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Referenced by Pol::Core::Party::send_msg_to_all().
void Pol::Core::calc_abs_timeout | ( | struct timespec * | ptimeout, |
unsigned int | millis | ||
) |
Definition at line 195 of file polsem.cpp.
Referenced by tasks_thread_sleep(), wait_for_ClientTransmit_pulse(), and wait_for_pulse().
polclock_t Pol::Core::calc_scheduler_clocksleft | ( | polclock_t | now | ) |
Definition at line 245 of file schedule.cpp.
References Pol::Core::ScheduledTask::clocksleft(), gamestate, INFO_PRINT_TRACE, Pol::Core::ScheduledTask::ready(), and Pol::Core::GameState::task_queue.
Referenced by combined_thread(), and Pol::Core::ScheduledTask::next_run_clock().
polclock_t Pol::Core::calc_script_clocksleft | ( | polclock_t | now | ) |
Definition at line 111 of file scrsched.cpp.
References Pol::Core::ScriptScheduler::getHoldlist(), Pol::Core::ScriptScheduler::getRunlist(), Pol::Core::UOExecutor::os_module, scriptScheduler, and Pol::Module::OSExecutorModule::sleep_until_clock_.
Referenced by combined_thread().
void Pol::Core::call_chr_scripts | ( | Mobile::Character * | chr, |
const std::string & | root_script_ecl, | ||
const std::string & | pkg_script_ecl, | ||
bool | offline = false |
||
) |
Definition at line 329 of file pol.cpp.
References call_script(), Pol::Core::ScriptDef::exists(), Pol::Plib::SystemState::packages, Pol::Core::ScriptDef::quickconfig(), and Pol::Plib::systemstate.
Referenced by call_ondelete_scripts(), client_io_thread(), run_logon_script(), and run_reconnect_script().
void Pol::Core::call_ondelete_scripts | ( | Mobile::Character * | chr | ) |
Definition at line 378 of file pol.cpp.
References call_chr_scripts().
Referenced by Pol::Accounts::AccountObjImp::call_method_id(), and handle_delete_character().
bool Pol::Core::call_script | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param0 | ||
) |
Definition at line 546 of file scrsched.cpp.
References Pol::Bscript::BObject::isTrue(), and run_script_to_completion().
Referenced by call_chr_scripts(), can_delete_character(), Pol::Core::UContainer::can_insert_add_item(), Pol::Core::UContainer::can_insert_increase_stack(), Pol::Core::UContainer::check_can_remove_script(), Pol::Items::Item::check_test_scripts(), decay_worldzone(), Pol::Core::UContainer::on_insert_add_item(), Pol::Core::UContainer::on_insert_increase_stack(), and Pol::Core::UContainer::on_remove().
bool Pol::Core::call_script | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param0, | ||
Bscript::BObjectImp * | param1 | ||
) |
Definition at line 558 of file scrsched.cpp.
References Pol::Bscript::BObject::isTrue(), and run_script_to_completion().
bool Pol::Core::call_script | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param0, | ||
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2 | ||
) |
Definition at line 571 of file scrsched.cpp.
References Pol::Bscript::BObject::isTrue(), and run_script_to_completion().
bool Pol::Core::call_script | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param0, | ||
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2, | ||
Bscript::BObjectImp * | param3 | ||
) |
Definition at line 584 of file scrsched.cpp.
References Pol::Bscript::BObject::isTrue(), and run_script_to_completion().
bool Pol::Core::call_script | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param0, | ||
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2, | ||
Bscript::BObjectImp * | param3, | ||
Bscript::BObjectImp * | param4 | ||
) |
Definition at line 597 of file scrsched.cpp.
References Pol::Bscript::BObject::isTrue(), and run_script_to_completion().
bool Pol::Core::call_script | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param0, | ||
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2, | ||
Bscript::BObjectImp * | param3, | ||
Bscript::BObjectImp * | param4, | ||
Bscript::BObjectImp * | param5 | ||
) |
Definition at line 612 of file scrsched.cpp.
References Pol::Bscript::BObject::isTrue(), and run_script_to_completion().
bool Pol::Core::call_script | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param0, | ||
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2, | ||
Bscript::BObjectImp * | param3, | ||
Bscript::BObjectImp * | param4, | ||
Bscript::BObjectImp * | param5, | ||
Bscript::BObjectImp * | param6 | ||
) |
Definition at line 627 of file scrsched.cpp.
References Pol::Bscript::BObject::isTrue(), and run_script_to_completion().
Bscript::BObjectImp * Pol::Core::CallPropertyListMethod | ( | PropertyList & | proplist, |
const char * | methodname, | ||
Bscript::Executor & | ex, | ||
bool & | changed | ||
) |
Definition at line 591 of file proplist.cpp.
References CallPropertyListMethod_id(), Pol::Bscript::getKnownObjMethod(), and Pol::Bscript::ObjMethod::id.
Referenced by Pol::Module::EPartyRefObjImp::call_method(), Pol::Module::EGuildRefObjImp::call_method(), Pol::Module::DataElemRefObjImp::call_method(), and Pol::Core::UObject::script_method().
Bscript::BObjectImp * Pol::Core::CallPropertyListMethod_id | ( | PropertyList & | proplist, |
const int | id, | ||
Bscript::Executor & | ex, | ||
bool & | changed | ||
) |
Definition at line 520 of file proplist.cpp.
References Pol::Core::PropertyList::eraseprop(), Pol::Bscript::Executor::getParamImp(), Pol::Core::PropertyList::getprop(), Pol::Core::PropertyList::getpropnames(), Pol::Bscript::Executor::getStringParam(), Pol::Bscript::Executor::hasParams(), Pol::Bscript::BObjectImp::isa(), Pol::Bscript::MTH_ERASEPROP, Pol::Bscript::MTH_GETPROP, Pol::Bscript::MTH_PROPNAMES, Pol::Bscript::MTH_SETPROP, name, Pol::Bscript::BObjectImp::OTError, Pol::Bscript::BObjectImp::pack(), Pol::Bscript::Executor::PC, POLLOG, Pol::Bscript::Executor::scriptname(), Pol::Core::PropertyList::setprop(), Pol::Bscript::BObjectImp::unpack(), and Pol::Bscript::String::value().
Referenced by Pol::Accounts::AccountObjImp::call_method_id(), Pol::Module::EPartyRefObjImp::call_method_id(), Pol::Module::EGuildRefObjImp::call_method_id(), Pol::Module::DataElemRefObjImp::call_method_id(), CallPropertyListMethod(), and Pol::Core::UObject::script_method_id().
bool Pol::Core::can_delete_character | ( | Mobile::Character * | chr, |
int | delete_by | ||
) |
Definition at line 363 of file pol.cpp.
References call_script(), Pol::Core::ScriptDef::exists(), and Pol::Core::ScriptDef::quickconfig().
Referenced by Pol::Accounts::AccountObjImp::call_method_id(), and handle_delete_character().
Definition at line 567 of file ufunc.cpp.
References Pol::Mobile::Character::can_seeinvisitems(), Pol::Network::Client::chr, Pol::Items::Item::invisible(), Pol::Items::Item::layer, LAYER_BEARD, LAYER_FACE, and LAYER_HAIR.
Referenced by send_corpse_contents(), and send_corpse_equip().
void Pol::Core::cancel_all_trades | ( | ) |
Definition at line 1088 of file dropitem.cpp.
References cancel_trade(), Pol::Network::Client::chr, Pol::Core::NetworkManager::clients, Pol::Mobile::Character::is_trading(), networkManager, and Pol::Network::Client::ready.
Referenced by Pol::Module::UOExecutorModule::mf_SaveWorldState(), and Pol::xmain_inner().
void Pol::Core::cancel_trade | ( | Mobile::Character * | chr1 | ) |
Definition at line 979 of file dropitem.cpp.
References Pol::Core::PKTBI_6F::ACTION_CANCEL, Pol::Mobile::Character::client, return_traded_items(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_full_statmsg(), Pol::Core::UObject::serial_ext, Pol::Mobile::Character::trade_container(), and Pol::Mobile::Character::trading_with.
Referenced by cancel_all_trades(), change_trade_status(), Pol::Mobile::Character::die(), Pol::Mobile::Character::disconnect_cleanup(), handle_secure_trade_msg(), handle_walk(), and Pol::Module::UOExecutorModule::mf_CloseTradeWindow().
bool Pol::Core::CanUseSkill | ( | Network::Client * | client | ) |
Definition at line 87 of file useskill.cpp.
References Pol::Mobile::Character::casting_spell(), Pol::Network::Client::chr, Pol::Mobile::Character::dead(), Pol::Mobile::Character::frozen(), Pol::Mobile::Character::paralyzed(), poltime(), private_say_above(), send_sysmessage(), and Pol::Mobile::Character::skill_ex_active().
Referenced by handle_use_skill(), and Pol::Module::OSExecutorModule::start_skill_script().
void Pol::Core::catch_signals_thread | ( | void | ) |
Definition at line 119 of file polsig.cpp.
References Pol::threadhelp::child_threads, ERROR_PRINT, Pol::Clib::exit_signalled, Pol::Core::StateManager::polsig, Pol::Core::PolSig::reload_configuration_signalled, Pol::Core::PolSig::report_status_signalled, and stateManager.
Referenced by threadstatus_thread(), and Pol::xmain_inner().
void Pol::Core::change_trade_status | ( | Mobile::Character * | chr, |
bool | set | ||
) |
Definition at line 1035 of file dropitem.cpp.
References Pol::Core::UContainer::can_swap(), cancel_trade(), Pol::Core::UContainer::item_count(), POLLOG_ERROR, send_trade_statuses(), Pol::Core::UContainer::swap(), Pol::Mobile::Character::trade_accepted(), Pol::Mobile::Character::trade_container(), Pol::Mobile::Character::trading_with, and Pol::Core::UContainer::weight().
Referenced by handle_secure_trade_msg().
void Pol::Core::char_select | ( | Network::Client * | client, |
PKTIN_5D * | msg | ||
) |
Definition at line 385 of file pol.cpp.
References Pol::Network::Client::acct, Pol::Mobile::Character::acct, cfBEu32, Pol::Core::PKTIN_5D::charidx, Pol::Network::Client::chr, Pol::Network::ClientGameData::clear(), Pol::Mobile::Character::client, Pol::Core::PKTIN_5D::clientflags, clientHasCharacter(), Pol::Core::NetworkManager::clients, Pol::Mobile::Character::cmdlevel(), Pol::Plib::SystemState::config, Pol::Network::Client::Disconnect(), Pol::Core::NetworkManager::disconnected_filter, Pol::Network::Client::forceDisconnect(), Pol::Core::NetworkManager::game_filter, Pol::Network::Client::gd, Pol::Accounts::Account::get_character(), Pol::Accounts::Account::has_active_characters(), Pol::Mobile::Character::lastx, Pol::Mobile::Character::lasty, Pol::Mobile::Character::logged_in(), LOGIN_ERROR_MISC, LOGIN_ERROR_OTHER_CHAR_INUSE, Pol::Core::PolConfig::max_clients, Pol::Core::PolConfig::max_clients_bypass_cmdlevel, Pol::Network::Client::msgtype_filter, Pol::Accounts::Account::name(), Pol::Core::UObject::name(), networkManager, Pol::Realms::PlayerEnter, POLLOG, Pol::Network::Client::ready, run_logon_script(), run_reconnect_script(), send_client_char_data(), send_login_error(), ref_ptr< T >::set(), SetCharacterWorldPosition(), start_client_char(), Pol::Plib::systemstate, Pol::Network::Client::UOExpansionFlagClient, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::check_blocked | ( | polclock_t * | pclocksleft | ) |
Definition at line 71 of file scrsched.cpp.
References Pol::Module::OSExecutorModule::blocked_, Pol::Core::ScriptScheduler::getHoldlist(), Pol::Core::ScriptScheduler::getNoTimeoutHoldlist(), INC_PROFILEVAR, Pol::Core::UOExecutor::os_module, passert, polclock(), POLCLOCKS_PER_SEC, Pol::Core::StateManager::profilevars, Pol::Module::OSExecutorModule::revive(), scriptScheduler, Pol::Core::ProfileVars::sleep_cycles, Pol::Module::OSExecutorModule::sleep_until_clock_, stateManager, and THREAD_CHECKPOINT.
Referenced by step_scripts().
void Pol::Core::check_character_integrity | ( | ) |
Definition at line 348 of file uworld.cpp.
References gamestate, INFO_PRINT, Pol::Core::ULWObject::realm, Pol::Core::GameState::Realms, Pol::Core::ULWObject::serial, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and zone_convert().
Referenced by textcmd_integ_chr(), and textcmd_integ_item().
void Pol::Core::check_config | ( | ) |
Definition at line 99 of file loadunld.cpp.
References Pol::Items::ItemDesc::CONTAINERDESC, Pol::Core::SettingsManager::extobj, Pol::Items::find_container_desc(), Pol::Items::find_itemdesc(), Pol::Items::getgraphic(), Pol::Clib::hexint(), Pol::Items::ItemDesc::objtype, Pol::Core::ExternalObject::secure_trade_container, settingsManager, Pol::Plib::systemstate, Pol::Items::ItemDesc::type, UOBJ_BACKPACK, UOBJ_CORPSE, and Pol::Core::ExternalObject::wornitems_container.
Referenced by load_data().
bool Pol::Core::check_inactivity | ( | Network::Client * | client | ) |
Definition at line 663 of file clientthread.cpp.
References Pol::Network::Client::buffer, PKTBI_73_ID, PKTBI_BF_ID, PKTBI_D6_IN_ID, PKTIN_09_ID, and Pol::Core::PKTBI_BF::TYPE_SESPAM.
Referenced by client_io_thread().
void Pol::Core::check_incoming_data | ( | void | ) |
Definition at line 871 of file pol.cpp.
References Pol::Network::Client::acct, Pol::Network::AddressToString(), Pol::Network::apply_socket_options(), Pol::Core::PolConfig::client_encryption_version, Pol::Core::NetworkManager::clients, Pol::Plib::SystemState::config, Pol::Network::Client::csocket, Pol::Network::disable_nagle(), display_reftypes(), display_unreaped_orphan_instances(), Pol::Network::PolSocket::err_fd, Pol::Clib::exit_signalled, Pol::Network::Client::forceDisconnect(), Pol::Network::Client::have_queued_data(), INFO_PRINT, INVALID_SOCKET, Pol::Network::Client::ipaddr, Pol::Network::Client::isReallyConnected(), Pol::Core::NetworkManager::kill_disconnected_clients(), Pol::Network::PolSocket::listen_socket, networkManager, POLLOG, Pol::Core::NetworkManager::polsocket, process_data(), Pol::Network::PolSocket::recv_fd, Pol::Network::PolSocket::select_timeout, Pol::Core::PolConfig::select_timeout_usecs, Pol::Network::PolSocket::send_fd, Pol::Network::Client::send_queued_data(), SOCKET_ERRNO, socket_errno, and Pol::Plib::systemstate.
Referenced by Pol::xmain_inner().
bool Pol::Core::check_item_integrity | ( | ) |
Definition at line 328 of file uworld.cpp.
References check_single_zone_item_integrity(), gamestate, and Pol::Core::GameState::Realms.
Referenced by textcmd_integ_item(), and textcmd_singlezone_integ_item().
void Pol::Core::check_scheduled_tasks | ( | polclock_t * | clocksleft, |
bool * | pactivity | ||
) |
Definition at line 186 of file schedule.cpp.
References Pol::Core::ScheduledTask::cancelled, Pol::Core::TaskScheduler::cleanse(), Pol::Core::ScheduledTask::clocksleft(), Pol::Core::ScheduledTask::execute(), gamestate, INC_PROFILEVAR, INC_PROFILEVAR_BY, Pol::Core::ScheduledTask::late(), Pol::Core::ScheduledTask::next_run_clock(), passert, passert_paranoid, polclock(), Pol::Core::ScheduledTask::ready(), Pol::Core::GameState::task_queue, THREAD_CHECKPOINT, Pol::Core::ScheduledTask::ticks_late(), and TRACEBUF_ADDELEM.
Referenced by combined_thread(), Pol::Core::ScheduledTask::next_run_clock(), tasks_thread(), and Pol::xmain_inner().
void Pol::Core::check_scheduled_tasks2 | ( | void | ) |
Referenced by Pol::Core::ScheduledTask::next_run_clock().
bool Pol::Core::check_single_zone_item_integrity | ( | int | x, |
int | y, | ||
Realms::Realm * | realm | ||
) |
Definition at line 301 of file uworld.cpp.
References Pol::Core::Zone::items, POLLOG_ERROR, Pol::Realms::Realm::zone, and zone_convert().
Referenced by check_item_integrity(), textcmd_constat(), and textcmd_singlezone_integ_item().
bool Pol::Core::check_verdata | ( | unsigned int | file, |
unsigned int | block, | ||
const Core::USTRUCT_VERSION *& | vrec | ||
) |
Definition at line 70 of file uofile01.cpp.
References Pol::Core::VerdataIndexes::find().
Referenced by Pol::UoConvert::create_multis_cfg().
void Pol::Core::checka | ( | Clib::ConfigElem & | elem, |
UoClientGeneral::Mapping & | mapping, | ||
const char * | tag | ||
) |
Definition at line 46 of file uoclient.cpp.
References Pol::Core::UoClientGeneral::Mapping::any, Pol::Mobile::Attribute::attrid, Pol::Mobile::Attribute::FindAttribute(), Pol::Core::UoClientGeneral::Mapping::id, Pol::Core::UoClientGeneral::Mapping::name, name, Pol::Clib::ConfigElem::remove_prop(), and Pol::Clib::ConfigElem::throw_error().
Referenced by load_general_entry().
void Pol::Core::checkpoint | ( | const char * | msg, |
unsigned short | minlvl | ||
) |
Definition at line 17 of file checkpnt.cpp.
References Pol::Core::StateManager::last_checkpoint, POLLOG_INFO, stateManager, and Pol::Plib::systemstate.
Referenced by client_io_thread(), Pol::Core::GameState::deinitialize(), load_config(), load_data(), load_vitals_cfg(), start_threads(), and Pol::xmain_inner().
void Pol::Core::checkv | ( | Clib::ConfigElem & | elem, |
UoClientGeneral::Mapping & | mapping, | ||
const char * | tag | ||
) |
Definition at line 63 of file uoclient.cpp.
References Pol::Core::UoClientGeneral::Mapping::any, FindVital(), Pol::Core::UoClientGeneral::Mapping::id, Pol::Core::UoClientGeneral::Mapping::name, name, Pol::Clib::ConfigElem::remove_prop(), Pol::Clib::ConfigElem::throw_error(), and Pol::Core::Vital::vitalid.
Referenced by load_general_entry().
Mobile::Character * Pol::Core::chr_from_wornitems | ( | UContainer * | wornitems | ) |
Definition at line 1529 of file ufunc.cpp.
References Pol::Core::UContainer::get_chr_owner().
Referenced by Pol::Items::Item::check_unequip_script(), Pol::Items::Item::check_unequiptest_scripts(), Pol::Items::Item::extricate(), Pol::Items::Item::GetCharacterOwner(), Pol::Items::UArmor::set_script_member_id(), and Pol::Items::Item::set_script_member_id().
void Pol::Core::clean_resources | ( | ) |
Definition at line 488 of file resource.cpp.
References gamestate, and Pol::Core::GameState::resourcedefs.
Referenced by Pol::Core::GameState::cleanup_vars().
void Pol::Core::clean_skills | ( | ) |
Definition at line 93 of file uoskills.cpp.
References gamestate, and Pol::Core::GameState::uo_skills.
Referenced by Pol::Core::GameState::cleanup_vars().
void Pol::Core::clean_spells | ( | ) |
Definition at line 502 of file spells.cpp.
References gamestate, Pol::Core::GameState::spellcircles, and Pol::Core::GameState::spells.
Referenced by Pol::Core::GameState::cleanup_vars(), and VALID_SPELL_ID().
void Pol::Core::clean_vitals | ( | ) |
Definition at line 71 of file vital.cpp.
References gamestate, Pol::Core::GameState::vitals, and Pol::Core::GameState::vitals_byname.
Referenced by Pol::Core::GameState::cleanup_vars().
void Pol::Core::clear_listen_points | ( | ) |
void Pol::Core::clear_save_index | ( | ) |
Definition at line 106 of file loaddata.cpp.
References Pol::Core::ObjectStorageManager::incremental_serial_index, and objStorageManager.
Referenced by read_data().
void Pol::Core::clear_script_profile_counters | ( | ) |
Definition at line 202 of file scrstore.cpp.
References ref_counted::count(), Pol::Bscript::EScriptProgram::instr_cycles, Pol::Bscript::EScriptProgram::invocations, POLLOG, scriptScheduler, and Pol::Core::ScriptScheduler::scrstore.
Referenced by Pol::Module::PolCore::call_method().
void Pol::Core::clear_tiledata | ( | ) |
Definition at line 389 of file uofile01.cpp.
References tiledata.
Referenced by Pol::UoTool::contour(), Pol::UoTool::findgraphic(), Pol::UoTool::findlandtile(), Pol::UoTool::findlandtileflags(), Pol::UoTool::flagsearch(), Pol::UoTool::landtileflagsearch(), Pol::UoTool::landtilehist(), Pol::UoTool::loschange(), Pol::UoConvert::UoConvertMain::main(), Pol::UoTool::mapdump(), Pol::UoTool::print_multis(), Pol::UoTool::print_statics(), Pol::UoTool::print_verdata_info(), Pol::UoTool::statics_histogram(), Pol::UoTool::verlandtile(), Pol::UoTool::vertile(), Pol::UoTool::write_polmap(), and Pol::UoTool::z_histogram().
bool Pol::Core::client_io_thread | ( | Network::Client * | client, |
bool | login | ||
) |
Definition at line 58 of file clientthread.cpp.
References Pol::Network::Client::acct, Pol::Network::AddressToString(), call_chr_scripts(), check_inactivity(), checkpoint(), Pol::Network::Client::checkpoint, Pol::Network::Client::chr, Pol::Network::ClientGameData::clear(), CLIENT_CHECKPOINT, Pol::Core::NetworkManager::clients, Pol::Core::NetworkManager::clientTransmit, Pol::Mobile::Character::cmdlevel(), Pol::Plib::SystemState::config, Pol::Mobile::Character::connected(), CoreSetSysTrayToolTip(), Pol::Network::Client::csocket, Pol::Mobile::Character::disconnect_cleanup(), Pol::Core::ScriptDef::exists(), Pol::Clib::exit_signalled, Pol::Clib::fdump(), Pol::Network::PacketRegistry::find_handler(), Pol::Network::Client::forceDisconnect(), Pol::Network::MSG_HANDLER::func, Pol::Network::Client::gd, Pol::Network::Client::have_queued_data(), Pol::Bscript::BObject::impptr(), Pol::Core::PolConfig::inactivity_disconnect_timeout, INFO_PRINT, INFO_PRINT_TRACE, Pol::Network::Client::instance_, INVALID_SOCKET, Pol::Network::Client::ipaddr, Pol::Core::TaskScheduler::is_dirty(), Pol::Bscript::BObject::isa(), Pol::Network::Client::isConnected(), Pol::Network::Client::isReallyConnected(), Pol::Network::Client::last_activity_at, Pol::Network::Client::last_packet_at, Pol::Core::PolConfig::min_cmdlvl_ignore_inactivity, Pol::Network::Client::movementqueue, Pol::Accounts::Account::name(), networkManager, Pol::Realms::Realm::notify_left(), Pol::Bscript::BObjectImp::OTLong, passert_r, Pol::Network::Client::pause_count, Pol::Network::PacketThrottler::pktbuffer, PKTOUT_53_WARN_CHARACTER_IDLE, pol_sleep_ms(), polclock(), POLCLOCKS_PER_SEC, POLLOG, POLLOG_ERROR, process_data(), Pol::Core::ScriptDef::quickconfig(), Pol::Core::ULWObject::realm, Pol::Network::Client::restart(), restart_all_clients(), run_script_to_completion(), Pol::Core::PolConfig::select_timeout_usecs, Pol::Network::PktHelper::PacketOut< T >::Send(), send_pulse(), Pol::Network::Client::send_queued_data(), SOCKET_ERRNO, socket_errno, Pol::Network::Client::SpeedHackPrevention(), Pol::Plib::systemstate, ToolTipPrioritySystem, Pol::Clib::tostring(), Pol::Network::Client::unregister(), Pol::Bscript::BLong::value(), and wake_tasks_thread().
Referenced by Pol::Core::UoClientThread::run(), and uo_client_listener_thread().
void Pol::Core::ClientCreateChar | ( | Network::Client * | client, |
PKTIN_00 * | msg | ||
) |
Definition at line 201 of file create.cpp.
References Pol::Network::Client::acct, Pol::Mobile::Character::acct, Pol::Core::UContainer::add(), add_item_to_world(), Pol::Bscript::Executor::addModule(), Pol::Network::AddressToString(), Pol::Mobile::Character::attribute(), Pol::Mobile::Attribute::attrid, Pol::Mobile::AttributeValue::base(), Pol::Core::PKTIN_00::BeardColor, Pol::Core::PKTIN_00::BeardStyle, Pol::Mobile::Character::calc_vital_stuff(), Pol::Core::UContainer::can_add_to_slot(), cfBEu16, Pol::Core::PolConfig::character_slots, Pol::Core::PKTIN_00::CharNumber, Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Core::PKTIN_00::clientflag, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_7000, Pol::Mobile::Character::cmdlevel(), Pol::Core::UObject::color, Pol::Plib::SystemState::config, Pol::Items::Item::create(), create_script_executor(), Pol::Mobile::Character::created_at, Pol::Module::OSExecutorModule::critical, ctBEu32, Pol::Accounts::Account::default_cmdlevel(), Pol::Accounts::Account::default_privlist(), Pol::Core::UObject::destroy(), Pol::Core::PKTIN_00::Dexterity, Pol::Network::Client::Disconnect(), Pol::Mobile::Character::equip(), Pol::Mobile::Character::equippable(), ERROR_PRINT, Pol::Core::UObject::facing, FACING_W, find_script(), Pol::Network::FLAG_GENDER, Pol::Network::FLAG_RACE, Pol::Network::Client::forceDisconnect(), Pol::Core::NetworkManager::game_filter, gamestate, Pol::Mobile::Character::gender, GENDER_FEMALE, GENDER_MALE, ref_ptr< T >::get(), Pol::Accounts::Account::get_character(), GetNextSerialNumber(), GetUOSkill(), Pol::Core::ULWObject::graphic, Pol::Core::PKTIN_00::HairColor, Pol::Core::PKTIN_00::HairStyle, Pol::Accounts::Account::has_active_characters(), Pol::Core::ObjectHash::Insert(), Pol::Core::PKTIN_00::Intelligence, Pol::Network::Client::ipaddr, Pol::Network::Client::ipaddrAsString(), Pol::Items::Item::layer, LAYER_BACKPACK, LAYER_BEARD, LAYER_HAIR, LAYER_HAND1, LAYER_ROBE_DRESS, LAYER_SHOES, LOGIN_ERROR_MISC, LOGIN_ERROR_OTHER_CHAR_INUSE, make_mobileref(), Pol::Core::UoClientGeneral::maxskills, move_item(), Pol::Network::Client::msgtype_filter, Pol::Accounts::Account::name(), Pol::Core::PKTIN_00::Name, Pol::Core::UObject::name_, networkManager, Pol::Items::Item::newbie(), Pol::Core::ServSpecOpt::newbie_starting_equipment, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Core::UObject::objtype_, Pol::Core::UOExecutor::os_module, Pol::Core::PKTIN_00::pantscolor, Pol::Core::UOSkill::pAttr, Pol::Core::GameState::pAttrDexterity, Pol::Core::GameState::pAttrIntelligence, Pol::Core::GameState::pAttrStrength, Pol::Realms::PlayerEnter, POLLOG, Pol::Mobile::Character::position_changed(), Pol::Core::PKTIN_00::profession, Pol::Bscript::Executor::pushArg(), Pol::Mobile::Character::race, RACE_ELF, RACE_GARGOYLE, RACE_HUMAN, read_gameclock(), Pol::Core::ULWObject::realm, register_with_supporting_multi(), run_logon_script(), schedule_executor(), send_login_error(), Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, ref_ptr< T >::set(), Pol::Accounts::Account::set_character(), Pol::Mobile::Character::set_privs(), Pol::Mobile::Character::set_vitals_to_maximum(), Pol::Items::Item::setamount(), SetCharacterWorldPosition(), Pol::Bscript::Executor::setProgram(), settingsManager, Pol::Core::PKTIN_00::Sex, Pol::Core::PKTIN_00::shirtcolor, Pol::Core::PKTIN_00::SkillNumber1, Pol::Core::PKTIN_00::SkillNumber2, Pol::Core::PKTIN_00::SkillNumber3, Pol::Core::PKTIN_00::SkillValue1, Pol::Core::PKTIN_00::SkillValue2, Pol::Core::PKTIN_00::SkillValue3, Pol::Core::PKTIN_00::SkinColor, Pol::Items::Item::slot_index(), Pol::Core::SettingsManager::ssopt, start_client_char(), Pol::Core::PKTIN_00::StartIndex, Pol::Core::ServSpecOpt::starting_gold, Pol::Core::GameState::startlocations, Pol::Core::PKTIN_00::Strength, Pol::Plib::systemstate, tilelayer(), Pol::Core::ServSpecOpt::total_stats_at_creation, Pol::Mobile::Character::truecolor, Pol::Mobile::Character::trueobjtype, UOBJ_BACKPACK, UOBJ_ELF_FEMALE, UOBJ_ELF_MALE, UOBJ_GARGOYLE_FEMALE, UOBJ_GARGOYLE_MALE, UOBJ_HUMAN_FEMALE, UOBJ_HUMAN_MALE, Pol::Core::NetworkManager::uoclient_general, Pol::Network::Client::UOExpansionFlagClient, validbeard(), validhair(), Pol::Mobile::Character::wornitems, Pol::Core::Coordinate::x, Pol::Core::ULWObject::x, Pol::Core::Coordinate::y, Pol::Core::ULWObject::y, Pol::Core::Coordinate::z, and Pol::Core::ULWObject::z.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::ClientCreateChar70160 | ( | Network::Client * | client, |
PKTIN_F8 * | msg | ||
) |
Definition at line 953 of file create.cpp.
References Pol::Network::Client::acct, Pol::Mobile::Character::acct, Pol::Core::UContainer::add(), add_item_to_world(), Pol::Bscript::Executor::addModule(), Pol::Network::AddressToString(), Pol::Mobile::Character::attribute(), Pol::Mobile::Attribute::attrid, Pol::Mobile::AttributeValue::base(), Pol::Core::PKTIN_F8::BeardColor, Pol::Core::PKTIN_F8::BeardStyle, Pol::Mobile::Character::calc_vital_stuff(), Pol::Core::UContainer::can_add_to_slot(), cfBEu16, Pol::Core::PolConfig::character_slots, Pol::Core::PKTIN_F8::CharNumber, Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Core::PKTIN_F8::clientflag, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_7000, Pol::Mobile::Character::cmdlevel(), Pol::Core::UObject::color, Pol::Plib::SystemState::config, Pol::Items::Item::create(), create_script_executor(), Pol::Mobile::Character::created_at, Pol::Module::OSExecutorModule::critical, ctBEu32, Pol::Accounts::Account::default_cmdlevel(), Pol::Accounts::Account::default_privlist(), Pol::Core::UObject::destroy(), Pol::Core::PKTIN_F8::Dexterity, Pol::Network::Client::Disconnect(), Pol::Mobile::Character::equip(), Pol::Mobile::Character::equippable(), ERROR_PRINT, Pol::Core::UObject::facing, FACING_W, find_script(), Pol::Network::FLAG_GENDER, Pol::Network::FLAG_RACE, Pol::Network::Client::forceDisconnect(), Pol::Core::NetworkManager::game_filter, gamestate, Pol::Mobile::Character::gender, GENDER_FEMALE, GENDER_MALE, ref_ptr< T >::get(), Pol::Accounts::Account::get_character(), GetNextSerialNumber(), GetUOSkill(), Pol::Core::ULWObject::graphic, Pol::Core::PKTIN_F8::HairColor, Pol::Core::PKTIN_F8::HairStyle, Pol::Accounts::Account::has_active_characters(), Pol::Core::ObjectHash::Insert(), Pol::Core::PKTIN_F8::Intelligence, Pol::Network::Client::ipaddr, Pol::Network::Client::ipaddrAsString(), Pol::Items::Item::layer, LAYER_BACKPACK, LAYER_BEARD, LAYER_HAIR, LAYER_HAND1, LAYER_ROBE_DRESS, LAYER_SHOES, LOGIN_ERROR_MISC, LOGIN_ERROR_OTHER_CHAR_INUSE, make_mobileref(), Pol::Core::UoClientGeneral::maxskills, move_item(), Pol::Network::Client::msgtype_filter, Pol::Accounts::Account::name(), Pol::Core::PKTIN_F8::Name, Pol::Core::UObject::name_, networkManager, Pol::Items::Item::newbie(), Pol::Core::ServSpecOpt::newbie_starting_equipment, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Core::UObject::objtype_, Pol::Core::UOExecutor::os_module, Pol::Core::PKTIN_F8::pantscolor, Pol::Core::UOSkill::pAttr, Pol::Core::GameState::pAttrDexterity, Pol::Core::GameState::pAttrIntelligence, Pol::Core::GameState::pAttrStrength, Pol::Realms::PlayerEnter, POLLOG, Pol::Mobile::Character::position_changed(), Pol::Core::PKTIN_F8::profession, Pol::Bscript::Executor::pushArg(), Pol::Mobile::Character::race, RACE_ELF, RACE_GARGOYLE, RACE_HUMAN, read_gameclock(), Pol::Core::ULWObject::realm, register_with_supporting_multi(), run_logon_script(), schedule_executor(), send_login_error(), Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, ref_ptr< T >::set(), Pol::Accounts::Account::set_character(), Pol::Mobile::Character::set_privs(), Pol::Mobile::Character::set_vitals_to_maximum(), Pol::Items::Item::setamount(), SetCharacterWorldPosition(), Pol::Bscript::Executor::setProgram(), settingsManager, Pol::Core::PKTIN_F8::Sex, Pol::Core::PKTIN_F8::shirtcolor, SKILLID_EVALUATINGINTEL, SKILLID_SPIRITSPEAK, Pol::Core::PKTIN_F8::SkillNumber1, Pol::Core::PKTIN_F8::SkillNumber2, Pol::Core::PKTIN_F8::SkillNumber3, Pol::Core::PKTIN_F8::SkillNumber4, Pol::Core::PKTIN_F8::SkillValue1, Pol::Core::PKTIN_F8::SkillValue2, Pol::Core::PKTIN_F8::SkillValue3, Pol::Core::PKTIN_F8::SkillValue4, Pol::Core::PKTIN_F8::SkinColor, Pol::Items::Item::slot_index(), Pol::Core::SettingsManager::ssopt, start_client_char(), Pol::Core::PKTIN_F8::StartIndex, Pol::Core::ServSpecOpt::starting_gold, Pol::Core::GameState::startlocations, Pol::Core::PKTIN_F8::Strength, Pol::Plib::systemstate, tilelayer(), Pol::Core::ServSpecOpt::total_stats_at_creation, Pol::Mobile::Character::truecolor, Pol::Mobile::Character::trueobjtype, UOBJ_BACKPACK, UOBJ_ELF_FEMALE, UOBJ_ELF_MALE, UOBJ_GARGOYLE_FEMALE, UOBJ_GARGOYLE_MALE, UOBJ_HUMAN_FEMALE, UOBJ_HUMAN_MALE, Pol::Core::NetworkManager::uoclient_general, Pol::Network::Client::UOExpansionFlagClient, validbeard(), validhair(), Pol::Mobile::Character::wornitems, Pol::Core::Coordinate::x, Pol::Core::ULWObject::x, Pol::Core::Coordinate::y, Pol::Core::ULWObject::y, Pol::Core::Coordinate::z, and Pol::Core::ULWObject::z.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::ClientCreateCharKR | ( | Network::Client * | client, |
PKTIN_8D * | msg | ||
) |
Definition at line 595 of file create.cpp.
References Pol::Network::Client::acct, Pol::Mobile::Character::acct, Pol::Core::UContainer::add(), add_item_to_world(), Pol::Bscript::Executor::addModule(), Pol::Network::AddressToString(), Pol::Mobile::Character::attribute(), Pol::Mobile::Attribute::attrid, Pol::Mobile::AttributeValue::base(), Pol::Core::PKTIN_8D::beardcolor, Pol::Core::PKTIN_8D::beardstyle, Pol::Mobile::Character::calc_vital_stuff(), Pol::Core::UContainer::can_add_to_slot(), cfBEu16, Pol::Core::PKTIN_8D::char_slot, Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Mobile::Character::cmdlevel(), Pol::Core::UObject::color, Pol::Items::Item::create(), create_script_executor(), Pol::Mobile::Character::created_at, Pol::Module::OSExecutorModule::critical, ctBEu32, Pol::Accounts::Account::default_cmdlevel(), Pol::Accounts::Account::default_privlist(), Pol::Core::UObject::destroy(), Pol::Core::PKTIN_8D::dexterity, Pol::Network::Client::Disconnect(), Pol::Mobile::Character::equip(), Pol::Mobile::Character::equippable(), ERROR_PRINT, Pol::Core::PKTIN_8D::face_color, Pol::Core::PKTIN_8D::face_id, Pol::Core::UObject::facing, FACING_W, find_script(), Pol::Core::PKTIN_8D::flags, Pol::Network::Client::forceDisconnect(), Pol::Core::NetworkManager::game_filter, gamestate, Pol::Core::PKTIN_8D::gender, Pol::Mobile::Character::gender, GENDER_FEMALE, GENDER_MALE, ref_ptr< T >::get(), Pol::Accounts::Account::get_character(), GetNextSerialNumber(), GetUOSkill(), Pol::Core::ULWObject::graphic, Pol::Core::PKTIN_8D::haircolor, Pol::Core::PKTIN_8D::hairstyle, Pol::Accounts::Account::has_active_characters(), Pol::Core::ObjectHash::Insert(), Pol::Core::PKTIN_8D::intelligence, Pol::Network::Client::ipaddr, Pol::Network::Client::ipaddrAsString(), Pol::Items::Item::layer, LAYER_BACKPACK, LAYER_BEARD, LAYER_FACE, LAYER_HAIR, LAYER_HAND1, LAYER_ROBE_DRESS, LAYER_SHOES, LOGIN_ERROR_MISC, LOGIN_ERROR_OTHER_CHAR_INUSE, make_mobileref(), Pol::Core::UoClientGeneral::maxskills, move_item(), Pol::Network::Client::msgtype_filter, Pol::Accounts::Account::name(), Pol::Core::PKTIN_8D::name, Pol::Core::UObject::name_, networkManager, Pol::Items::Item::newbie(), Pol::Core::ServSpecOpt::newbie_starting_equipment, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Core::UObject::objtype_, Pol::Core::UOExecutor::os_module, Pol::Core::PKTIN_8D::pantscolor, Pol::Core::UOSkill::pAttr, Pol::Core::GameState::pAttrDexterity, Pol::Core::GameState::pAttrIntelligence, Pol::Core::GameState::pAttrStrength, Pol::Realms::PlayerEnter, POLLOG, Pol::Mobile::Character::position_changed(), Pol::Core::PKTIN_8D::profession, Pol::Bscript::Executor::pushArg(), Pol::Core::PKTIN_8D::race, Pol::Mobile::Character::race, RACE_ELF, RACE_GARGOYLE, RACE_HUMAN, read_gameclock(), Pol::Core::ULWObject::realm, register_with_supporting_multi(), run_logon_script(), schedule_executor(), send_login_error(), Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, ref_ptr< T >::set(), Pol::Accounts::Account::set_character(), Pol::Mobile::Character::set_privs(), Pol::Mobile::Character::set_vitals_to_maximum(), Pol::Items::Item::setamount(), SetCharacterWorldPosition(), Pol::Bscript::Executor::setProgram(), settingsManager, Pol::Core::PKTIN_8D::shirtcolor, Pol::Core::PKTIN_8D::skillnumber1, Pol::Core::PKTIN_8D::skillnumber2, Pol::Core::PKTIN_8D::skillnumber3, Pol::Core::PKTIN_8D::skillnumber4, Pol::Core::PKTIN_8D::skillvalue1, Pol::Core::PKTIN_8D::skillvalue2, Pol::Core::PKTIN_8D::skillvalue3, Pol::Core::PKTIN_8D::skillvalue4, Pol::Core::PKTIN_8D::skin_color, Pol::Items::Item::slot_index(), Pol::Core::SettingsManager::ssopt, start_client_char(), Pol::Core::ServSpecOpt::starting_gold, Pol::Core::GameState::startlocations, Pol::Core::PKTIN_8D::strength, Pol::Plib::systemstate, tilelayer(), Pol::Core::ServSpecOpt::total_stats_at_creation, Pol::Mobile::Character::truecolor, Pol::Mobile::Character::trueobjtype, UOBJ_BACKPACK, UOBJ_ELF_FEMALE, UOBJ_ELF_MALE, UOBJ_GARGOYLE_FEMALE, UOBJ_GARGOYLE_MALE, UOBJ_HUMAN_FEMALE, UOBJ_HUMAN_MALE, Pol::Core::NetworkManager::uoclient_general, Pol::Network::Client::UOExpansionFlagClient, validbeard(), validface(), validhair(), Pol::Mobile::Character::wornitems, Pol::Core::Coordinate::x, Pol::Core::ULWObject::x, Pol::Core::Coordinate::y, Pol::Core::ULWObject::y, Pol::Core::Coordinate::z, and Pol::Core::ULWObject::z.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
bool Pol::Core::clientHasCharacter | ( | Client * | c | ) |
Definition at line 1942 of file ufunc.cpp.
References Pol::Network::Client::chr.
Referenced by char_select().
void Pol::Core::ClrCharacterWorldPosition | ( | Mobile::Character * | chr, |
Realms::WorldChangeReason | reason | ||
) |
Definition at line 149 of file uworld.cpp.
References Pol::Core::Zone::characters, CLASS_NPC, find_missing_char_in_zone(), getzone(), Pol::Core::ULWObject::isa(), Pol::Core::Zone::npcs, passert, Pol::Core::ULWObject::realm, Pol::Realms::Realm::remove_mobile(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Mobile::NPC::on_death(), and Pol::Network::Client::PreDelete().
void Pol::Core::ClrItemWorldPosition | ( | Items::Item * | item | ) |
void Pol::Core::combined_thread | ( | void | ) |
Definition at line 631 of file pol.cpp.
References calc_scheduler_clocksleft(), calc_script_clocksleft(), check_scheduled_tasks(), clock_t_to_ms, decay_single_thread(), decay_thread(), decay_thread_shadow(), Pol::Clib::exit_signalled, polclock(), Pol::Core::StateManager::profilevars, restart_all_clients(), Pol::Core::ProfileVars::script_passes, stateManager, step_scripts(), and wait_for_pulse().
Referenced by start_threads().
bool Pol::Core::commit | ( | const std::string & | basename | ) |
Definition at line 968 of file uimport.cpp.
References Pol::Plib::SystemState::config, Pol::Clib::FileExists(), POLLOG_ERROR, Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by commit_incremental_saves(), Pol::Bscript::EScriptProgramCheckpoint::EScriptProgramCheckpoint(), and write_data().
bool Pol::Core::commit_incremental | ( | const std::string & | basename | ) |
Definition at line 199 of file savedata.cpp.
References Pol::Plib::SystemState::config, Pol::Clib::FileExists(), POLLOG_ERROR, Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by save_incremental().
void Pol::Core::commit_incremental_saves | ( | ) |
Definition at line 302 of file savedata.cpp.
References commit(), and Pol::Clib::decint().
Referenced by write_data().
void Pol::Core::config_web_server | ( | ) |
Definition at line 107 of file polwww.cpp.
References Pol::Plib::Package::desc(), gamestate, load_mime_config(), Pol::Plib::SystemState::packages, POLLOG, Pol::Plib::Package::provides_system_home_page(), Pol::Plib::systemstate, and Pol::Core::GameState::wwwroot_pkg.
Referenced by http_thread().
void Pol::Core::console_thread | ( | void | ) |
Definition at line 783 of file pol.cpp.
References Pol::Core::ConsoleCommand::check_console_commands(), Pol::Clib::exit_signalled, INFO_PRINT, pol_sleep_ms(), Pol::Core::StateManager::polsig, reload_configuration(), Pol::Core::PolSig::reload_configuration_signalled, and stateManager.
Referenced by Pol::xmain_inner().
Definition at line 254 of file polservice.cpp.
Referenced by InitializeSystemTrayHandling().
Referenced by Pol::Core::USpellScroll::~USpellScroll().
bool Pol::Core::convertArrayToUC | ( | Bscript::ObjArray *& | in_text, |
u16 * | out_wtext, | ||
size_t | textlen, | ||
bool | ConvToBE, | ||
bool | nullterm | ||
) |
Definition at line 21 of file unicode.cpp.
References ctBEu16, Pol::Bscript::BObjectImp::isa(), Pol::Bscript::BObjectImp::OTLong, Pol::Bscript::ObjArray::ref_arr, and Pol::Bscript::BLong::value().
Referenced by Pol::Core::BPacket::call_method_id(), load_party_cfg_general(), Pol::Module::UnicodeExecutorModule::mf_BroadcastUC(), Pol::Module::ClilocExecutorModule::mf_PrintTextAboveCL(), Pol::Module::ClilocExecutorModule::mf_PrintTextAbovePrivateCL(), Pol::Module::UnicodeExecutorModule::mf_PrintTextAboveUC(), Pol::Module::UnicodeExecutorModule::mf_PrivateTextAboveUC(), Pol::Module::UnicodeExecutorModule::mf_RequestInputUC(), Pol::Module::UOExecutorModule::mf_SendCharProfile(), Pol::Module::PartyExecutorModule::mf_SendPartyMsg(), Pol::Module::PartyExecutorModule::mf_SendPrivatePartyMsg(), Pol::Module::ClilocExecutorModule::mf_SendSysMessageCL(), Pol::Module::UnicodeExecutorModule::mf_SendSysMessageUC(), Pol::Module::NPCExecutorModule::SayUC(), Pol::Mobile::Character::script_method_id(), Pol::Core::Party::send_member_msg_private(), and Pol::Core::Party::send_member_msg_public().
bool Pol::Core::convertUCtoArray | ( | const u16 * | in_wtext, |
Bscript::ObjArray *& | out_text, | ||
size_t | textlen, | ||
bool | ConvFromBE | ||
) |
Definition at line 46 of file unicode.cpp.
References Pol::Bscript::ObjArray::addElement(), and cfBEu16.
Referenced by Pol::Core::BPacket::call_method_id(), Pol::Network::Client::getclientinfo(), handle_char_profile_request(), handle_member_msg(), handle_party_msg(), Pol::Core::Party::send_member_msg_private(), Pol::Core::Party::send_member_msg_public(), start_textcmd_script(), and Pol::Module::UnicodeSpeechEvent::UnicodeSpeechEvent().
Items::Item* Pol::Core::copy_item | ( | const Items::Item * | src_item | ) |
void Pol::Core::CoreSetSysTrayToolTip | ( | const std::string & | text, |
Priority | priority | ||
) |
Definition at line 36 of file core.cpp.
References SetSysTrayPopupText().
Referenced by client_io_thread(), Pol::Core::UoClientThread::create(), Pol::Module::PolSystemExecutorModule::mf_SetSysTrayPopupText(), and Pol::xmain_inner().
void Pol::Core::count_resource_tiles | ( | ) |
Definition at line 250 of file resource.cpp.
References gamestate, and Pol::Core::GameState::resourcedefs.
Referenced by load_resource_cfg().
Bscript::BObjectImp * Pol::Core::create_debug_context | ( | ) |
Definition at line 267 of file poldbg.cpp.
References Pol::Core::DebugContextObjImp::DebugContextObjImp(), Pol::Core::DebugContext::process(), and Pol::Plib::systemstate.
Referenced by Pol::Module::OSExecutorModule::create_debug_context().
void Pol::Core::create_dummy_data | ( | ) |
UOExecutor * Pol::Core::create_full_script_executor | ( | ) |
Definition at line 653 of file scrsched.cpp.
References add_common_exmods().
std::string Pol::Core::create_nametags | ( | Mobile::Character * | chr | ) |
Definition at line 74 of file sngclick.cpp.
References Pol::Core::ServSpecOpt::core_handled_tags, Pol::Mobile::Character::deafened(), Pol::Mobile::Character::frozen(), Pol::Mobile::Character::invul(), Pol::Core::ServSpecOpt::invul_tag, Pol::Mobile::Character::paralyzed(), settingsManager, Pol::Mobile::Character::squelched(), and Pol::Core::SettingsManager::ssopt.
Referenced by singleclick().
const NpcTemplate& Pol::Core::create_npc_template | ( | const Clib::ConfigElem & | elem, |
const Plib::Package * | pkg | ||
) |
Definition at line 117 of file npctmpl.cpp.
References gamestate, Pol::Core::NpcTemplate::name, Pol::Core::GameState::npc_templates, and Pol::Core::NpcTemplate::NpcTemplate().
Referenced by find_npc_template(), and load_npc_templates().
UOExecutor * Pol::Core::create_script_executor | ( | ) |
Definition at line 644 of file scrsched.cpp.
References add_common_exmods().
Referenced by ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Testing::los_test(), Pol::Mobile::Character::run_hit_script(), start_http_script(), start_script(), Pol::Mobile::NPC::start_script(), Pol::Mobile::Character::start_script(), start_textcmd_script(), Pol::Items::Item::walk_on(), and Pol::Multi::UHouse::walk_on().
void Pol::Core::create_servers | ( | ) |
void Pol::Core::create_starting_locations | ( | ) |
void Pol::Core::create_stub_accounts | ( | ) |
void Pol::Core::createchar2 | ( | Accounts::Account * | acct, |
unsigned | index | ||
) |
Definition at line 570 of file create.cpp.
References Pol::Mobile::Character::acct, Pol::Core::UObject::color, Pol::Mobile::Character::created_at, ctBEu16, ctBEu32, Pol::Core::UObject::facing, find_realm(), Pol::Mobile::Character::gender, GENDER_MALE, GetNextSerialNumber(), Pol::Core::ULWObject::graphic, Pol::Core::ObjectHash::Insert(), Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Core::UObject::objtype_, Pol::Mobile::Character::position_changed(), read_gameclock(), Pol::Core::ULWObject::realm, Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, ref_ptr< T >::set(), Pol::Accounts::Account::set_character(), Pol::Core::UObject::setname(), Pol::Mobile::Character::truecolor, Pol::Mobile::Character::trueobjtype, UOBJ_HUMAN_MALE, Pol::Mobile::Character::wornitems, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Accounts::AccountObjImp::call_method_id().
void Pol::Core::CreateEmptyStoredConfigFile | ( | const std::string & | filename | ) |
Definition at line 338 of file cfgrepos.cpp.
References Pol::Core::ConfigurationBuffer::cfgfiles, configurationbuffer, and Pol::Core::StoredConfigFile::StoredConfigFile().
Referenced by Pol::Multi::load_special_storedconfig().
BObjectImp * Pol::Core::CreateStorageAreasImp | ( | ) |
Definition at line 422 of file storage.cpp.
Referenced by Pol::Bscript::TmplExecutorModule< T >::function_table(), and Pol::Module::StorageExecutorModule::mf_StorageAreas().
unsigned char Pol::Core::cvt_8to6 | ( | char | ch | ) |
Definition at line 275 of file polwww.cpp.
Referenced by decode_base64().
void Pol::Core::debug_listen_thread | ( | void | ) |
Definition at line 1319 of file poldbg.cpp.
References Pol::Clib::exit_signalled, Pol::Clib::SocketListener::GetConnection(), Pol::Clib::SocketClientThread::start(), and Pol::Plib::systemstate.
Referenced by start_threads().
void Pol::Core::decay_items | ( | ) |
Definition at line 114 of file decay.cpp.
References Pol::Core::StateManager::cycles_per_decay_worldzone, Pol::Core::StateManager::cycles_until_decay_worldzone, decay_worldzone(), gamestate, Pol::Realms::Realm::grid_height(), Pol::Realms::Realm::grid_width(), Pol::Core::GameState::Realms, and stateManager.
Referenced by Pol::xmain_inner().
void Pol::Core::decay_single_thread | ( | void * | arg | ) |
Definition at line 235 of file decay.cpp.
References Pol::Core::StateManager::active_decay, Pol::Clib::OnlineStatistics::count(), Pol::Core::StateManager::decay_statistics, decay_worldzone(), Pol::Core::StateManager::decayed, Pol::Clib::exit_signalled, gamestate, Pol::Clib::OnlineStatistics::max(), Pol::Clib::OnlineStatistics::mean(), pol_sleep_ms(), polclock_checkin(), POLLOG_ERROR, POLLOG_INFO, Pol::Core::GameState::Realms, restart_all_clients(), should_switch_realm(), stateManager, Pol::Plib::systemstate, Pol::Core::StateManager::temp_count_active, Pol::Core::StateManager::temp_count_decayed, Pol::Clib::OnlineStatistics::update(), and Pol::Clib::OnlineStatistics::variance().
Referenced by combined_thread().
void Pol::Core::decay_single_zone | ( | ) |
void Pol::Core::decay_single_zone | ( | Realms::Realm * | realm, |
unsigned | gridx, | ||
unsigned | gridy, | ||
unsigned & | wx, | ||
unsigned & | wy | ||
) |
[3] Decay Sweep Each 64x64 tile World Zone is checked for decay approximately once every 10 minutes
Definition at line 149 of file decay.cpp.
References decay_worldzone().
Referenced by decay_thread(), and decay_thread_shadow().
void Pol::Core::decay_thread | ( | void * | arg | ) |
Definition at line 163 of file decay.cpp.
References decay_single_zone(), Pol::Clib::exit_signalled, Pol::Realms::Realm::grid_height(), Pol::Realms::Realm::grid_width(), pol_sleep_ms(), polclock_checkin(), and restart_all_clients().
Referenced by combined_thread().
void Pol::Core::decay_thread_shadow | ( | void * | arg | ) |
Definition at line 188 of file decay.cpp.
References decay_single_zone(), Pol::Clib::exit_signalled, gamestate, pol_sleep_ms(), polclock_checkin(), restart_all_clients(), and Pol::Core::GameState::shadowrealms_by_id.
Referenced by combined_thread(), and Pol::Module::PolSystemExecutorModule::mf_AddRealm().
void Pol::Core::decay_worldzone | ( | unsigned | wx, |
unsigned | wy, | ||
Realms::Realm * | realm | ||
) |
[1] Item Decay Criteria An Item is allowed to decay if ALL of the following are true:
[2] Decay Action Container contents are moved to the ground at the Container's location before destroying the container.
Definition at line 55 of file decay.cpp.
References Pol::Core::ExportedFunction::call(), call_script(), Pol::Core::SystemHooks::can_decay, Pol::Items::Item::can_decay(), Pol::Plib::SystemState::config, Pol::Core::StateManager::decay_statistics, Pol::Items::ItemDesc::decays_on_multis, destroy_item(), Pol::Items::ItemDesc::destroy_script, Pol::Core::ScriptDef::empty(), Pol::Realms::Realm::find_supporting_multi(), gamestate, Pol::Items::Item::inuse(), Pol::Items::Item::itemdesc(), Pol::Core::Zone::items, Pol::Items::Item::make_ref(), read_gameclock(), Pol::Items::Item::should_decay(), Pol::Items::Item::spill_contents(), stateManager, Pol::Core::GameState::system_hooks, Pol::Plib::systemstate, Pol::Core::StateManager::temp_count_active, Pol::Core::StateManager::temp_count_decayed, Pol::Core::PolConfig::thread_decay_statistics, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, Pol::Core::ULWObject::z, and Pol::Realms::Realm::zone.
Referenced by decay_items(), decay_single_thread(), and decay_single_zone().
std::string Pol::Core::decode_base64 | ( | const std::string & | b64s | ) |
bool Pol::Core::decode_page | ( | const std::string & | ipage, |
Plib::Package ** | ppkg, | ||
std::string * | pfilename, | ||
std::string * | ppagetype, | ||
std::string * | redirect_to | ||
) |
Definition at line 474 of file polwww.cpp.
References Pol::Plib::Package::dir(), Pol::Clib::FileExists(), Pol::Plib::find_package(), gamestate, get_pagetype(), and Pol::Core::GameState::wwwroot_pkg.
Referenced by http_func(), and test_decode().
void Pol::Core::defer_item_insertion | ( | Items::Item * | item, |
pol_serial_t | container_serial | ||
) |
Definition at line 112 of file loaddata.cpp.
References Pol::Core::ObjectStorageManager::deferred_insertions, and objStorageManager.
Referenced by Pol::Core::StorageArea::load_item(), and read_global_item().
bool Pol::Core::defined_realm | ( | const std::string & | name | ) |
Definition at line 74 of file realms.cpp.
References gamestate, name, and Pol::Core::GameState::Realms.
Referenced by Pol::Module::PolSystemExecutorModule::mf_AddRealm(), and read_shadow_realms().
void Pol::Core::deinit_ipc_vars | ( | ) |
Definition at line 186 of file polsem.cpp.
Referenced by Pol::Core::GameState::deinitialize(), and polsem_unlock().
void Pol::Core::delete_character | ( | Accounts::Account * | acct, |
Mobile::Character * | chr, | ||
int | charidx | ||
) |
Definition at line 472 of file login.cpp.
References Pol::Mobile::Character::acct, ref_ptr< T >::clear(), Pol::Accounts::Account::clear_character(), Pol::Mobile::Character::destroy(), Pol::Mobile::Character::logged_in(), Pol::Accounts::Account::name(), Pol::Mobile::Character::on_delete_from_account(), POLLOG, and Pol::Core::ULWObject::serial.
Referenced by Pol::Accounts::AccountObjImp::call_method_id(), and handle_delete_character().
void Pol::Core::deregister_from_speech_events | ( | UOExecutor * | uoexec | ) |
Definition at line 101 of file listenpt.cpp.
References gamestate, and Pol::Core::GameState::listen_points.
Referenced by Pol::Module::UOExecutorModule::~UOExecutorModule().
void Pol::Core::deschedule_executor | ( | UOExecutor * | ex | ) |
void Pol::Core::destroy_item | ( | Item * | item | ) |
Definition at line 1538 of file ufunc.cpp.
References cfBEu32, Pol::Items::Item::classname(), Pol::Items::Item::container, Pol::Items::Item::description(), Pol::Core::UObject::destroy(), Pol::Items::Item::extricate(), POLLOG_ERROR, remove_item_from_world(), send_remove_object_to_inrange(), Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, and Pol::Core::UObject::set_dirty().
Referenced by Pol::Module::character_race_changer_handler(), Pol::Multi::CustomHouseDesign::ClearComponents(), decay_worldzone(), Pol::Multi::UHouse::destroy_components(), Pol::Multi::UBoat::destroy_components(), Pol::Module::UOExecutorModule::mf_DestroyItem(), Pol::Items::Item::script_method_id(), Pol::Core::UCorpse::spill_contents(), Pol::Core::UContainer::spill_contents(), and subtract_amount_from_item().
BOOL CALLBACK Pol::Core::DialogProc | ( | HWND | hwndDlg, |
UINT | uMsg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
Definition at line 107 of file polservice.cpp.
References BOOL(), Pol::Clib::exit_signalled, ID_POPUP_SHOWCONSOLE, ID_POPUP_STOP, ID_SHUTDOWN, ID_UPDATE_NOTIFYDATA, IDR_POPUP, and WM_ICON_NOTIFY.
Referenced by SystemTrayDialogThread().
void Pol::Core::disband_party | ( | u32 | leader | ) |
Definition at line 824 of file party.cpp.
References gamestate, and Pol::Core::GameState::parties.
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), handle_decline_invite(), handle_remove(), handle_remove_member_cursor(), invite_timeout(), Pol::Module::PartyExecutorModule::mf_DisbandParty(), and on_loggoff_party().
void Pol::Core::display_leftover_objects | ( | ) |
Definition at line 976 of file pol.cpp.
References Pol::Bscript::display_bobjectimp_instances(), Pol::Bscript::display_executor_instances(), display_reftypes(), display_unreaped_orphan_instances(), Pol::Bscript::eobject_imp_count, Pol::Bscript::executor_count, INFO_PRINT, Pol::Clib::OFStreamWriter::init(), Pol::Core::UObjCount::npc_count, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Core::ObjectHash::PrintContents(), stateManager, Pol::Core::UObjCount::ucharacter_count, Pol::Core::UObjCount::uitem_count, Pol::Core::UObjCount::umulti_count, Pol::Core::UObjCount::unreaped_orphans, Pol::Core::UObjCount::uobj_count_echrref, Pol::Core::StateManager::uobjcount, and Pol::Core::UObjCount::uobject_count.
Referenced by Pol::Core::GameState::deinitialize(), and Pol::Core::GameState::~GameState().
int Pol::Core::display_orphan | ( | UObject * | o | ) |
Definition at line 45 of file uobject.cpp.
References INFO_PRINT, Pol::Core::UObject::name(), orphans_txt(), Pol::Core::UObject::printOn(), Pol::Core::UObject::printOnDebug(), and Pol::Core::UObject::ref_counted_count().
Referenced by display_unreaped_orphan_instances().
void Pol::Core::display_reftypes | ( | ) |
Definition at line 25 of file reftypes.cpp.
References ref_ptr< T >::clear(), INFO_PRINT, and ref_ptr< T >::set().
Referenced by check_incoming_data(), and display_leftover_objects().
void Pol::Core::display_unreaped_orphan_instances | ( | ) |
Definition at line 57 of file uobject.cpp.
References Pol::Core::UObject::clean_writes, Pol::Core::UObject::dirty_writes, and display_orphan().
Referenced by check_incoming_data(), and display_leftover_objects().
void Pol::Core::do_cast | ( | Network::Client * | client, |
u16 | spellid | ||
) |
Definition at line 278 of file spells.cpp.
References Pol::Core::ExportedFunction::call(), Pol::Core::USpell::cast(), Pol::Mobile::Character::casting_spell(), Pol::Network::Client::chr, ERROR_PRINT, Pol::Mobile::Character::frozen(), gamestate, knows_spell(), make_mobileref(), nocast_here(), Pol::Core::SystemHooks::on_cast_hook, Pol::Mobile::Character::paralyzed(), private_say_above(), Pol::Network::Client::restart(), Pol::Mobile::Character::schedule_spell(), send_sysmessage(), Pol::Mobile::Character::skill_ex_active(), Pol::Core::GameState::spells, Pol::Core::GameState::system_hooks, and Pol::Plib::systemstate.
Referenced by handle_cast_spell(), handle_msg_BF(), invoke(), and VALID_SPELL_ID().
bool Pol::Core::do_open_trade_window | ( | Network::Client * | client, |
Items::Item * | item, | ||
Mobile::Character * | dropon | ||
) |
Definition at line 551 of file dropitem.cpp.
References Pol::Core::PKTBI_6F::ACTION_INIT, Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Mobile::Character::create_trade_container(), Pol::Core::UObject::name(), place_item_in_secure_trade_container(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_trade_container(), Pol::Core::UObject::serial_ext, Pol::Mobile::Character::trade_accepted(), Pol::Mobile::Character::trade_container(), and Pol::Mobile::Character::trading_with.
Referenced by open_trade_window(), and send_trade_container().
bool Pol::Core::do_place_item_in_secure_trade_container | ( | Network::Client * | client, |
Items::Item * | item, | ||
UContainer * | cont, | ||
Mobile::Character * | dropon, | ||
u16 | x, | ||
u16 | y, | ||
u8 | move_type | ||
) |
Definition at line 214 of file dropitem.cpp.
References Pol::Core::UContainer::add(), Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Core::UContainer::MT_CORE_MOVED, Pol::Core::UContainer::MT_PLAYER, Pol::Core::UContainer::on_insert_add_item(), Pol::Network::Client::pause(), Pol::Network::Client::restart(), send_put_in_container(), send_remove_object_to_inrange(), send_trade_statuses(), Pol::Mobile::Character::trade_accepted(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by place_item_in_container(), and place_item_in_secure_trade_container().
void Pol::Core::doubleclick | ( | Network::Client * | client, |
PKTIN_06 * | msg | ||
) |
Definition at line 78 of file dblclick.cpp.
References Pol::Core::UContainer::builtin_on_use(), Pol::Mobile::NPC::can_accept_event(), Pol::Mobile::Character::can_dblclickany(), cfBEu32, Pol::Network::Client::chr, CLASS_NPC, Pol::Core::ServSpecOpt::dblclick_wait, Pol::Mobile::Character::dead(), Pol::Items::Item::double_click(), EVID_DOUBLECLICKED, Pol::Core::ScriptDef::exists(), find_character(), Pol::Core::UContainer::find_container(), find_legal_item(), find_script2(), Pol::Mobile::Character::frozen(), ref_ptr< T >::get(), Pol::Core::ULWObject::graphic, Pol::Realms::Realm::has_los(), inrange(), Pol::Mobile::Character::is_trading(), Pol::Core::ULWObject::isa(), IsCharacter(), Pol::Items::Item::itemdesc(), Pol::Core::ULockable::locked(), Pol::Mobile::Character::paralyzed(), pol_distance(), private_say_above(), Pol::Core::ScriptDef::quickconfig(), read_gameclock(), Pol::Core::ULWObject::realm, Pol::Core::UObject::self_as_owner(), Pol::Mobile::NPC::send_event(), send_paperdoll(), Pol::Core::ULWObject::serial, Pol::Core::PKTIN_06::serial, settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Mobile::Character::start_script(), Pol::Plib::systemstate, Pol::Items::Item::toplevel_owner(), Pol::Mobile::Character::trade_container(), Pol::Mobile::Character::trading_with, UOBJ_ELF_FEMALE, UOBJ_ELF_FEMALE_GHOST, UOBJ_ELF_MALE, UOBJ_ELF_MALE_GHOST, UOBJ_GAMEMASTER, UOBJ_GARGOYLE_FEMALE, UOBJ_GARGOYLE_FEMALE_GHOST, UOBJ_GARGOYLE_MALE, UOBJ_GARGOYLE_MALE_GHOST, UOBJ_HUMAN_FEMALE, UOBJ_HUMAN_FEMALE_GHOST, UOBJ_HUMAN_MALE, and UOBJ_HUMAN_MALE_GHOST.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::drop_item | ( | Network::Client * | client, |
PKTIN_08_V1 * | msg | ||
) |
Definition at line 792 of file dropitem.cpp.
References cfBEu16, cfBEu32, Pol::Network::Client::chr, drop_item_on_ground(), drop_item_on_object(), Pol::Items::Item::inuse(), Pol::Core::PKTIN_08_V1::item_serial, Pol::Core::ULWObject::orphan(), place_item(), POLLOG_ERROR, send_full_statmsg(), Pol::Core::ULWObject::serial, system_find_multi(), Pol::Core::PKTIN_08_V1::target_serial, undo_get_item(), Pol::Core::ULWObject::x, Pol::Core::PKTIN_08_V1::x, Pol::Core::ULWObject::y, Pol::Core::PKTIN_08_V1::y, and Pol::Core::PKTIN_08_V1::z.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
bool Pol::Core::drop_item_on_ground | ( | Network::Client * | client, |
Items::Item * | item, | ||
u16 | x, | ||
u16 | y, | ||
s8 | z | ||
) |
Definition at line 359 of file dropitem.cpp.
References add_item_to_world(), Pol::Mobile::Character::can_moveanydist(), Pol::Network::Client::chr, CLASS_CONTAINER, Pol::Items::Item::container, Pol::Realms::Realm::dropheight(), Pol::Core::UContainer::for_each_item(), Pol::Realms::Realm::has_los(), inrangex(), Pol::Core::ULWObject::isa(), MOVE_ITEM_FAILURE_OUT_OF_SIGHT, MOVE_ITEM_FAILURE_TOO_FAR_AWAY, MOVE_ITEM_FAILURE_UNKNOWN, Pol::Core::UObject::name(), Pol::Items::Item::no_drop(), POLLOG_ERROR, Pol::Core::ULWObject::realm, Pol::Multi::UMulti::register_object(), Pol::Items::Item::reset_slot(), Pol::Items::Item::restart_decay_timer(), send_item_move_failure(), send_item_to_inrange(), Pol::Core::UObject::set_dirty(), setrealm(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by drop_item(), and drop_item_v2().
bool Pol::Core::drop_item_on_mobile | ( | Network::Client * | client, |
Items::Item * | item, | ||
u32 | target_serial, | ||
u8 | slotIndex | ||
) |
Definition at line 591 of file dropitem.cpp.
References Pol::Core::UContainer::add_at_random_location(), Pol::Core::ExportedFunction::call(), Pol::Mobile::NPC::can_accept_event(), Pol::Core::UContainer::can_add_to_slot(), Pol::Mobile::Character::can_moveanydist(), Pol::Core::SystemHooks::can_trade, Pol::Network::Client::chr, CLASS_NPC, Pol::Items::Item::container, EVID_ITEM_GIVEN, find_character(), find_giveitem_container(), gamestate, Pol::Core::UContainer::get_random_location(), Pol::Realms::Realm::has_los(), Pol::Core::ULWObject::isa(), MOVE_ITEM_FAILURE_OUT_OF_SIGHT, MOVE_ITEM_FAILURE_TOO_FAR_AWAY, MOVE_ITEM_FAILURE_UNKNOWN, Pol::Items::Item::no_drop(), Pol::Mobile::NPC::no_drop_exception(), open_trade_window(), Pol::Network::Client::pause(), pol_distance(), Pol::Core::ULWObject::realm, Pol::Network::Client::restart(), Pol::Mobile::NPC::send_event(), send_item_move_failure(), send_remove_object_to_inrange(), Pol::Core::UObject::set_dirty(), Pol::Items::Item::slot_index(), Pol::Core::GameState::system_hooks, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by drop_item_on_object().
bool Pol::Core::drop_item_on_object | ( | Network::Client * | client, |
Items::Item * | item, | ||
u32 | target_serial, | ||
u8 | slotIndex | ||
) |
Definition at line 683 of file dropitem.cpp.
References Pol::Items::Item::add_to_self(), Pol::Mobile::Character::backpack(), Pol::Core::UContainer::begin(), Pol::Core::UContainer::can_add(), Pol::Items::Item::can_add_to_self(), Pol::Core::UContainer::can_insert_increase_stack(), Pol::Mobile::Character::can_moveanydist(), Pol::Network::Client::chr, drop_item_on_mobile(), Pol::Core::UContainer::end(), find_legal_container(), GET_ITEM_PTR, Pol::Core::UContainer::get_random_location(), Pol::Items::Item::getamount(), Pol::Realms::Realm::has_los(), IsCharacter(), MOVE_ITEM_FAILURE_OUT_OF_SIGHT, MOVE_ITEM_FAILURE_TOO_FAR_AWAY, MOVE_ITEM_FAILURE_UNKNOWN, Pol::Core::UContainer::MT_PLAYER, Pol::Items::Item::no_drop(), Pol::Core::UContainer::no_drop_exception(), Pol::Core::UContainer::on_insert_increase_stack(), Pol::Core::ULWObject::orphan(), place_item_in_container(), pol_distance(), Pol::Core::ULWObject::realm, send_item_move_failure(), Pol::Core::ULWObject::serial, Pol::Items::Item::stackable(), Pol::Items::Item::toplevel_owner(), and update_item_to_inrange().
Referenced by drop_item(), and drop_item_v2().
void Pol::Core::drop_item_v2 | ( | Network::Client * | client, |
PKTIN_08_V2 * | msg | ||
) |
Definition at line 861 of file dropitem.cpp.
References cfBEu16, cfBEu32, Pol::Network::Client::chr, drop_item_on_ground(), drop_item_on_object(), Pol::Items::Item::inuse(), Pol::Core::PKTIN_08_V2::item_serial, Pol::Core::ULWObject::orphan(), place_item(), POLLOG_ERROR, Pol::Network::PktHelper::PacketOut< T >::Send(), send_full_statmsg(), Pol::Core::ULWObject::serial, Pol::Core::PKTIN_08_V2::slotindex, system_find_multi(), Pol::Core::PKTIN_08_V2::target_serial, undo_get_item(), Pol::Core::ULWObject::x, Pol::Core::PKTIN_08_V2::x, Pol::Core::ULWObject::y, Pol::Core::PKTIN_08_V2::y, and Pol::Core::PKTIN_08_V2::z.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
|
inline |
Definition at line 43 of file polclock.h.
References polclock(), and poltime().
Referenced by Pol::Core::RepSystem::on_pc_attacks_pc(), and Pol::Core::RepSystem::repsys_task().
std::string Pol::Core::elapsed | ( | clock_t | start, |
clock_t | end | ||
) |
Definition at line 357 of file uimport.cpp.
References Pol::Clib::decint().
Referenced by Pol::Core::UOExecutor::~UOExecutor().
Bscript::BObjectImp * Pol::Core::equip_from_template | ( | Mobile::Character * | chr, |
const char * | template_name | ||
) |
Definition at line 114 of file textcmd.cpp.
References Pol::Core::UObject::color, Pol::Items::Item::create(), Pol::Core::UObject::destroy(), Pol::Mobile::Character::equip(), Pol::Mobile::Character::equippable(), ERROR_PRINT, FindEquipTemplate(), Pol::Items::get_objtype_byname(), Pol::Core::ULWObject::graphic, ISTRINGSTREAM, Pol::Items::Item::layer, Pol::Core::ULWObject::realm, Pol::Clib::ConfigElem::remove_prop(), send_client_char_data(), tilelayer(), update_item_to_inrange(), and VALID_ITEM_COLOR_MASK.
Referenced by Pol::Module::UOExecutorModule::mf_EquipFromTemplate().
void Pol::Core::equip_item | ( | Network::Client * | client, |
PKTIN_13 * | msg | ||
) |
Definition at line 30 of file eqpitem.cpp.
References Pol::Mobile::Character::can_clothe(), cfBEu32, Pol::Items::Item::check_equip_script(), Pol::Items::Item::check_equiptest_scripts(), Pol::Network::Client::chr, Pol::Items::Item::container, Pol::Mobile::Character::dead(), Pol::Mobile::Character::equip(), Pol::Mobile::Character::equippable(), Pol::Core::PKTIN_13::equipped_on, find_character(), Pol::Realms::Realm::find_supporting_multi(), HIGHEST_LAYER, Pol::Items::Item::inuse(), Pol::Core::PKTIN_13::layer, Pol::Items::Item::layer, Pol::Mobile::Character::layer_is_equipped(), MOVE_ITEM_FAILURE_ALREADY_WORN, MOVE_ITEM_FAILURE_ILLEGAL_EQUIP, Pol::Core::ULWObject::orphan(), POLLOG_ERROR, Pol::Core::ULWObject::realm, send_item_move_failure(), send_sysmessage(), send_wornitem_to_inrange(), Pol::Core::ULWObject::serial, Pol::Core::PKTIN_13::serial, Pol::Mobile::Character::strong_enough_to_equip(), Pol::Items::Item::tile_layer, undo_get_item(), Pol::Multi::UMulti::unregister_object(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::equip_loaded_item | ( | Mobile::Character * | chr, |
Items::Item * | item | ||
) |
Definition at line 199 of file loaddata.cpp.
References Pol::Core::UContainer::add_at_random_location(), Pol::Mobile::Character::backpack(), Pol::Core::UContainer::can_add(), Pol::Core::UContainer::can_add_to_slot(), Pol::Items::Item::check_equip_script(), Pol::Items::Item::check_equiptest_scripts(), Pol::Core::UObject::clear_dirty(), Pol::Mobile::Character::equip(), Pol::Mobile::Character::equippable(), ERROR_PRINT, Pol::Core::StateManager::gflag_enforce_container_limits, Pol::Core::ULWObject::graphic, Pol::Items::Item::layer, Pol::Core::ULWObject::orphan(), Pol::Core::ULWObject::serial, Pol::Items::Item::slot_index(), stateManager, Pol::Items::Item::tile_layer, and tilelayer().
Referenced by insert_deferred_items(), and read_global_item().
Definition at line 275 of file miscmsg.cpp.
References Pol::Mobile::Character::attribute(), Pol::Mobile::Attribute::attrid, Pol::Network::Client::chr, Pol::Core::ServSpecOpt::core_handled_locks, Pol::Core::PKTBI_BF::extstatin, gamestate, Pol::Mobile::AttributeValue::lock(), Pol::Core::PKTBI_BF_1A::mode, Pol::Core::GameState::pAttrDexterity, Pol::Core::GameState::pAttrIntelligence, Pol::Core::GameState::pAttrStrength, settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::PKTBI_BF_1A::stat, Pol::Core::PKTBI_BF_1A::STAT_DEX, Pol::Core::PKTBI_BF_1A::STAT_INT, and Pol::Core::PKTBI_BF_1A::STAT_STR.
Referenced by handle_msg_BF().
std::string Pol::Core::extractkey | ( | const std::string & | istr | ) |
Definition at line 189 of file cfgrepos.cpp.
Referenced by Pol::Core::StoredConfigFile::load_tus_scp().
Mobile::Character * Pol::Core::find_character | ( | u32 | serial | ) |
Definition at line 60 of file fnsearch.cpp.
References Pol::Mobile::Character::logged_in(), and system_find_mobile().
Referenced by Pol::Multi::CustomHousesAddMulti(), Pol::Multi::CustomHousesClear(), Pol::Multi::CustomHousesCommit(), Pol::Multi::CustomHousesErase(), Pol::Multi::CustomHousesQuit(), Pol::Multi::CustomHousesRestore(), Pol::Multi::CustomHousesRevert(), Pol::Multi::CustomHousesRoofRemove(), Pol::Multi::CustomHousesSelectFloor(), Pol::Multi::CustomHousesSynch(), doubleclick(), drop_item_on_mobile(), equip_item(), find_toplevel_object(), Pol::Multi::UHouse::FindWorkingHouse(), handle_allnames(), Pol::Mobile::handle_attack(), handle_rename_char(), Pol::Core::TargetCursor::handle_target_cursor(), Pol::Core::NoLosCharacterCursor::on_target_cursor(), Pol::Mobile::Character::select_opponent(), singleclick(), srequest(), statrequest(), and update_item_to_inrange().
CmdLevel * Pol::Core::find_cmdlevel | ( | const char * | name | ) |
Definition at line 84 of file cmdlevel.cpp.
References Pol::Core::GameState::cmdlevels, and gamestate.
Referenced by Pol::Module::PolSystemExecutorModule::mf_GetCmdLevelNumber(), process_package_cmds_cfg(), Pol::Mobile::Character::readCommonProperties(), Pol::Accounts::Account::readfrom(), and Pol::Mobile::Character::script_method_id().
Items::Item* Pol::Core::find_existing_item | ( | u32 | objtype, |
u16 | x, | ||
u16 | y, | ||
s8 | z, | ||
Realms::Realm * | realm | ||
) |
Definition at line 509 of file uimport.cpp.
References Pol::Core::Zone::items, Pol::Realms::Realm::zone, and zone_convert().
Referenced by import().
UContainer* Pol::Core::find_giveitem_container | ( | Items::Item * | item_to_add, |
u8 | slotIndex | ||
) |
Definition at line 421 of file dropitem.cpp.
References Pol::Core::UContainer::can_add(), Pol::Core::UContainer::can_add_to_slot(), CLASS_CONTAINER, Pol::Items::Item::create(), Pol::Core::Storage::create_area(), Pol::Clib::decint(), find_realm(), Pol::Core::StorageArea::find_root_item(), gamestate, Pol::Core::StorageArea::insert_root_item(), Pol::Core::ULWObject::isa(), name, passert, Pol::Core::ULWObject::realm, Pol::Core::UObject::setname(), Pol::Items::Item::slot_index(), Pol::Core::GameState::storage, and UOBJ_BACKPACK.
Referenced by drop_item_on_mobile().
UContainer * Pol::Core::find_legal_container | ( | const Character * | chr, |
u32 | serial | ||
) |
Definition at line 892 of file ufunc.cpp.
References Pol::Mobile::Character::backpack(), CLASS_CONTAINER, Pol::Core::UContainer::find_container(), Pol::Mobile::Character::find_wornitem(), Pol::Core::ULWObject::isa(), Pol::Core::Zone::items, Pol::Items::Item::layer, LAYER_BACKPACK, LAYER_BEARD, LAYER_FACE, LAYER_HAIR, LAYER_MOUNT, POLCLASS_CONTAINER, Pol::Core::ULWObject::realm, Pol::Items::Item::script_isa(), Pol::Mobile::Character::search_remote_containers(), Pol::Core::ULWObject::serial, wxH, wxL, wyH, wyL, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, Pol::Realms::Realm::zone, and zone_convert_clip().
Referenced by drop_item_on_object().
Items::Item * Pol::Core::find_legal_item | ( | const Character * | chr, |
u32 | serial, | ||
bool * | additlegal, | ||
bool * | isRemoteContainer | ||
) |
Definition at line 958 of file ufunc.cpp.
References Pol::Mobile::Character::backpack(), CLASS_CONTAINER, Pol::Core::UContainer::find(), Pol::Mobile::Character::find_wornitem(), inrange(), Pol::Core::Zone::items, passert_always, Pol::Core::ULWObject::realm, Pol::Mobile::Character::search_remote_containers(), Pol::Core::ULWObject::serial, wxH, wxL, wyH, wyL, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, Pol::Realms::Realm::zone, and zone_convert_clip().
Referenced by Pol::Mobile::Character::can_access(), doubleclick(), find_legal_singleclick_item(), get_item(), handle_map_pin(), handle_request_tooltip(), Pol::Core::LosCheckedTargetCursor::on_target_cursor(), Pol::Core::NoLosCheckedTargetCursor::on_target_cursor(), Pol::Module::open_book_handler(), place_item(), and Pol::Module::read_book_page_handler().
Items::Item* Pol::Core::find_legal_singleclick_item | ( | Mobile::Character * | chr, |
u32 | serial | ||
) |
Definition at line 30 of file sngclick.cpp.
References Pol::Core::Zone::characters, Pol::Core::UContainer::find(), find_legal_item(), Pol::Core::Zone::npcs, RANGE_VISUAL, Pol::Core::ULWObject::realm, Pol::Mobile::Character::trade_container(), Pol::Mobile::Character::trading_with, wxH, wxL, wyH, wyL, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, Pol::Realms::Realm::zone, and zone_convert_clip().
Referenced by singleclick().
|
static |
Definition at line 254 of file uworld.cpp.
References Pol::Core::Zone::characters, CLASS_NPC, Pol::Realms::Realm::grid_height(), Pol::Realms::Realm::grid_width(), Pol::Core::ULWObject::isa(), Pol::Realms::NpcDeath, Pol::Core::Zone::npcs, Pol::Realms::PlayerExit, POLLOG_ERROR, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Realms::Realm::zone.
Referenced by ClrCharacterWorldPosition(), and SetCharacterWorldPosition().
const NpcTemplate & Pol::Core::find_npc_template | ( | const Clib::ConfigElem & | elem | ) |
Definition at line 154 of file npctmpl.cpp.
References create_npc_template(), gamestate, Pol::Core::GameState::npc_templates, Pol::Core::NpcTemplate::pkg, Pol::Plib::pkgdef_split(), and Pol::Clib::ConfigElemBase::rest().
Realms::Realm * Pol::Core::find_realm | ( | const std::string & | name | ) |
Definition at line 64 of file realms.cpp.
References gamestate, name, and Pol::Core::GameState::Realms.
Referenced by Pol::Core::BPacket::call_method_id(), createchar2(), find_giveitem_container(), Pol::Module::PolSystemExecutorModule::mf_AddRealm(), Pol::Module::UOExecutorModule::mf_AssignRectToWeatherRegion(), Pol::Module::UOExecutorModule::mf_CanWalk(), Pol::Module::UOExecutorModule::mf_CheckLosBetween(), Pol::Module::UOExecutorModule::mf_CreateItemAtLocation(), Pol::Module::UOExecutorModule::mf_CreateItemCopyAtLocation(), Pol::Module::UOExecutorModule::mf_CreateMultiAtLocation(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), Pol::Module::StorageExecutorModule::mf_CreateRootItemInStorageArea(), Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::UOExecutorModule::mf_GetHarvestDifficulty(), Pol::Module::UOExecutorModule::mf_GetMapInfo(), Pol::Module::UOExecutorModule::mf_GetRegionLightLevelAtLocation(), Pol::Module::UOExecutorModule::mf_GetRegionNameAtLocation(), Pol::Module::UOExecutorModule::mf_GetRegionString(), Pol::Module::UOExecutorModule::mf_GetStandingHeight(), Pol::Module::UOExecutorModule::mf_GetStandingLayers(), Pol::Module::UOExecutorModule::mf_GetWorldHeight(), Pol::Module::UOExecutorModule::mf_HarvestResource(), Pol::Module::UOExecutorModule::mf_ListGhostsNearLocation(), Pol::Module::UOExecutorModule::mf_ListItemsAtLocation(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocation(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocationOfType(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocationWithFlag(), Pol::Module::UOExecutorModule::mf_ListMobilesInBox(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocation(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocationEx(), Pol::Module::UOExecutorModule::mf_ListMultisInBox(), Pol::Module::UOExecutorModule::mf_ListObjectsInBox(), Pol::Module::UOExecutorModule::mf_ListOfflineMobilesInRealm(), Pol::Module::UOExecutorModule::mf_ListStaticsAtLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsInBox(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationOfType(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationWithFlag(), Pol::Module::UOExecutorModule::mf_MoveObjectToLocation(), Pol::Module::UOExecutorModule::mf_PlayMovingEffectXyz(), Pol::Module::UOExecutorModule::mf_PlayMovingEffectXyz_Ex(), Pol::Module::UOExecutorModule::mf_PlaySoundEffectXYZ(), Pol::Module::UOExecutorModule::mf_PlayStationaryEffect(), Pol::Module::UOExecutorModule::mf_PlayStationaryEffect_Ex(), Pol::Module::PolSystemExecutorModule::mf_Realms(), Pol::Core::RegionGroupBase::paint_zones(), read_item(), read_shadow_realms(), read_starting_locations(), Pol::Core::UObject::readProperties(), Pol::Multi::UBoat::script_method_id(), and Pol::Items::Item::script_method_id().
ResourceDef * Pol::Core::find_resource_def | ( | const std::string & | rname | ) |
Definition at line 315 of file resource.cpp.
References gamestate, and Pol::Core::GameState::resourcedefs.
Referenced by read_global_data(), and read_region_data().
ref_ptr< Bscript::EScriptProgram > Pol::Core::find_script | ( | const std::string & | name, |
bool | complain_if_not_found, | ||
bool | cache_script | ||
) |
Definition at line 38 of file scrstore.cpp.
References Pol::Clib::mklower(), name, POLLOG_ERROR, scriptScheduler, and Pol::Core::ScriptScheduler::scrstore.
Referenced by ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Module::gumpbutton_handler(), handle_char_profile_request(), handle_help(), handle_msg_BF(), OnChatButton(), OnGuildButton(), OnQuestButton(), run_script_to_completion(), and start_script().
ref_ptr< Bscript::EScriptProgram > Pol::Core::find_script2 | ( | const ScriptDef & | script, |
bool | complain_if_not_found, | ||
bool | cache_script | ||
) |
Definition at line 83 of file scrstore.cpp.
References Pol::Core::ScriptDef::c_str(), Pol::Clib::mklower(), Pol::Core::ScriptDef::name(), Pol::Core::ScriptDef::pkg(), POLLOG_ERROR, scriptScheduler, and Pol::Core::ScriptScheduler::scrstore.
Referenced by Pol::Core::USpell::cast(), Pol::Items::Item::double_click(), doubleclick(), Pol::Core::ConsoleCommand::exec_console_cmd(), Pol::Module::UOExecutorModule::mf_UseItem(), Pol::Items::preload_test_scripts(), run_executor_to_completion(), Pol::Mobile::Character::run_hit_script(), skillrequest(), start_http_script(), start_script(), Pol::Mobile::NPC::start_script(), Pol::Module::OSExecutorModule::start_skill_script(), start_textcmd_script(), StartSkillScript(), Pol::Items::Item::walk_on(), and Pol::Multi::UHouse::walk_on().
Items::Item * Pol::Core::find_toplevel_item | ( | u32 | serial | ) |
Definition at line 69 of file fnsearch.cpp.
References Pol::Items::Item::container, and system_find_item().
Referenced by find_toplevel_object(), Pol::Multi::UHouse::readProperties(), and Pol::Multi::UBoat::readProperties().
Definition at line 86 of file fnsearch.cpp.
References find_character(), find_toplevel_item(), and IsItem().
Referenced by Pol::Core::LosCheckedTargetCursor::on_target_cursor(), and Pol::Core::NoLosCheckedTargetCursor::on_target_cursor().
bool Pol::Core::find_uoexec | ( | unsigned int | pid, |
UOExecutor ** | pp_uoexec | ||
) |
Definition at line 60 of file scrsched.cpp.
References Pol::Core::ScriptScheduler::find_exec(), and scriptScheduler.
Referenced by Pol::Core::DebugContext::cmd_attach(), Pol::Core::DebugContext::cmd_kill(), Pol::Core::DebugContext::cmd_loadsym(), Pol::Module::OSExecutorModule::getprocess(), and Pol::Module::OSExecutorModule::mf_debugger().
Items::Item * Pol::Core::find_walkon_item | ( | ItemsVector & | ivec, |
short | z | ||
) |
Definition at line 169 of file core.cpp.
References Pol::Core::ScriptDef::empty(), Pol::Items::Item::itemdesc(), Pol::Items::ItemDesc::walk_on_script, and Pol::Core::ULWObject::z.
Referenced by Pol::Realms::Realm::lowest_walkheight(), and Pol::Realms::Realm::walkheight().
CmdLevel * Pol::Core::FindCmdLevelByAlias | ( | const std::string & | str | ) |
Definition at line 94 of file cmdlevel.cpp.
References Pol::Core::GameState::cmdlevels, and gamestate.
Referenced by Pol::Module::PolSystemExecutorModule::mf_GetCmdLevelName().
ConfigFileRef Pol::Core::FindConfigFile | ( | const std::string & | filename, |
const std::string & | allpkgbase | ||
) |
Definition at line 245 of file cfgrepos.cpp.
References Pol::Core::ConfigurationBuffer::cfgfiles, configurationbuffer, DEBUGLOG, Pol::Clib::FileExists(), Pol::Plib::GetPackageCfgPath(), Pol::Core::ConfigurationBuffer::oldcfgfiles, Pol::Plib::SystemState::packages, Pol::Core::StoredConfigFile::StoredConfigFile(), and Pol::Plib::systemstate.
Referenced by Pol::Multi::load_special_storedconfig(), and Pol::Module::ConfigFileExecutorModule::mf_ConfigFile().
bool Pol::Core::FindEquipTemplate | ( | const char * | template_name, |
Clib::ConfigElem & | elem | ||
) |
Definition at line 91 of file textcmd.cpp.
References Pol::Clib::ConfigFile::read(), Pol::Clib::ConfigElemBase::rest(), and Pol::Clib::ConfigElemBase::type_is().
Referenced by equip_from_template().
ExportedFunction * Pol::Core::FindExportedFunction | ( | Clib::ConfigElem & | elem, |
const Plib::Package * | pkg, | ||
const std::string & | descriptor, | ||
unsigned | nargs, | ||
bool | complain_if_missing | ||
) |
Definition at line 344 of file syshook.cpp.
References Pol::Core::ExportScript::FindExportedFunction(), FindExportScript(), Pol::Core::ScriptDef::name(), Pol::Core::ExportScript::scriptname(), and Pol::Clib::ConfigElem::throw_error().
Referenced by Pol::Mobile::Attribute::Attribute(), Pol::Network::load_packet_entries(), load_party_cfg_hooks(), load_repsys_cfg_hooks(), Pol::Network::load_subpacket_entries(), and Pol::Core::Vital::Vital().
ExportScript* Pol::Core::FindExportScript | ( | const ScriptDef & | sd | ) |
Definition at line 321 of file syshook.cpp.
References Pol::Core::GameState::export_scripts, gamestate, Pol::Core::ExportScript::Initialize(), Pol::Core::ScriptDef::name(), and Pol::Core::ExportScript::scriptname().
Referenced by FindExportedFunction().
bool Pol::Core::FindNpcTemplate | ( | const char * | template_name, |
Clib::ConfigElem & | elem | ||
) |
Definition at line 86 of file npctemplates.cpp.
References Pol::Core::NpcTemplateElem::copyto(), gamestate, and Pol::Core::GameState::npc_template_elems.
Referenced by Pol::Testing::add_npc(), and Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate().
bool Pol::Core::FindNpcTemplate | ( | const char * | template_name, |
Clib::ConfigFile & | cf, | ||
Clib::ConfigElem & | elem | ||
) |
Definition at line 102 of file npctemplates.cpp.
References ERROR_PRINT, Pol::Plib::GetPackageCfgPath(), Pol::Plib::Package::name(), Pol::Clib::ConfigFile::open(), Pol::Plib::pkgdef_split(), Pol::Clib::ConfigFile::read(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElemBase::rest(), Pol::Clib::ConfigElem::set_rest(), and Pol::Clib::ConfigElemBase::type_is().
bool Pol::Core::findstatic | ( | unsigned short | x, |
unsigned short | y, | ||
unsigned short | graphic | ||
) |
Referenced by Pol::Plib::StaticServer::operator=().
Vital * Pol::Core::FindVital | ( | const std::string & | str | ) |
Definition at line 83 of file vital.cpp.
References gamestate, and Pol::Core::GameState::vitals_byname.
Referenced by checkv(), getVitalParam(), load_vital_entry(), load_vitals_cfg(), Pol::Module::VitalExecutorModule::mf_RecalcVitals(), Pol::Mobile::Character::printProperties(), Pol::Mobile::Character::readAttributesAndVitals(), and regen_stats().
Vital * Pol::Core::FindVital | ( | unsigned | vitalid | ) |
Definition at line 92 of file vital.cpp.
References gamestate, and Pol::Core::GameState::vitals.
unsigned char Pol::Core::flags_from_tileflags | ( | unsigned int | uoflags | ) |
|
inline |
Definition at line 17 of file uofile06.cpp.
References Pol::Core::USTRUCT_TILE::FLAG_BLOCKING, and Pol::Core::USTRUCT_TILE::FLAG_PLATFORM.
Referenced by standheight().
|
inline |
Definition at line 22 of file uofile06.cpp.
References Pol::Core::USTRUCT_TILE::FLAG_FLOOR, and Pol::Core::USTRUCT_TILE::FLAG_LIQUID.
Referenced by standheight().
std::string Pol::Core::format_description | ( | unsigned int | polflags, |
const std::string & | descdef, | ||
unsigned short | amount, | ||
const std::string | suffix | ||
) |
Definition at line 1786 of file ufunc.cpp.
References Pol::Plib::FLAG::DESC_PREPEND_A, Pol::Plib::FLAG::DESC_PREPEND_AN, settingsManager, Pol::Core::SettingsManager::ssopt, and Pol::Core::ServSpecOpt::use_tile_flag_prefix.
Referenced by Pol::Items::Item::description(), Pol::Items::Item::merchant_description(), and Pol::Module::PolSystemExecutorModule::mf_FormatItemDescription().
std::string Pol::Core::full_scriptname | ( | const std::string & | spec, |
const Plib::Package * | pkg, | ||
const char * | mainpfx | ||
) |
Definition at line 18 of file scrdef.cpp.
References Pol::Plib::Package::dir(), and Pol::Bscript::normalize_ecl_filename().
Referenced by Pol::Core::ScriptDef::config(), and Pol::Core::ScriptDef::config_nodie().
Definition at line 383 of file speech.cpp.
References cfBEu16.
Referenced by UnicodeSpeechHandler().
std::string Pol::Core::get_fileline | ( | EScriptProgram * | prog, |
int | filenum, | ||
int | linenum | ||
) |
Definition at line 795 of file poldbg.cpp.
References Pol::Bscript::EScriptProgram::dbg_filenames.
Referenced by Pol::Core::DebugContext::cmd_scriptsrc().
Bscript::BObjectImp * Pol::Core::get_harvest_difficulty | ( | const char * | resource, |
xcoord | x, | ||
ycoord | y, | ||
Realms::Realm * | realm, | ||
unsigned short | marker | ||
) |
Definition at line 260 of file resource.cpp.
References Pol::Core::ResourceDef::findmarker(), gamestate, Pol::Core::ResourceRegion::get_harvest_difficulty(), Pol::Core::RegionGroup< T >::getregion(), and Pol::Core::GameState::resourcedefs.
Referenced by Pol::Module::UOExecutorModule::mf_GetHarvestDifficulty().
void Pol::Core::get_item | ( | Network::Client * | client, |
PKTIN_07 * | msg | ||
) |
Definition at line 58 of file getitem.cpp.
References Pol::Core::UContainer::add(), add_item_to_world(), Pol::Core::PKTIN_07::amount, Pol::Items::Item::amount_to_remove_is_partial(), Pol::Core::UContainer::can_add_to_slot(), Pol::Mobile::Character::can_move(), Pol::Mobile::Character::can_moveanydist(), cfBEu16, cfBEu32, Pol::Core::UContainer::check_can_remove_script(), Pol::Items::Item::check_unequip_script(), Pol::Items::Item::check_unequiptest_scripts(), Pol::Network::Client::chr, CLASS_CONTAINER, Pol::Items::Item::container, Pol::Mobile::Character::dead(), Pol::Items::Item::extricate(), find_legal_item(), Pol::Mobile::Character::GOTTEN_ITEM_EQUIPPED_ON_SELF, Pol::Mobile::Character::GOTTEN_ITEM_IN_CONTAINER, Pol::Mobile::Character::GOTTEN_ITEM_ON_GROUND, Pol::Mobile::Character::gotten_item_source, Pol::Realms::Realm::has_los(), Pol::Items::Item::inuse(), Pol::Core::ULWObject::isa(), IsCharacter(), Pol::Core::ULWObject::ismobile(), move_item(), MOVE_ITEM_FAILURE_ALREADY_HOLDING_AN_ITEM, MOVE_ITEM_FAILURE_CANNOT_PICK_THAT_UP, MOVE_ITEM_FAILURE_OUT_OF_SIGHT, MOVE_ITEM_FAILURE_TOO_FAR_AWAY, Pol::Core::UContainer::on_remove(), Pol::Core::ULWObject::orphan(), pol_distance(), Pol::Core::ULWObject::realm, Pol::Mobile::Character::refresh_ar(), register_with_supporting_multi(), remove_item_from_world(), Pol::Items::Item::restart_decay_timer(), send_full_statmsg(), send_item_move_failure(), send_item_to_inrange(), send_put_in_container_to_inrange(), send_remove_object_to_inrange(), send_sysmessage(), Pol::Core::ULWObject::serial, Pol::Core::PKTIN_07::serial, Pol::Items::Item::set_decay_after(), Pol::Core::UObject::set_dirty(), Pol::Items::Item::slice_stacked_item(), Pol::Items::Item::slot_index(), Pol::Items::Item::toplevel_owner(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
int Pol::Core::get_mobile_count | ( | ) |
Definition at line 117 of file uworld.cpp.
References gamestate, and Pol::Core::GameState::Realms.
Referenced by Pol::Module::GetCoreVariable(), and update_rpm().
std::string Pol::Core::get_page_filename | ( | const std::string & | page | ) |
Definition at line 468 of file polwww.cpp.
std::string Pol::Core::get_pagetype | ( | const std::string & | page | ) |
Definition at line 349 of file polwww.cpp.
Referenced by decode_page().
Bscript::BObjectImp * Pol::Core::get_region_string | ( | const char * | resource, |
xcoord | x, | ||
ycoord | y, | ||
Realms::Realm * | realm, | ||
const std::string & | propname | ||
) |
Definition at line 298 of file resource.cpp.
References gamestate, Pol::Core::Region::get_region_string(), Pol::Core::RegionGroup< T >::getregion(), and Pol::Core::GameState::resourcedefs.
Referenced by Pol::Module::UOExecutorModule::mf_GetRegionString().
unsigned Pol::Core::get_save_index | ( | pol_serial_t | serial | ) |
Definition at line 70 of file loaddata.cpp.
References Pol::Core::ObjectStorageManager::incremental_serial_index, and objStorageManager.
Referenced by Pol::Core::StorageArea::load_item(), read_character(), read_global_item(), read_multi(), and read_npc().
bool Pol::Core::get_script_page_filename | ( | const std::string & | page, |
ScriptDef & | sd | ||
) |
Definition at line 367 of file polwww.cpp.
References Pol::Plib::find_package(), and Pol::Core::ScriptDef::quickconfig().
std::string Pol::Core::get_textcmd_help | ( | Mobile::Character * | chr, |
const char * | cmd | ||
) |
Definition at line 514 of file textcmd.cpp.
References Pol::Clib::binary(), Pol::Mobile::Character::cmdlevel(), Pol::Core::GameState::cmdlevels, Pol::Plib::Package::dir(), Pol::Clib::FileExists(), gamestate, Pol::Clib::mkupper(), and Pol::Core::CmdLevel::searchlist.
Referenced by Pol::Module::UOExecutorModule::mf_GetCommandHelp().
int Pol::Core::get_toplevel_item_count | ( | ) |
Definition at line 109 of file uworld.cpp.
References gamestate, and Pol::Core::GameState::Realms.
Referenced by Pol::Module::GetCoreVariable(), and update_rpm().
bool Pol::Core::getAttributeParam | ( | Executor & | exec, |
unsigned | param, | ||
const Mobile::Attribute *& | attr | ||
) |
Definition at line 610 of file uoexhelp.cpp.
References Pol::Mobile::Attribute::FindAttribute(), Pol::Bscript::Executor::getStringParam(), Pol::Bscript::Executor::setFunctionResult(), and Pol::Bscript::String::value().
Referenced by Pol::Module::AttributeExecutorModule::mf_AlterAttributeTemporaryMod(), Pol::Module::AttributeExecutorModule::mf_GetAttribute(), Pol::Module::AttributeExecutorModule::mf_GetAttributeBaseValue(), Pol::Module::AttributeExecutorModule::mf_GetAttributeCap(), Pol::Module::AttributeExecutorModule::mf_GetAttributeDefaultCap(), Pol::Module::AttributeExecutorModule::mf_GetAttributeIntrinsicMod(), Pol::Module::AttributeExecutorModule::mf_GetAttributeLock(), Pol::Module::AttributeExecutorModule::mf_GetAttributeName(), 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(), and Pol::Module::OSExecutorModule::start_skill_script().
bool Pol::Core::getCharacterOrClientParam | ( | Executor & | exec, |
unsigned | param, | ||
Mobile::Character *& | chrptr, | ||
Network::Client *& | clientptr | ||
) |
Definition at line 43 of file uoexhelp.cpp.
References Pol::Clib::decint(), Pol::Module::echaracterrefobjimp_type, Pol::Module::eclientrefobjimp_type, weak_ptr< T >::exists(), Pol::Clib::explicit_cast(), weak_ptr< T >::get_weakptr(), Pol::Bscript::Executor::getParamImp(), Pol::Bscript::BObjectImp::isa(), IsItem(), Pol::Mobile::Character::logged_in(), Pol::Bscript::BApplicObjBase::object_type(), Pol::Module::ECharacterRefObjImp::offline_access_ok(), Pol::Bscript::BObjectImp::OTApplicObj, Pol::Bscript::BObjectImp::OTLong, Pol::Bscript::Executor::setFunctionResult(), system_find_mobile(), Pol::Bscript::BLong::value(), and Pol::Bscript::BApplicObj< T >::value().
Referenced by Pol::Core::BPacket::call_method_id(), Pol::Module::UOExecutorModule::mf_DisconnectClient(), and Pol::Module::UOExecutorModule::mf_SendPacket().
bool Pol::Core::getCharacterParam | ( | Bscript::Executor & | exec, |
unsigned | param, | ||
Mobile::Character *& | chrptr | ||
) |
Definition at line 140 of file uoexhelp.cpp.
References Pol::Clib::decint(), Pol::Module::echaracterrefobjimp_type, Pol::Clib::explicit_cast(), Pol::Bscript::Executor::getParamImp(), Pol::Bscript::BObjectImp::isa(), IsItem(), Pol::Mobile::Character::logged_in(), Pol::Bscript::BApplicObjBase::object_type(), Pol::Module::ECharacterRefObjImp::offline_access_ok(), Pol::Bscript::BObjectImp::OTApplicObj, Pol::Bscript::BObjectImp::OTLong, Pol::Bscript::Executor::setFunctionResult(), system_find_mobile(), Pol::Bscript::BLong::value(), and Pol::Bscript::BApplicObj< T >::value().
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), Pol::Module::EGuildRefObjImp::call_method_id(), Pol::Module::UnicodeExecutorModule::getCharacterParam(), Pol::Module::OSExecutorModule::getCharacterParam(), getUObjectParam(), Pol::Module::UOExecutorModule::mf_Accessible(), Pol::Module::AttributeExecutorModule::mf_AlterAttributeTemporaryMod(), Pol::Module::VitalExecutorModule::mf_ApplyDamage(), Pol::Module::VitalExecutorModule::mf_ApplyRawDamage(), Pol::Module::UOExecutorModule::mf_Attach(), Pol::Module::AttributeExecutorModule::mf_CheckSkill(), Pol::Module::UOExecutorModule::mf_CloseGump(), Pol::Module::UOExecutorModule::mf_CloseTradeWindow(), Pol::Module::UOExecutorModule::mf_CloseWindow(), Pol::Module::VitalExecutorModule::mf_ConsumeMana(), Pol::Module::UOExecutorModule::mf_ConsumeReagents(), Pol::Module::VitalExecutorModule::mf_ConsumeVital(), Pol::Module::UOExecutorModule::mf_CreateItemInBackpack(), Pol::Module::PartyExecutorModule::mf_CreateParty(), Pol::Module::UOExecutorModule::mf_EquipFromTemplate(), Pol::Module::UOExecutorModule::mf_EquipItem(), 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::UOExecutorModule::mf_GetCommandHelp(), Pol::Module::UOExecutorModule::mf_GetEquipmentByLayer(), Pol::Module::UOExecutorModule::mf_GetObjType(), Pol::Module::VitalExecutorModule::mf_GetVital(), Pol::Module::VitalExecutorModule::mf_GetVitalMaximumValue(), Pol::Module::VitalExecutorModule::mf_GetVitalRegenRate(), Pol::Module::UOExecutorModule::mf_GrantPrivilege(), Pol::Module::VitalExecutorModule::mf_HealDamage(), Pol::Module::UOExecutorModule::mf_ListEquippedItems(), Pol::Module::UOExecutorModule::mf_ListHostiles(), Pol::Module::UOExecutorModule::mf_MoveItemToSecureTradeWin(), Pol::Module::UOExecutorModule::mf_OpenPaperdoll(), Pol::Module::UOExecutorModule::mf_PerformAction(), Pol::Module::UOExecutorModule::mf_PlayMusic(), Pol::Module::UOExecutorModule::mf_PlaySoundEffectPrivate(), Pol::Module::ClilocExecutorModule::mf_PrintTextAbovePrivateCL(), Pol::Module::UOExecutorModule::mf_PrivateTextAbove(), Pol::Module::UOExecutorModule::mf_PromptInput(), Pol::Module::VitalExecutorModule::mf_RecalcVitals(), Pol::Module::UOExecutorModule::mf_RestartScript(), Pol::Module::UOExecutorModule::mf_Resurrect(), Pol::Module::UOExecutorModule::mf_RevokePrivilege(), 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_SendCharProfile(), Pol::Module::UOExecutorModule::mf_SendEvent(), 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::PartyExecutorModule::mf_SendPartyMsg(), Pol::Module::UOExecutorModule::mf_SendPopUpMenu(), Pol::Module::PartyExecutorModule::mf_SendPrivatePartyMsg(), 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::UOExecutorModule::mf_SendTextEntryGump(), Pol::Module::UOExecutorModule::mf_SendViewContainer(), Pol::Module::AttributeExecutorModule::mf_SetAttributeBaseValue(), Pol::Module::AttributeExecutorModule::mf_SetAttributeCap(), Pol::Module::AttributeExecutorModule::mf_SetAttributeLock(), Pol::Module::AttributeExecutorModule::mf_SetAttributeTemporaryMod(), Pol::Module::NPCExecutorModule::mf_SetOpponent(), Pol::Module::UOExecutorModule::mf_SetScriptController(), Pol::Module::VitalExecutorModule::mf_SetVital(), Pol::Module::UOExecutorModule::mf_SingleClick(), Pol::Module::UOExecutorModule::mf_SpeakPowerWords(), Pol::Module::UOExecutorModule::mf_StartSpellEffect(), 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::Mobile::NPC::script_method_id(), Pol::Multi::UHouse::script_method_id(), and Pol::Mobile::Character::script_method_id().
std::string Pol::Core::getcmdstr | ( | char | ch | ) |
Definition at line 81 of file console.cpp.
References Pol::Core::ConsoleCommand::ch.
Referenced by Pol::Core::ConsoleCommand::exec_console_cmd().
Bscript::ObjArray * Pol::Core::GetCommandsInPackage | ( | Plib::Package * | m_pkg, |
int | cmdlvl_num | ||
) |
Definition at line 104 of file cmdlevel.cpp.
References Pol::Clib::DirList::at_end(), Pol::Core::CmdLevel::cmdlevel, Pol::Core::GameState::cmdlevels, Pol::Core::CmdLevel::SearchDir::dir, Pol::Plib::Package::dir(), gamestate, Pol::Core::CmdLevel::name, Pol::Core::CmdLevel::SearchDir::pkg, and Pol::Core::CmdLevel::searchlist.
Referenced by Pol::Module::PolSystemExecutorModule::mf_ListTextCommands().
u32 Pol::Core::GetCurrentCharSerialNumber | ( | void | ) |
Definition at line 113 of file ufunc.cpp.
References Pol::Core::StateManager::charserialnumber, and stateManager.
Referenced by Pol::Core::ObjectHash::GetNextUnusedCharSerial(), read_data(), and write_system_data().
u32 Pol::Core::GetCurrentItemSerialNumber | ( | void | ) |
Definition at line 107 of file ufunc.cpp.
References Pol::Core::StateManager::itemserialnumber, and stateManager.
Referenced by Pol::Core::ObjectHash::GetNextUnusedItemSerial(), read_data(), and write_system_data().
polclock_base_type Pol::Core::getCurrentPolClockSeconds | ( | ) |
Definition at line 34 of file polclock.cpp.
Referenced by pause_polclock(), restart_polclock(), and start_polclock().
BObjectImp* Pol::Core::GetGlobals | ( | const UOExecutor * | uoexec | ) |
Definition at line 148 of file exscrobj.cpp.
References Pol::Bscript::BDictionary::addMember(), Pol::Clib::decint(), Pol::Bscript::Executor::Globals2, Pol::Bscript::EScriptProgram::globalvarnames, and Pol::Bscript::Executor::prog().
Referenced by Pol::Core::ScriptExObjImp::get_member_id().
bool Pol::Core::getItemParam | ( | Executor & | exec, |
unsigned | param, | ||
Items::Item *& | itemptr | ||
) |
Definition at line 219 of file uoexhelp.cpp.
References Pol::Module::eitemrefobjimp_type, Pol::Clib::explicit_cast(), Pol::Bscript::Executor::getParamImp(), Pol::Bscript::BObjectImp::isa(), IsCharacter(), Pol::Bscript::BApplicObjBase::object_type(), Pol::Bscript::BObjectImp::OTApplicObj, Pol::Bscript::BObjectImp::OTLong, system_find_item(), Pol::Bscript::BLong::value(), and Pol::Bscript::BApplicObj< T >::value().
Referenced by Pol::Module::UnicodeExecutorModule::getItemParam(), getUObjectParam(), Pol::Module::UOExecutorModule::mf_Accessible(), Pol::Module::UOExecutorModule::mf_AddAmount(), Pol::Module::UBoatExecutorModule::mf_BoatFromItem(), Pol::Module::UOExecutorModule::mf_ConsumeSubstance(), Pol::Module::UOExecutorModule::mf_CreateItemCopyAtLocation(), Pol::Module::UOExecutorModule::mf_CreateItemInContainer(), Pol::Module::UOExecutorModule::mf_CreateItemInInventory(), Pol::Module::UOExecutorModule::mf_DestroyItem(), Pol::Module::UOExecutorModule::mf_EnumerateItemsInContainer(), Pol::Module::UOExecutorModule::mf_EquipItem(), Pol::Module::UOExecutorModule::mf_FindObjtypeInContainer(), Pol::Module::UOExecutorModule::mf_FindSubstance(), Pol::Module::UOExecutorModule::mf_GetAmount(), Pol::Module::UOExecutorModule::mf_GetObjType(), Pol::Module::UOExecutorModule::mf_IsStackable(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Module::UOExecutorModule::mf_MoveItemToSecureTradeWin(), Pol::Module::UOExecutorModule::mf_PromptInput(), Pol::Module::UOExecutorModule::mf_ReleaseItem(), Pol::Module::UOExecutorModule::mf_ReserveItem(), Pol::Module::UOExecutorModule::mf_SelectColor(), Pol::Module::UOExecutorModule::mf_SendBuyWindow(), Pol::Module::UOExecutorModule::mf_SendOpenBook(), Pol::Module::UOExecutorModule::mf_SendOpenSpecialContainer(), Pol::Module::UOExecutorModule::mf_SendSellWindow(), Pol::Module::UOExecutorModule::mf_SendViewContainer(), Pol::Module::UOExecutorModule::mf_SubtractAmount(), Pol::Module::UOExecutorModule::mf_UpdateItem(), Pol::Module::UOExecutorModule::mf_UseItem(), and Pol::Items::Item::script_method_id().
Bscript::BObjectImp * Pol::Core::GetListenPoints | ( | ) |
Definition at line 119 of file listenpt.cpp.
References Pol::Bscript::ObjArray::addElement(), gamestate, Pol::Core::GameState::listen_points, and Pol::Core::ListenPoint::object.
Referenced by Pol::Module::PolSystemExecutorModule::mf_ListenPoints().
void Pol::Core::getmapinfo | ( | unsigned short | x, |
unsigned short | y, | ||
short * | z, | ||
USTRUCT_MAPINFO * | mi | ||
) |
Definition at line 99 of file uofile08.cpp.
References rawmapinfo().
Referenced by standheight(), and Pol::UoTool::z_histogram().
bool Pol::Core::getMultiParam | ( | Executor & | exec, |
unsigned | param, | ||
Multi::UMulti *& | multiptr | ||
) |
Definition at line 323 of file uoexhelp.cpp.
References Pol::Module::emultirefobjimp_type, Pol::Module::euboatrefobjimp_type, Pol::Clib::explicit_cast(), ref_ptr< T >::get(), Pol::Bscript::Executor::getParamImp(), Pol::Bscript::BObjectImp::isa(), Pol::Bscript::BApplicObjBase::object_type(), Pol::Bscript::BObjectImp::OTApplicObj, Pol::Bscript::BObjectImp::OTLong, system_find_multi(), Pol::Bscript::BLong::value(), and Pol::Bscript::BApplicObj< T >::value().
Referenced by getUObjectParam(), Pol::Module::UOExecutorModule::mf_DestroyMulti(), and Pol::Module::UOExecutorModule::mf_SendHousingTool().
u32 Pol::Core::GetNewItemSerialNumber | ( | void | ) |
Definition at line 142 of file ufunc.cpp.
References Pol::Core::ObjectHash::GetNextUnusedItemSerial(), Pol::Core::StateManager::itemserialnumber, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, and stateManager.
Referenced by Pol::Items::allocate_intrinsic_equipment_serials(), Pol::Multi::UMulti::create(), Pol::Items::Item::create(), import(), Pol::Items::register_intrinsic_equipment(), Pol::Multi::UHouse::scripted_create(), and Pol::Multi::UBoat::scripted_create().
u32 Pol::Core::GetNextSerialNumber | ( | void | ) |
Definition at line 119 of file ufunc.cpp.
References Pol::Core::StateManager::charserialnumber, Pol::Core::ObjectHash::GetNextUnusedCharSerial(), Pol::Core::ObjectStorageManager::objecthash, objStorageManager, and stateManager.
Referenced by Pol::Testing::add_npc(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), createchar2(), and Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate().
Definition at line 395 of file speech.cpp.
Referenced by UnicodeSpeechHandler().
bool Pol::Core::getObjtypeParam | ( | Executor & | exec, |
unsigned | param, | ||
unsigned int & | objtype | ||
) |
Definition at line 400 of file uoexhelp.cpp.
References Pol::Plib::SystemState::config, Pol::Bscript::Executor::current_module_function, Pol::Bscript::String::data(), DEBUGLOG, Pol::Clib::explicit_cast(), Pol::Items::get_objtype_byname(), Pol::Bscript::Executor::getParamImp(), Pol::Items::has_itemdesc(), Pol::Clib::hexint(), Pol::Bscript::BObjectImp::isa(), Pol::Core::PolConfig::max_objtype, Pol::Bscript::ModuleFunction::name, Pol::Bscript::BObjectImp::OTLong, Pol::Bscript::BObjectImp::OTString, Pol::Bscript::Executor::PC, Pol::Bscript::Executor::scriptname(), Pol::Bscript::Executor::setFunctionResult(), Pol::Plib::systemstate, Pol::Bscript::BObjectImp::type(), Pol::Bscript::BObjectImp::typestr(), and Pol::Bscript::BLong::value().
Referenced by Pol::Module::UOExecutorModule::mf_AddMenuItem(), Pol::Module::UOExecutorModule::mf_ConsumeSubstance(), Pol::Module::UOExecutorModule::mf_CreateItemAtLocation(), Pol::Module::UOExecutorModule::mf_CreateItemInBackpack(), Pol::Module::UOExecutorModule::mf_CreateItemInContainer(), Pol::Module::UOExecutorModule::mf_CreateItemInInventory(), Pol::Module::UOExecutorModule::mf_CreateMultiAtLocation(), Pol::Module::StorageExecutorModule::mf_CreateRootItemInStorageArea(), Pol::Module::UOExecutorModule::mf_FindObjtypeInContainer(), Pol::Module::UOExecutorModule::mf_FindSubstance(), Pol::Module::PolSystemExecutorModule::mf_GetItemDescriptor(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocationOfType(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationOfType(), and Pol::Module::UOExecutorModule::mf_TargetMultiPlacement().
bool Pol::Core::getObjtypeParam | ( | Executor & | exec, |
unsigned | param, | ||
const Items::ItemDesc *& | itemdesc_out | ||
) |
Definition at line 482 of file uoexhelp.cpp.
References Pol::Plib::SystemState::config, Pol::Items::CreateItemDescriptor(), Pol::Bscript::Executor::current_module_function, Pol::Bscript::String::data(), DEBUGLOG, Pol::Core::ServSpecOpt::default_decay_time, Pol::Core::ServSpecOpt::default_doubleclick_range, Pol::Clib::explicit_cast(), Pol::Items::find_itemdesc(), gamestate, Pol::Items::get_objtype_byname(), Pol::Bscript::Executor::getParamImp(), Pol::Clib::hexint(), Pol::Bscript::BObjectImp::isa(), Pol::Core::PolConfig::max_objtype, Pol::Bscript::ModuleFunction::name, Pol::Bscript::BObjectImp::OTLong, Pol::Bscript::BObjectImp::OTString, Pol::Bscript::BObjectImp::OTStruct, Pol::Bscript::Executor::PC, Pol::Bscript::Executor::scriptname(), Pol::Bscript::Executor::setFunctionResult(), settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Plib::systemstate, Pol::Core::GameState::temp_itemdesc, Pol::Bscript::BObjectImp::type(), Pol::Bscript::BObjectImp::typestr(), and Pol::Bscript::BLong::value().
Definition at line 594 of file uoexhelp.cpp.
References Pol::Bscript::Executor::getParam(), Pol::Core::UoClientGeneral::maxskills, networkManager, SKILLID__LOWEST, and Pol::Core::NetworkManager::uoclient_general.
Referenced by Pol::Module::AttributeExecutorModule::mf_CheckSkill().
bool Pol::Core::getUBoatParam | ( | Executor & | exec, |
unsigned | param, | ||
Multi::UBoat *& | boatptr | ||
) |
Definition at line 262 of file uoexhelp.cpp.
References Pol::Multi::UMulti::as_boat(), Pol::Multi::UBoat::as_boat(), CLASS_MULTI, Pol::Module::eitemrefobjimp_type, Pol::Module::euboatrefobjimp_type, Pol::Clib::explicit_cast(), ref_ptr< T >::get(), Pol::Bscript::Executor::getParamImp(), Pol::Bscript::BObjectImp::isa(), Pol::Bscript::BApplicObjBase::object_type(), Pol::Core::ULWObject::orphan(), Pol::Bscript::BObjectImp::OTApplicObj, Pol::Bscript::BObjectImp::OTLong, system_find_multi(), Pol::Bscript::BLong::value(), and Pol::Bscript::BApplicObj< T >::value().
Referenced by Pol::Module::UBoatExecutorModule::mf_MoveBoat(), Pol::Module::UBoatExecutorModule::mf_MoveBoatRelative(), Pol::Module::UBoatExecutorModule::mf_MoveBoatXY(), Pol::Module::UBoatExecutorModule::mf_RegisterItemWithBoat(), Pol::Module::UBoatExecutorModule::mf_SystemFindBoatBySerial(), and Pol::Module::UBoatExecutorModule::mf_TurnBoat().
Definition at line 369 of file uoexhelp.cpp.
References getCharacterParam(), getItemParam(), and getMultiParam().
Referenced by Pol::Module::UnicodeExecutorModule::getUObjectParam(), Pol::Module::UOExecutorModule::mf_CheckLineOfSight(), Pol::Module::UOExecutorModule::mf_CheckLosAt(), Pol::Module::UOExecutorModule::mf_CloseWindow(), Pol::Module::UOExecutorModule::mf_Distance(), Pol::Module::UOExecutorModule::mf_DistanceEuclidean(), Pol::Module::UOExecutorModule::mf_EraseObjProperty(), Pol::Module::UOExecutorModule::mf_GetObjProperty(), Pol::Module::UOExecutorModule::mf_GetObjPropertyNames(), Pol::Module::UOExecutorModule::mf_GetPosition(), Pol::Module::UOExecutorModule::mf_GetRegionName(), Pol::Module::PolSystemExecutorModule::mf_IncRevision(), Pol::Module::UOExecutorModule::mf_ListMobilesInLineOfSight(), Pol::Module::UOExecutorModule::mf_MoveObjectToLocation(), Pol::Module::UOExecutorModule::mf_PlayLightningBoltEffect(), Pol::Module::UOExecutorModule::mf_PlayMovingEffect(), Pol::Module::UOExecutorModule::mf_PlayMovingEffect_Ex(), Pol::Module::UOExecutorModule::mf_PlayObjectCenteredEffect(), Pol::Module::UOExecutorModule::mf_PlayObjectCenteredEffect_Ex(), Pol::Module::UOExecutorModule::mf_PlaySoundEffect(), Pol::Module::UOExecutorModule::mf_PlaySoundEffectPrivate(), Pol::Module::UOExecutorModule::mf_PrintTextAbove(), Pol::Module::ClilocExecutorModule::mf_PrintTextAboveCL(), Pol::Module::ClilocExecutorModule::mf_PrintTextAbovePrivateCL(), Pol::Module::UOExecutorModule::mf_PrivateTextAbove(), Pol::Module::UOExecutorModule::mf_RegisterForSpeechEvents(), Pol::Module::UBoatExecutorModule::mf_RegisterItemWithBoat(), Pol::Module::NPCExecutorModule::mf_RunAwayFrom(), Pol::Module::NPCExecutorModule::mf_RunToward(), Pol::Module::UOExecutorModule::mf_SendPopUpMenu(), Pol::Module::UOExecutorModule::mf_SendQuestArrow(), Pol::Module::UOExecutorModule::mf_SetName(), Pol::Module::UOExecutorModule::mf_SetObjProperty(), Pol::Module::UOExecutorModule::mf_SingleClick(), Pol::Module::NPCExecutorModule::mf_TurnAwayFrom(), Pol::Module::NPCExecutorModule::mf_TurnToward(), Pol::Module::NPCExecutorModule::mf_WalkAwayFrom(), and Pol::Module::NPCExecutorModule::mf_WalkToward().
const UOSkill & Pol::Core::GetUOSkill | ( | unsigned | skillid | ) |
Definition at line 21 of file uoskills.cpp.
References gamestate, and Pol::Core::GameState::uo_skills.
Referenced by ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), handle_skill_lock(), handle_use_skill(), Pol::Network::UOClientInterface::Initialize(), and send_skillmsg().
Definition at line 627 of file uoexhelp.cpp.
References FindVital(), Pol::Bscript::Executor::getStringParam(), Pol::Bscript::Executor::setFunctionResult(), and Pol::Bscript::String::value().
Referenced by Pol::Module::VitalExecutorModule::mf_ConsumeVital(), Pol::Module::VitalExecutorModule::mf_GetVital(), Pol::Module::VitalExecutorModule::mf_GetVitalMaximumValue(), Pol::Module::VitalExecutorModule::mf_GetVitalName(), Pol::Module::VitalExecutorModule::mf_GetVitalRegenRate(), and Pol::Module::VitalExecutorModule::mf_SetVital().
|
inline |
Definition at line 102 of file uworld.h.
References passert, Pol::Plib::WGRID_SHIFT, and Pol::Realms::Realm::zone.
Referenced by add_item_to_world(), add_multi_to_world(), ClrCharacterWorldPosition(), move_multi_in_world(), MoveCharacterWorldPosition(), MoveItemWorldPosition(), Pol::Realms::Realm::readdynamics(), remove_item_from_world(), remove_multi_from_world(), and SetCharacterWorldPosition().
bool Pol::Core::groundheight | ( | unsigned short | x, |
unsigned short | y, | ||
short * | z | ||
) |
Definition at line 77 of file uofile08.cpp.
References Pol::Core::USTRUCT_MAPINFO::landtile, landtile_uoflags(), rawmapinfo(), and ZCOORD_MIN.
Referenced by Pol::UoTool::write_polmap().
void Pol::Core::handle_A4 | ( | Network::Client * | , |
PKTIN_A4 * | |||
) |
Definition at line 225 of file login.cpp.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_accept_invite | ( | Network::Client * | client, |
PKTBI_BF * | msg | ||
) |
Definition at line 1278 of file party.cpp.
References Pol::Core::Party::add_member(), Pol::Core::ExportedFunction::call(), Pol::Mobile::Character::cancel_party_invite_timeout(), cfBEu32, Pol::Network::Client::chr, CLP_Added, CLP_Joined, CLP_No_Invite, Pol::Core::Party_Cfg::Hooks, Pol::Core::Party::leader(), Pol::Core::PKTBI_BF_06_08::leaderid, Pol::Mobile::Character::make_ref(), Pol::Core::UObject::name(), Pol::Core::Party_Cfg::OnAddToParty, Pol::Core::SettingsManager::party_cfg, Pol::Core::PKTBI_BF_06::partyaccinvite, Pol::Core::PKTBI_BF::partydata, Pol::Core::Party::remove_candidate(), Pol::Core::Party::send_member_list(), Pol::Core::Party::send_msg_to_all(), Pol::Core::Party::send_stats_on_add(), send_sysmessage_cl(), Pol::Core::ULWObject::serial, settingsManager, and system_find_mobile().
Referenced by party_cmd_handler().
void Pol::Core::handle_action | ( | Network::Client * | client, |
PKTIN_12 * | cmd | ||
) |
Definition at line 247 of file bowsalut.cpp.
References ACTION_BOW, ACTION_SALUTE, Pol::Network::Client::chr, Pol::Core::PKTIN_12::data, and send_action_to_inrange().
Referenced by Pol::Network::PacketRegistry::initialize_extended_handlers().
void Pol::Core::handle_add | ( | Network::Client * | client, |
PKTBI_BF * | msg | ||
) |
Definition at line 995 of file party.cpp.
References Pol::Core::Party::add_candidate(), Pol::Core::Cursors::add_member_cursor, cfBEu32, Pol::Network::Client::chr, CLP_Who_To_Add, gamestate, Pol::Core::PKTBI_BF_06_01_IN::memberid, Pol::Core::PKTBI_BF_06::partyadd, Pol::Core::PKTBI_BF::partydata, Pol::Core::TargetCursor::send_object_cursor(), send_sysmessage_cl(), system_find_mobile(), and Pol::Core::GameState::target_cursors.
Referenced by party_cmd_handler().
void Pol::Core::handle_add_member_cursor | ( | Mobile::Character * | chr, |
PKTBI_6C * | msgin | ||
) |
Definition at line 986 of file party.cpp.
References Pol::Core::Party::add_candidate(), cfBEu32, Pol::Mobile::Character::client, Pol::Core::PKTBI_6C::selected_serial, and system_find_mobile().
void Pol::Core::handle_allnames | ( | Client * | client, |
PKTBI_98_IN * | msg | ||
) |
Definition at line 428 of file miscmsg.cpp.
References cfBEu32, Pol::Network::Client::chr, find_character(), Pol::Mobile::Character::is_visible_to_me(), Pol::Core::UObject::name(), pol_distance(), Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::PKTBI_98_IN::serial, Pol::Core::UObject::serial_ext, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Handler for a 0xD7 packet
Checks that serial written inside packet matches sending character's serial
Definition at line 529 of file miscmsg.cpp.
References cfBEu16, cfBEu32, Pol::Network::Client::chr, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_ADD, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_ADD_MULTI, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_BACKUP, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_CLEAR, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_COMMIT, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_DELETE_ROOF, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_ERASE, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_QUIT, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_RESTORE, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_REVERT, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_SELECT_FLOOR, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_SELECT_ROOF, Pol::Core::PKTBI_D7::CUSTOM_HOUSE_SYNCH, Pol::Multi::CustomHousesAdd(), Pol::Multi::CustomHousesAddMulti(), Pol::Multi::CustomHousesBackup(), Pol::Multi::CustomHousesClear(), Pol::Multi::CustomHousesCommit(), Pol::Multi::CustomHousesErase(), Pol::Multi::CustomHousesQuit(), Pol::Multi::CustomHousesRestore(), Pol::Multi::CustomHousesRevert(), Pol::Multi::CustomHousesRoofRemove(), Pol::Multi::CustomHousesRoofSelect(), Pol::Multi::CustomHousesSelectFloor(), Pol::Multi::CustomHousesSynch(), Pol::Core::PKTBI_D7::GUILD_BUTTON, handle_unknown_packet(), INFO_PRINT, OnGuildButton(), OnQuestButton(), Pol::Core::PKTBI_D7::QUEST_BUTTON, Pol::Core::ULWObject::serial, Pol::Core::PKTBI_D7::serial, and Pol::Core::PKTBI_D7::subcmd.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 82 of file miscmsg.cpp.
References handle_unknown_packet().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_cast_spell | ( | Network::Client * | client, |
PKTIN_12 * | msg | ||
) |
Definition at line 349 of file spells.cpp.
References Pol::Core::PKTIN_12::data, and do_cast().
Referenced by Pol::Network::PacketRegistry::initialize_extended_handlers().
void Pol::Core::handle_char_profile_request | ( | Client * | client, |
PKTBI_B8_IN * | msg | ||
) |
Definition at line 151 of file miscmsg.cpp.
References cfBEu16, cfBEu32, Pol::Network::Client::chr, convertUCtoArray(), ctBEu16, find_script(), ref_ptr< T >::get(), Pol::Core::PKTBI_B8_IN::mode, Pol::Core::PKTBI_B8_IN::MODE_REQUEST, Pol::Core::PKTBI_B8_IN::MODE_UPDATE, Pol::Core::PKTBI_B8_IN::msglen, Pol::Core::PKTBI_B8_IN::profile_request, Pol::Core::PKTBI_B8_IN::profile_update, Pol::Core::PKTBI_B8_IN_REQUEST::serial, Pol::Core::PKTBI_B8_IN_UPDATE::serial, SPEECH_MAX_LEN, Pol::Mobile::Character::start_script(), system_find_mobile(), Pol::Plib::systemstate, and Pol::Core::PKTBI_B8_IN_UPDATE::wtext.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 212 of file miscmsg.cpp.
References Pol::Network::AOS, cfBEu16, Pol::Network::Client::chr, Pol::Network::CLIENT_VER_4000, Pol::Network::CLIENT_VER_4070, Pol::Network::CLIENT_VER_5000, Pol::Network::CLIENT_VER_5020, Pol::Network::CLIENT_VER_60142, Pol::Network::CLIENT_VER_6017, Pol::Network::CLIENT_VER_7000, Pol::Network::CLIENT_VER_70130, Pol::Network::CLIENT_VER_70300, Pol::Network::CLIENT_VER_70331, Pol::Network::CLIENT_VER_7090, Pol::Network::CLIENTTYPE_4000, Pol::Network::CLIENTTYPE_4070, Pol::Network::CLIENTTYPE_5000, Pol::Network::CLIENTTYPE_5020, Pol::Network::CLIENTTYPE_60142, Pol::Network::CLIENTTYPE_6017, Pol::Network::CLIENTTYPE_7000, Pol::Network::CLIENTTYPE_70130, Pol::Network::CLIENTTYPE_70300, Pol::Network::CLIENTTYPE_70331, Pol::Network::CLIENTTYPE_7090, Pol::Network::Client::compareVersion(), Pol::Core::ServSpecOpt::core_sends_season, Pol::Network::Client::itemizeclientversion(), Pol::Core::PKTBI_BD::msglen, POLLOG_INFO, send_object_cache(), send_season_info(), Pol::Network::Client::setClientType(), settingsManager, Pol::Network::Client::setversion(), Pol::Network::Client::setversiondetail(), Pol::Core::SettingsManager::ssopt, Pol::Network::Client::UOExpansionFlag, and Pol::Core::PKTBI_BD::version.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_D9 | ( | Network::Client * | client, |
PKTIN_D9 * | msg | ||
) |
Definition at line 227 of file login.cpp.
References cfBEu16, cfBEu32, Pol::Core::PKTIN_D9::cpu_clockspeed, Pol::Core::PKTIN_D9::cpu_family, Pol::Core::PKTIN_D9::cpu_model, Pol::Core::PKTIN_D9::directx_major, Pol::Core::PKTIN_D9::directx_minor, Pol::Core::PKTIN_D9::instance, Pol::Core::PKTIN_D9::langcode, Pol::Core::PKTIN_D9::memory, Pol::Core::PKTIN_D9::os_major, Pol::Core::PKTIN_D9::os_minor, Pol::Core::PKTIN_D9::os_revision, Pol::Core::PKTIN_D9::screen_depth, Pol::Core::PKTIN_D9::screen_height, Pol::Core::PKTIN_D9::screen_width, Pol::Network::Client::setclientinfo(), Pol::Core::PKTIN_D9::video_description, Pol::Core::PKTIN_D9::video_device, Pol::Core::PKTIN_D9::video_memory, and Pol::Core::PKTIN_D9::video_vendor.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_decline_invite | ( | Network::Client * | client, |
PKTBI_BF * | msg | ||
) |
Definition at line 1310 of file party.cpp.
References Pol::Core::ExportedFunction::call(), Pol::Mobile::Character::cancel_party_invite_timeout(), cfBEu32, Pol::Network::Client::chr, Pol::Mobile::Character::client, CLP_Decline, CLP_No_Invite, CLP_Notify_Decline, CLP_Too_Late_Decline, disband_party(), Pol::Mobile::Character::has_active_client(), Pol::Core::Party_Cfg::Hooks, Pol::Core::Party::is_member(), Pol::Core::Party::leader(), Pol::Core::PKTBI_BF_06_09::leaderid, Pol::Mobile::Character::make_ref(), Pol::Core::UObject::name(), Pol::Core::Party_Cfg::OnDecline, Pol::Core::SettingsManager::party_cfg, Pol::Core::PKTBI_BF::partydata, Pol::Core::PKTBI_BF_06::partydecinvite, Pol::Core::Party::remove_candidate(), send_sysmessage_cl(), send_sysmessage_cl_affix(), Pol::Core::ULWObject::serial, settingsManager, system_find_mobile(), and Pol::Core::Party::test_size().
Referenced by party_cmd_handler().
void Pol::Core::handle_delete_character | ( | Network::Client * | client, |
PKTIN_83 * | msg | ||
) |
Definition at line 486 of file login.cpp.
References Pol::Network::Client::acct, Pol::Core::PolConfig::allow_multi_clients_per_account, call_ondelete_scripts(), can_delete_character(), cfBEu32, Pol::Core::PKTIN_83::charidx, Pol::Mobile::Character::client, Pol::Plib::SystemState::config, DELETE_BY_PLAYER, delete_character(), Pol::Network::Client::Disconnect(), Pol::Accounts::Account::get_character(), Pol::Accounts::Account::has_active_characters(), LOGIN_ERROR_MISC, LOGIN_ERROR_OTHER_CHAR_INUSE, send_login_error(), send_start(), and Pol::Plib::systemstate.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 508 of file miscmsg.cpp.
References cfBEu32, Pol::Core::PKTIN_E1::clienttype, Pol::Core::PKTIN_E1::CLIENTTYPE_KR, Pol::Core::PKTIN_E1::CLIENTTYPE_SA, Pol::Network::CLIENTTYPE_UOKR, Pol::Network::CLIENTTYPE_UOSA, INFO_PRINT, and Pol::Network::Client::setClientType().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 471 of file miscmsg.cpp.
References cfBEu32, Pol::Network::CLIENT_VER_4000, Pol::Network::CLIENT_VER_4070, Pol::Network::CLIENT_VER_5000, Pol::Network::CLIENT_VER_5020, Pol::Network::CLIENT_VER_60142, Pol::Network::CLIENT_VER_6017, Pol::Network::CLIENT_VER_7000, Pol::Network::CLIENT_VER_70130, Pol::Network::CLIENT_VER_70300, Pol::Network::CLIENT_VER_70331, Pol::Network::CLIENT_VER_7090, Pol::Network::CLIENTTYPE_4000, Pol::Network::CLIENTTYPE_4070, Pol::Network::CLIENTTYPE_5000, Pol::Network::CLIENTTYPE_5020, Pol::Network::CLIENTTYPE_60142, Pol::Network::CLIENTTYPE_6017, Pol::Network::CLIENTTYPE_7000, Pol::Network::CLIENTTYPE_70130, Pol::Network::CLIENTTYPE_70300, Pol::Network::CLIENTTYPE_70331, Pol::Network::CLIENTTYPE_7090, Pol::Network::Client::compareVersion(), Pol::Network::VersionDetailStruct::major, Pol::Network::VersionDetailStruct::minor, OSTRINGSTREAM, OSTRINGSTREAM_STR, Pol::Network::VersionDetailStruct::patch, Pol::Network::VersionDetailStruct::rev, Pol::Network::Client::setClientType(), Pol::Network::Client::setversion(), Pol::Network::Client::setversiondetail(), Pol::Core::PKTIN_EF::ver_Major, Pol::Core::PKTIN_EF::ver_Minor, Pol::Core::PKTIN_EF::ver_Patch, and Pol::Core::PKTIN_EF::ver_Revision.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_get_tip | ( | Network::Client * | client, |
PKTIN_A7 * | msg | ||
) |
Definition at line 59 of file tips.cpp.
References cfBEu16, gamestate, Pol::Core::PKTIN_A7::lasttip, Pol::Core::PKTIN_A7::prevnext, send_tip(), and Pol::Core::GameState::tipfilenames.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_help | ( | Network::Client * | client, |
PKTIN_9B * | |||
) |
Definition at line 20 of file help.cpp.
References Pol::Network::Client::chr, find_script(), ref_ptr< T >::get(), Pol::Mobile::Character::start_script(), and Pol::Plib::systemstate.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_humongous_packet | ( | Network::Client * | client, |
unsigned int | reported_size | ||
) |
Definition at line 730 of file clientthread.cpp.
References Pol::Network::Client::buffer, Pol::Network::Client::recv_remaining(), and report_weird_packet().
Referenced by valid_message_length().
void Pol::Core::handle_HUP | ( | int | ) |
Definition at line 53 of file polsig.cpp.
References Pol::Core::StateManager::polsig, Pol::Core::PolSig::reload_configuration_signalled, and stateManager.
void Pol::Core::handle_ident_cursor | ( | Mobile::Character * | chr, |
PKTBI_6C * | msgin | ||
) |
Definition at line 213 of file textcmd.cpp.
References cfBEu16, cfBEu32, Pol::Mobile::Character::client, Pol::Core::PKTBI_6C::graphic, Pol::Core::PKTBI_6C::selected_serial, and send_sysmessage().
void Pol::Core::handle_keep_alive | ( | Network::Client * | client, |
PKTBI_73 * | msg | ||
) |
Definition at line 500 of file pol.cpp.
References Pol::Network::transmit().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_loot_perm | ( | Network::Client * | client, |
PKTBI_BF * | msg | ||
) |
Definition at line 1262 of file party.cpp.
References Pol::Core::ExportedFunction::call(), Pol::Core::PKTBI_BF_06_06::canloot, Pol::Network::Client::chr, CLP_Allow_Loot, CLP_No_Party, CLP_Prevent_Loot, Pol::Core::Party_Cfg::Hooks, Pol::Mobile::Character::make_ref(), Pol::Core::Party_Cfg::OnLootPermChange, Pol::Core::SettingsManager::party_cfg, Pol::Core::PKTBI_BF::partydata, Pol::Core::PKTBI_BF_06::partylootperm, send_sysmessage_cl(), Pol::Mobile::Character::set_party_can_loot(), and settingsManager.
Referenced by party_cmd_handler().
void Pol::Core::handle_map_pin | ( | Network::Client * | client, |
PKTBI_56 * | msg | ||
) |
Definition at line 358 of file umap.cpp.
References cfBEu16, cfBEu32, Pol::Network::Client::chr, Pol::Core::Map::editable, find_legal_item(), Pol::Core::Map::gumpXtoWorldX(), Pol::Core::Map::gumpYtoWorldY(), Pol::Core::Map::msgCoordsInBounds(), Pol::Core::Map::pin_points, Pol::Core::PKTBI_56::pinidx, Pol::Core::PKTBI_56::pinx, Pol::Core::PKTBI_56::piny, Pol::Core::Map::plotting, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::PKTBI_56::serial, Pol::Core::PKTBI_56::type, Pol::Core::PKTBI_56::TYPE_ADD, Pol::Core::PKTBI_56::TYPE_CHANGE, Pol::Core::PKTBI_56::TYPE_INSERT, Pol::Core::PKTBI_56::TYPE_REMOVE, Pol::Core::PKTBI_56::TYPE_REMOVE_ALL, Pol::Core::PKTBI_56::TYPE_TOGGLE_EDIT, Pol::Core::PKTBI_56::TYPE_TOGGLE_RESPONSE, Pol::Core::PinPoint::x, and Pol::Core::PinPoint::y.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_member_msg | ( | Network::Client * | client, |
PKTBI_BF * | msg | ||
) |
Definition at line 1115 of file party.cpp.
References Pol::Core::ExportedFunction::call(), cfBEu16, cfBEu32, Pol::Network::Client::chr, CLP_No_Party, convertUCtoArray(), ctBEu16, Pol::Core::Party_Cfg::Hooks, Pol::Core::Party::is_member(), Pol::Mobile::Character::make_ref(), Pol::Core::PKTBI_BF_06_03::memberid, Pol::Core::PKTBI_BF::msglen, Pol::Core::Party_Cfg::OnPrivateChat, Pol::Core::SettingsManager::party_cfg, Pol::Core::PKTBI_BF::partydata, Pol::Core::PKTBI_BF_06::partymembermsg, Pol::Core::Party::send_member_msg_private(), send_sysmessage_cl(), Pol::Core::ULWObject::serial, settingsManager, SPEECH_MAX_LEN, system_find_mobile(), and Pol::Core::PKTBI_BF_06_03::wtext.
Referenced by party_cmd_handler().
void Pol::Core::handle_menu_selection | ( | Network::Client * | client, |
PKTIN_7D * | msg | ||
) |
Definition at line 22 of file menusel.cpp.
References Pol::Network::Client::acct, Pol::Mobile::Character::cancel_menu(), cfBEu16, Pol::Core::PKTIN_7D::choice, Pol::Network::Client::chr, weak_ptr< T >::clear(), weak_ptr< T >::exists(), Pol::Core::Menu::find_menu(), weak_ptr< T >::get_weakptr(), Pol::Core::Menu::getWeakPtr(), INFO_PRINT, Pol::Mobile::Character::menu, Pol::Core::Menu::menu_id, Pol::Core::PKTIN_7D::menu_id, Pol::Core::Menu::menuitems_, Pol::Accounts::Account::name(), Pol::Core::UObject::name(), Pol::Mobile::Character::on_menu_selection, passert, passert_paranoid, POLLOG, send_menu(), and Pol::Core::MenuItem::submenu_id.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 87 of file miscmsg.cpp.
References Pol::Network::Client::chr, Pol::Core::SettingsManager::combat_config, read_gameclock(), send_move(), Pol::Mobile::Character::set_warmode(), settingsManager, Pol::Network::transmit(), Pol::Core::PKTBI_72::warmode, Pol::Core::CombatConfig::warmode_delay, and Pol::Mobile::Character::warmode_wait.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 146 of file miscmsg.cpp.
References OnChatButton().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 207 of file miscmsg.cpp.
References handle_unknown_packet().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 306 of file miscmsg.cpp.
References Pol::Network::Client::acct, Pol::Network::AOS, Pol::Multi::UMulti::as_house(), cfBEu16, cfBEu32, Pol::Module::character_race_changer_handler(), Pol::Network::Client::chr, Pol::Core::PKTBI_BF::client_lang, Pol::Core::PKTBI_BF_0F::clientflag, Pol::Core::PKTBI_BF::clienttype, ctBEu32, Pol::Multi::CustomHousesSendFull(), do_cast(), Pol::Core::PKTBI_BF_15::entry_tag, ext_stats_in(), find_script(), ref_ptr< T >::get(), handle_unknown_packet(), Pol::Multi::HOUSE_DESIGN_CURRENT, Pol::Core::PKTBI_BF_1E::house_serial, IsCharacter(), Pol::Items::Item::make_ref(), Pol::Mobile::Character::movemode, MOVEMODE_FLY, Pol::Accounts::Account::name(), Pol::Core::UObject::name(), Pol::Core::PKTBI_BF::objectcache, Pol::Mobile::Character::on_popup_menu_selection, party_cmd_handler(), POLLOG_INFO, Pol::Core::PKTBI_BF::popupselect, Pol::Mobile::Character::race, RACE_GARGOYLE, Pol::Core::PKTBI_BF::reqfullcustomhouse, Pol::Core::PKTBI_BF_1C::selected_spell, send_goxyz(), send_move_mobile_to_nearby_cansee(), send_object_cache(), SendAOSTooltip(), Pol::Core::PKTBI_BF_10::serial, Pol::Core::PKTBI_BF_15::serial, Pol::Core::PKTBI_BF::serial_request_popup_menu, Pol::Core::PKTBI_BF::spellselect, Pol::Mobile::Character::start_script(), Pol::Clib::strlower(), Pol::Core::PKTBI_BF::subcmd, system_find_item(), system_find_mobile(), system_find_multi(), system_find_object(), Pol::Plib::systemstate, Pol::Core::PKTBI_BF::TYPE_CHARACTER_RACE_CHANGER, Pol::Core::PKTBI_BF::TYPE_CLIENT_LANGUAGE, Pol::Core::PKTBI_BF::TYPE_CLIENTTYPE, Pol::Core::PKTBI_BF::TYPE_CLOSED_STATUS_GUMP, Pol::Core::PKTBI_BF::TYPE_EXTENDED_STATS_IN, Pol::Core::PKTBI_BF::TYPE_OBJECT_CACHE, Pol::Core::PKTBI_BF::TYPE_PARTY_SYSTEM, Pol::Core::PKTBI_BF::TYPE_POPUP_ENTRY_SELECT, Pol::Core::PKTBI_BF::TYPE_POPUP_MENU_REQUEST, Pol::Core::PKTBI_BF::TYPE_REQ_FULL_CUSTOM_HOUSE, Pol::Core::PKTBI_BF::TYPE_SCREEN_SIZE, Pol::Core::PKTBI_BF::TYPE_SESPAM, Pol::Core::PKTBI_BF::TYPE_SPELL_SELECT, Pol::Core::PKTBI_BF::TYPE_TOGGLE_FLYING, Pol::Mobile::Character::uclang, Pol::Network::Client::UOExpansionFlag, and Pol::Network::Client::UOExpansionFlagClient.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_open_spellbook | ( | Network::Client * | client, |
PKTIN_12 * | msg | ||
) |
Definition at line 357 of file spells.cpp.
References Pol::Mobile::Character::backpack(), Pol::Core::ExportedFunction::call(), Pol::Network::Client::chr, Pol::Mobile::Character::dead(), Pol::Items::Item::double_click(), Pol::Core::UContainer::find_toplevel_polclass(), gamestate, LAYER_HAND1, make_mobileref(), Pol::Core::SystemHooks::open_spellbook_hook, POLCLASS_SPELLBOOK, send_put_in_container(), send_sysmessage(), Pol::Core::GameState::system_hooks, and Pol::Mobile::Character::wornitem().
Referenced by Pol::Network::PacketRegistry::initialize_extended_handlers().
void Pol::Core::handle_party_msg | ( | Network::Client * | client, |
PKTBI_BF * | msg | ||
) |
Definition at line 1174 of file party.cpp.
References Pol::Core::ExportedFunction::call(), cfBEu16, Pol::Network::Client::chr, CLP_No_Party, convertUCtoArray(), ctBEu16, Pol::Core::Party_Cfg::General, Pol::Core::Party::get_member_at(), Pol::Mobile::Character::has_active_client(), Pol::Core::Party_Cfg::Hooks, Pol::Mobile::Character::make_ref(), Pol::Core::PKTBI_BF::msglen, Pol::Core::Party_Cfg::OnPrivateChat, Pol::Core::Party_Cfg::OnPublicChat, Pol::Core::SettingsManager::party_cfg, Pol::Core::PKTBI_BF::partydata, Pol::Core::PKTBI_BF_06::partymsg, Pol::Core::Party::send_member_msg_private(), Pol::Core::Party::send_member_msg_public(), send_sysmessage_cl(), settingsManager, SPEECH_MAX_LEN, system_find_mobile(), Pol::Core::Party_Cfg::TreatNoAsPrivate, and Pol::Core::PKTBI_BF_06_04_IN::wtext.
Referenced by party_cmd_handler().
void Pol::Core::handle_processed_speech | ( | Network::Client * | client, |
char * | textbuf, | ||
int | textbuflen, | ||
char | firstchar, | ||
u8 | type, | ||
u16 | color, | ||
u16 | font | ||
) |
Definition at line 47 of file speech.cpp.
References Pol::Mobile::Character::can_be_heard_as_ghost(), cfBEu16, Pol::Network::Client::chr, Pol::Mobile::Character::dead(), Pol::Core::ULWObject::graphic, Pol::Mobile::Character::hidden(), INFO_PRINT, Pol::Core::WorldIterator< Filter >::InRange(), Pol::Mobile::Character::last_textcolor(), Pol::Core::UObject::name(), process_command(), process_tildecommand(), Pol::Clib::random_int(), Pol::Core::ULWObject::realm, sayto_listening_points(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_sysmessage(), Pol::Core::UObject::serial_ext, settingsManager, SPEECH_MAX_LEN, Pol::Core::ServSpecOpt::speech_range, Pol::Mobile::Character::squelched(), Pol::Core::SettingsManager::ssopt, Pol::Plib::systemstate, TEXTTYPE_WHISPER, TEXTTYPE_YELL, Pol::Mobile::Character::unhide(), Pol::Core::ServSpecOpt::whisper_range, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ServSpecOpt::yell_range.
Referenced by SpeechHandler().
void Pol::Core::handle_prompt | ( | Network::Client * | client, |
PKTBI_9A * | msg | ||
) |
Definition at line 41 of file getmsg.cpp.
References cfBEu16, Pol::Network::Client::gd, Pol::Core::PKTBI_9A::msglen, Pol::Core::UOExecutor::os_module, Pol::Module::UOExecutorModule::prompt_chr, Pol::Network::ClientGameData::prompt_uoemod, Pol::Module::OSExecutorModule::revive(), Pol::Core::PKTBI_9A::text, Pol::Core::PKTBI_9A::type, Pol::Module::UOExecutorModule::uoexec, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_remove | ( | Network::Client * | client, |
PKTBI_BF * | msg | ||
) |
Definition at line 1053 of file party.cpp.
References Pol::Core::ExportedFunction::call(), Pol::Core::Party_Cfg::CanLeaveParty, Pol::Core::Party_Cfg::CanRemoveMember, cfBEu32, Pol::Network::Client::chr, Pol::Mobile::Character::client, CLP_No_Party, CLP_Removed, CLP_Who_to_Remove, Pol::Core::Party::disband(), disband_party(), gamestate, Pol::Mobile::Character::has_active_client(), Pol::Core::Party_Cfg::Hooks, Pol::Core::Party::is_leader(), Pol::Core::Party::is_member(), Pol::Core::Party::leader(), Pol::Mobile::Character::make_ref(), Pol::Core::PKTBI_BF_06_02_IN::memberid, Pol::Core::Party_Cfg::OnLeaveParty, Pol::Core::SettingsManager::party_cfg, Pol::Core::PKTBI_BF::partydata, Pol::Core::PKTBI_BF_06::partyremove, Pol::Core::Party::remove_member(), Pol::Core::Cursors::remove_member_cursor, send_empty_party(), Pol::Core::Party::send_member_list(), Pol::Core::TargetCursor::send_object_cursor(), Pol::Core::Party::send_remove_member(), send_sysmessage_cl(), Pol::Core::ULWObject::serial, settingsManager, system_find_mobile(), and Pol::Core::GameState::target_cursors.
Referenced by party_cmd_handler().
void Pol::Core::handle_remove_member_cursor | ( | Mobile::Character * | chr, |
PKTBI_6C * | msgin | ||
) |
Definition at line 1009 of file party.cpp.
References Pol::Core::ExportedFunction::call(), Pol::Core::Party_Cfg::CanRemoveMember, cfBEu32, Pol::Mobile::Character::client, CLP_Cannot_Remove_Self, CLP_Removed, Pol::Core::Party::disband(), disband_party(), Pol::Core::Party_Cfg::Hooks, Pol::Core::Party::is_leader(), Pol::Core::Party::is_member(), Pol::Core::Party::leader(), Pol::Mobile::Character::make_ref(), Pol::Core::Party_Cfg::OnLeaveParty, Pol::Core::SettingsManager::party_cfg, Pol::Core::Party::remove_member(), Pol::Core::PKTBI_6C::selected_serial, send_empty_party(), Pol::Core::Party::send_member_list(), Pol::Core::Party::send_remove_member(), send_sysmessage_cl(), Pol::Core::ULWObject::serial, settingsManager, and system_find_mobile().
Definition at line 107 of file miscmsg.cpp.
References Pol::Network::Client::acct, Pol::Mobile::Character::can_rename(), cfBEu32, Pol::Network::Client::chr, Pol::Clib::fdump(), find_character(), Pol::Network::Client::instance_, Pol::Core::PKTIN_75::msgtype, Pol::Accounts::Account::name(), Pol::Core::PKTIN_75::name, POLLOG_INFO, send_sysmessage(), Pol::Core::PKTIN_75::serial, and Pol::Core::UObject::setname().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_request_tooltip | ( | Network::Client * | client, |
PKTIN_B6 * | msgin | ||
) |
Definition at line 39 of file tooltips.cpp.
References cfBEu32, Pol::Network::Client::chr, find_legal_item(), IsCharacter(), Pol::Items::Item::itemdesc(), Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::PKTIN_B6::serial, and Pol::Core::UObject::serial_ext.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_resync_request | ( | Network::Client * | client, |
PKTBI_22_SYNC * | msg | ||
) |
Definition at line 483 of file pol.cpp.
References Pol::Network::Client::chr, Pol::Core::WorldIterator< Filter >::InVisualRange(), send_goxyz(), send_inrange_items(), send_inrange_multis(), Pol::Network::Client::send_pause(), and Pol::Network::Client::send_restart().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_se_object_list | ( | Client * | client, |
PKTBI_D6_IN * | msgin | ||
) |
Definition at line 455 of file miscmsg.cpp.
References cfBEu16, cfBEu32, Pol::Core::PKTBI_D6_IN::msglen, SendAOSTooltip(), Pol::Core::PKTBI_D6_IN::serial, Pol::Core::PKTBI_D6_IN::serials, and system_find_object().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_secure_trade_msg | ( | Network::Client * | client, |
PKTBI_6F * | msg | ||
) |
Definition at line 1057 of file dropitem.cpp.
References Pol::Core::PKTBI_6F::action, Pol::Core::PKTBI_6F::ACTION_CANCEL, Pol::Core::PKTBI_6F::ACTION_STATUS, cancel_trade(), change_trade_status(), Pol::Network::Client::chr, Pol::Core::PKTBI_6F::cont1_serial, INFO_PRINT_TRACE, and Pol::Mobile::Character::is_trading().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_SIGUSR1 | ( | int | ) |
Definition at line 58 of file polsig.cpp.
References Pol::Core::StateManager::polsig, Pol::Core::PolSig::report_status_signalled, and stateManager.
void Pol::Core::handle_singleclick | ( | Network::Client * | client, |
PKTIN_09 * | msg | ||
) |
Definition at line 126 of file sngclick.cpp.
References cfBEu32, Pol::Network::Client::chr, Pol::Core::PKTIN_09::serial, and singleclick().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_skill_lock | ( | Network::Client * | client, |
PKTBI_3A_LOCKS * | msg | ||
) |
Definition at line 105 of file irequest.cpp.
References Pol::Mobile::Character::attribute(), Pol::Mobile::Attribute::attrid, cfBEu16, Pol::Network::Client::chr, Pol::Core::ServSpecOpt::core_handled_locks, GetUOSkill(), INFO_PRINT, Pol::Mobile::AttributeValue::lock(), Pol::Core::PKTBI_3A_LOCKS::lock_mode, Pol::Core::UoClientGeneral::maxskills, Pol::Core::UObject::name(), networkManager, Pol::Core::UOSkill::pAttr, settingsManager, Pol::Core::PKTBI_3A_LOCKS::skillid, Pol::Core::SettingsManager::ssopt, and Pol::Core::NetworkManager::uoclient_general.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_target_cursor | ( | Network::Client * | client, |
PKTBI_6C * | msg | ||
) |
Definition at line 37 of file target.cpp.
References Pol::Core::Cursors::_cursorid_count, Pol::Core::Cursors::_target_cursors, Pol::Mobile::Character::acct, cfBEu32, Pol::Network::Client::chr, gamestate, Pol::Core::TargetCursor::handle_target_cursor(), Pol::Core::UObject::name(), POLLOG_ERROR, Pol::Core::PKTBI_6C::target_cursor_serial, Pol::Core::GameState::target_cursors, and Pol::Mobile::Character::tcursor2.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers(), and Pol::Core::TargetCursor::~TargetCursor().
void Pol::Core::handle_undefined_packet | ( | Network::Client * | client | ) |
Definition at line 715 of file clientthread.cpp.
References Pol::Network::Client::buffer, INFO_PRINT, Pol::Network::Client::recv_remaining(), and report_weird_packet().
Referenced by process_data().
void Pol::Core::handle_unicode_prompt | ( | Client * | client, |
Core::PKTBI_C2 * | msg | ||
) |
Definition at line 48 of file unimod.cpp.
References Pol::Network::Client::acct, Pol::Bscript::ObjArray::addElement(), cfBEu16, Pol::Bscript::ObjArray::copy(), Pol::Bscript::ExecutorModule::exec, Pol::Network::Client::gd, Pol::Network::Client::instance_, Pol::Core::PKTBI_C2::lang, Pol::Core::PKTBI_C2::msglen, Pol::Accounts::Account::name(), Pol::Core::UOExecutor::os_module, POLLOG_ERROR, Pol::Module::UnicodeExecutorModule::prompt_chr, Pol::Network::ClientGameData::prompt_uniemod, Pol::Bscript::ObjArray::ref_arr, Pol::Module::OSExecutorModule::revive(), SPEECH_MAX_LEN, Pol::Core::PKTBI_C2::unk, Pol::Module::UnicodeExecutorModule::uoexec, Pol::Bscript::Executor::ValueStack, and Pol::Core::PKTBI_C2::wtext.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 418 of file miscmsg.cpp.
References handle_unknown_packet().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_unknown_packet | ( | Client * | client | ) |
Definition at line 707 of file clientthread.cpp.
References report_weird_packet(), and Pol::Plib::systemstate.
Referenced by handle_aos_commands(), handle_bulletin_boards(), handle_msg_BB(), handle_msg_BF(), handle_unknown_C4(), handle_update_range_change(), and party_cmd_handler().
Definition at line 423 of file miscmsg.cpp.
References handle_unknown_packet().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::handle_use_skill | ( | Network::Client * | client, |
PKTIN_12 * | msg | ||
) |
Definition at line 30 of file useskill.cpp.
References CanUseSkill(), Pol::Core::PKTIN_12::data, Pol::Mobile::Attribute::disable_core_checks, Pol::Core::ScriptDef::empty(), GetUOSkill(), Pol::Core::UOSkill::inited, Pol::Core::UoClientGeneral::maxskills, networkManager, Pol::Core::UOSkill::pAttr, Pol::Mobile::Attribute::script_, send_sysmessage(), StartSkillScript(), and Pol::Core::NetworkManager::uoclient_general.
Referenced by Pol::Network::PacketRegistry::initialize_extended_handlers().
void Pol::Core::handle_walk | ( | Network::Client * | client, |
PKTIN_02 * | msg02 | ||
) |
Definition at line 137 of file movement.cpp.
References Pol::Core::ServSpecOpt::allow_moving_trade, cancel_trade(), Pol::Network::Client::chr, Pol::Core::PKTIN_02::dir, Pol::Core::UObject::facing, Pol::Mobile::Character::hilite_color_idx(), Pol::Mobile::Character::is_trading(), Pol::Mobile::Character::move(), Pol::Network::Client::movementsequence, Pol::Core::PKTIN_02::movenum, Pol::Network::Client::next_movement, Pol::Mobile::Character::on_mount(), Pol::Network::Client::pause(), PKTIN_02_DIR_RUNNING_BIT, PKTIN_02_FACING_MASK, pol_distance(), Pol::Network::Client::restart(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_objects_newly_inrange(), settingsManager, Pol::Core::ServSpecOpt::speedhack_footrundelay, Pol::Core::ServSpecOpt::speedhack_footwalkdelay, Pol::Core::ServSpecOpt::speedhack_mountrundelay, Pol::Core::ServSpecOpt::speedhack_mountwalkdelay, Pol::Core::SettingsManager::ssopt, Pol::Mobile::Character::tellmove(), Pol::Mobile::Character::trading_with, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
bool Pol::Core::hands_are_free | ( | Mobile::Character * | chr | ) |
Definition at line 91 of file spells.cpp.
References Pol::Items::Item::itemdesc(), LAYER_HAND1, LAYER_HAND2, and Pol::Mobile::Character::wornitem().
Bscript::BObjectImp * Pol::Core::harvest_resource | ( | const char * | resource, |
xcoord | x, | ||
ycoord | y, | ||
Realms::Realm * | realm, | ||
int | b, | ||
int | n | ||
) |
Definition at line 278 of file resource.cpp.
References gamestate, Pol::Core::RegionGroup< T >::getregion(), Pol::Core::ResourceRegion::harvest_resource(), and Pol::Core::GameState::resourcedefs.
Referenced by Pol::Module::UOExecutorModule::mf_HarvestResource().
void Pol::Core::hook | ( | ExportScript * | shs, |
const std::string & | hookname, | ||
const std::string & | exfuncname | ||
) |
Definition at line 112 of file syshook.cpp.
References Pol::Core::SystemHooks::attack_hook, Pol::Core::SystemHooks::can_decay, Pol::Core::SystemHooks::can_die, Pol::Core::SystemHooks::can_trade, Pol::Core::SystemHooks::check_skill_hook, Pol::Core::SystemHooks::close_customhouse_hook, Pol::Core::SystemHooks::combat_advancement_hook, Pol::Core::SystemHooks::consume_ammunition_hook, Pol::Core::ExportScript::FindExportedFunction(), gamestate, Pol::Core::SystemHooks::get_book_page_hook, Pol::Core::SystemHooks::hitmiss_hook, INFO_PRINT, Pol::Core::SystemHooks::on_cast_hook, Pol::Core::SystemHooks::open_spellbook_hook, Pol::Core::SystemHooks::ouch_hook, Pol::Core::SystemHooks::parry_advancement_hook, Pol::Core::SystemHooks::pushthrough_hook, Pol::Core::ExportedFunction::scriptname(), Pol::Core::ExportScript::scriptname(), Pol::Core::SystemHooks::speechmul_hook, Pol::Core::GameState::system_hooks, Pol::Core::SystemHooks::un_hide, and Pol::Core::SystemHooks::warmode_change.
Referenced by Pol::Core::NetworkManager::estimateSize(), and load_system_hooks().
std::string Pol::Core::http_decodestr | ( | const std::string & | s | ) |
Definition at line 229 of file polwww.cpp.
Referenced by http_func(), and Pol::Module::HttpExecutorModule::read_query_string().
void Pol::Core::http_forbidden | ( | Clib::Socket & | sck | ) |
void Pol::Core::http_forbidden | ( | Clib::Socket & | sck, |
const std::string & | filename | ||
) |
Definition at line 177 of file polwww.cpp.
References http_writeline().
void Pol::Core::http_func | ( | SOCKET | client_socket | ) |
Definition at line 618 of file polwww.cpp.
References Pol::Clib::Socket::connected(), decode_base64(), decode_page(), gamestate, Pol::Clib::Socket::handle(), http_decodestr(), http_forbidden(), http_not_authorized(), http_not_found(), http_readline(), http_redirect(), INFO_PRINT, init_http_thread_support(), Pol::Clib::Socket::is_local(), ISTRINGSTREAM, legal_pagename(), Pol::Core::GameState::mime_types, POLLOG_INFO, send_binary(), send_html(), start_http_script(), and Pol::Plib::systemstate.
Referenced by http_thread().
void Pol::Core::http_not_authorized | ( | Clib::Socket & | sck, |
const std::string & | |||
) |
void Pol::Core::http_not_found | ( | Clib::Socket & | sck, |
const std::string & | filename | ||
) |
Definition at line 200 of file polwww.cpp.
References http_writeline().
Referenced by http_func(), send_binary(), send_html(), and start_http_script().
bool Pol::Core::http_readline | ( | Clib::Socket & | sck, |
std::string & | s | ||
) |
Definition at line 132 of file polwww.cpp.
References Pol::Clib::Socket::close(), Pol::Clib::Socket::connected(), and Pol::Clib::Socket::recvbyte().
Referenced by http_func().
void Pol::Core::http_redirect | ( | Clib::Socket & | sck, |
const std::string & | new_url | ||
) |
void Pol::Core::http_thread | ( | void | ) |
Definition at line 824 of file polwww.cpp.
References Pol::Network::AddressToString(), Pol::Network::apply_socket_options(), Pol::Plib::SystemState::config, config_web_server(), ERROR_PRINT, Pol::Clib::exit_signalled, gamestate, http_func(), INFO_PRINT, init_http_thread_support(), INVALID_SOCKET, load_mime_config(), Pol::Core::GameState::mime_types, Pol::Network::open_listen_socket(), Pol::threadhelp::TaskThreadPool::push(), SOCKET_ERRNO, socket_errno, Pol::Plib::systemstate, test_decode(), and Pol::Core::PolConfig::web_server_port.
Referenced by start_http_server().
void Pol::Core::http_writeline | ( | Clib::Socket & | sck, |
const std::string & | s | ||
) |
Definition at line 160 of file polwww.cpp.
References Pol::Clib::Socket::send().
Referenced by http_forbidden(), http_not_authorized(), http_not_found(), http_redirect(), Pol::Module::HttpExecutorModule::mf_WriteHtmlRaw(), send_binary(), send_html(), and start_http_script().
void Pol::Core::implicit_package_cmds_cfg | ( | Plib::Package * | pkg | ) |
Definition at line 187 of file cmdlevel.cpp.
References Pol::Core::CmdLevel::add_searchdir_front(), Pol::Core::CmdLevel::aliases, Pol::Core::CmdLevel::cmdlevel, Pol::Core::GameState::cmdlevels, Pol::Plib::Package::dir(), Pol::Clib::FileExists(), gamestate, and Pol::Core::CmdLevel::name.
Referenced by load_package_cmdlevels().
void Pol::Core::import | ( | Clib::ConfigElem & | elem | ) |
Definition at line 527 of file uimport.cpp.
References add_item_to_world(), Pol::Items::Item::create(), ctBEu32, Pol::Core::UObject::destroy(), dupe_count, ERROR_PRINT, find_existing_item(), GetNewItemSerialNumber(), import_count, Pol::Core::UObject::objtype_, Pol::Items::Item::readProperties(), Pol::Core::ULWObject::realm, register_with_supporting_multi(), Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, Pol::Plib::systemstate, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
void Pol::Core::import_new_data | ( | ) |
Definition at line 564 of file uimport.cpp.
References Pol::Plib::SystemState::config, Pol::Clib::FileExists(), INFO_PRINT, Pol::Clib::ConfigFile::read(), Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by read_data().
Definition at line 504 of file ufunc.cpp.
References inrangex(), settingsManager, Pol::Core::ServSpecOpt::speech_range, and Pol::Core::SettingsManager::ssopt.
Definition at line 512 of file ufunc.cpp.
References inrangex(), settingsManager, Pol::Core::SettingsManager::ssopt, and Pol::Core::ServSpecOpt::whisper_range.
Definition at line 508 of file ufunc.cpp.
References inrangex(), settingsManager, Pol::Core::SettingsManager::ssopt, and Pol::Core::ServSpecOpt::yell_range.
void Pol::Core::init_http_thread_support | ( | ) |
Definition at line 773 of file polwww.cpp.
Referenced by http_func(), and http_thread().
void Pol::Core::init_ipc_vars | ( | ) |
Definition at line 165 of file polsem.cpp.
References passert_always.
Referenced by polsem_unlock(), and Pol::xmain_inner().
void Pol::Core::InitializeSystemTrayHandling | ( | ) |
Definition at line 269 of file polservice.cpp.
References control_handler_SystemTray(), IDI_POLTRAY, SystemTrayDialogThread(), and WM_ICON_NOTIFY.
Referenced by Pol::xmain_inner().
bool Pol::Core::inrange | ( | const UObject * | c1, |
unsigned short | x, | ||
unsigned short | y | ||
) |
Definition at line 454 of file ufunc.cpp.
References RANGE_VISUAL, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Network::UOClientInterface::bcast_vital_changed(), doubleclick(), find_legal_item(), Pol::Multi::UBoat::move(), Pol::Multi::UBoat::move_components(), move_item(), Pol::Multi::UBoat::move_travellers(), play_moving_effect(), play_moving_effect2(), play_moving_effect2_ex(), play_moving_effect_ex(), Pol::Mobile::PropagateMove(), send_char_data(), send_char_if_newly_inrange(), send_client_char_data(), Pol::Mobile::send_create_ghost(), send_create_mobile_if_nearby_cansee(), Pol::Multi::UBoat::send_display_boat_to_inrange(), send_item_if_newly_inrange(), send_move_if_inrange2(), Pol::Mobile::send_remove_if_hidden_ghost(), send_remove_object_if_inrange(), Pol::Multi::UBoat::send_smooth_move_to_inrange(), singleclick(), statrequest(), Pol::Multi::UBoat::transform_components(), and Pol::Multi::UBoat::turn_travellers().
bool Pol::Core::inrange | ( | const Mobile::Character * | c1, |
const Mobile::Character * | c2 | ||
) |
Definition at line 459 of file ufunc.cpp.
References RANGE_VISUAL, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
bool Pol::Core::inrange | ( | const Mobile::Character * | c1, |
const UObject * | obj | ||
) |
Definition at line 466 of file ufunc.cpp.
References RANGE_VISUAL, Pol::Core::ULWObject::realm, Pol::Core::UObject::toplevel_owner(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
bool Pol::Core::inrange | ( | unsigned short | x1, |
unsigned short | y1, | ||
unsigned short | x2, | ||
unsigned short | y2 | ||
) |
Definition at line 517 of file ufunc.cpp.
References RANGE_VISUAL.
Definition at line 443 of file ufunc.cpp.
References Pol::Core::ULWObject::realm, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by drop_item_on_ground(), in_say_range(), in_whisper_range(), in_yell_range(), Pol::Mobile::NPC::inform_criminal(), Pol::Module::UOExecutorModule::mf_ListHostiles(), Pol::Mobile::NPC::on_ghost_pc_spoke(), Pol::Mobile::NPC::on_pc_spoke(), and sayto_listening_points().
bool Pol::Core::inrangex | ( | const UObject * | c1, |
unsigned short | x, | ||
unsigned short | y, | ||
int | maxdist | ||
) |
Definition at line 449 of file ufunc.cpp.
References Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
|
inline |
Definition at line 15 of file ufuncinl.h.
References Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
|
inline |
Definition at line 20 of file ufuncinl.h.
References Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
void Pol::Core::insert_deferred_items | ( | ) |
Definition at line 117 of file loaddata.cpp.
References add_loaded_item(), Pol::Core::ObjectStorageManager::deferred_insertions, Pol::Core::UObject::destroy(), Pol::Tools::Timer< printer >::ellapsed(), equip_loaded_item(), ERROR_PRINT, INFO_PRINT, IsCharacter(), objStorageManager, Pol::Core::ULWObject::serial, Pol::Tools::Timer< printer >::stop(), system_find_item(), system_find_mobile(), and Pol::Plib::systemstate.
Referenced by read_data().
void Pol::Core::install_null_handler | ( | int | sig | ) |
Definition at line 65 of file polsig.cpp.
References Pol::Clib::Logging::global_logger, null_handler(), and Pol::Clib::Logging::LogFacility::wait_for_empty_queue().
Referenced by install_signal_handlers().
void Pol::Core::install_signal_handlers | ( | ) |
Definition at line 80 of file polsig.cpp.
References ERROR_PRINT, Pol::Clib::Logging::global_logger, install_null_handler(), and Pol::Clib::Logging::LogFacility::wait_for_empty_queue().
Referenced by Pol::Core::PolSig::PolSig(), and Pol::xmain_inner().
void Pol::Core::invite_timeout | ( | Mobile::Character * | mem | ) |
Definition at line 1412 of file party.cpp.
References Pol::Core::ExportedFunction::call(), Pol::Mobile::Character::client, CLP_Decline, CLP_Notify_Decline, disband_party(), Pol::Mobile::Character::has_active_client(), Pol::Core::Party_Cfg::Hooks, Pol::Core::Party::leader(), Pol::Mobile::Character::make_ref(), Pol::Core::UObject::name(), Pol::Core::Party_Cfg::OnDecline, Pol::Core::SettingsManager::party_cfg, Pol::Core::Party::remove_candidate(), send_sysmessage_cl(), send_sysmessage_cl_affix(), Pol::Core::ULWObject::serial, settingsManager, system_find_mobile(), and Pol::Core::Party::test_size().
Referenced by Pol::Mobile::Character::set_party_invite_timeout().
void Pol::Core::invoke | ( | Network::Client * | client, |
const char * | spellidstr | ||
) |
Definition at line 23 of file tildecmd.cpp.
References do_cast().
Referenced by process_tildecommand().
void Pol::Core::invoke | ( | Network::Client * | client, |
const u16 * | wspellidstr | ||
) |
Definition at line 29 of file tildecmd.cpp.
Definition at line 877 of file ufunc.cpp.
References Pol::Items::Item::container, and Pol::Core::ULWObject::serial.
Referenced by Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), and place_item_in_container().
|
inline |
Definition at line 311 of file uobject.h.
Referenced by Pol::Items::Item::check_unequip_script(), Pol::Items::Item::check_unequiptest_scripts(), doubleclick(), drop_item_on_object(), Pol::Items::Item::extricate(), get_item(), getItemParam(), handle_msg_BF(), handle_request_tooltip(), insert_deferred_items(), Pol::Module::UOExecutorModule::mf_SystemFindObjectBySerial(), read_global_item(), Pol::Items::UArmor::set_script_member_id(), Pol::Items::Item::set_script_member_id(), singleclick(), and update_item_to_inrange().
|
inline |
Definition at line 316 of file uobject.h.
Referenced by find_toplevel_object(), getCharacterOrClientParam(), getCharacterParam(), Pol::Multi::UBoat::items_list(), Pol::Multi::UBoat::on_ship(), read_item(), Pol::Multi::UBoat::readProperties(), and Pol::Multi::UBoat::realm_changed().
bool Pol::Core::iswater | ( | u16 | objtype | ) |
Definition at line 20 of file uofile04.cpp.
Referenced by Pol::UoTool::has_water(), and readwater().
bool Pol::Core::knows_spell | ( | Mobile::Character * | chr, |
u16 | spellid | ||
) |
Definition at line 61 of file spells.cpp.
References Pol::Mobile::Character::backpack(), Pol::Core::UContainer::begin(), Pol::Core::UContainer::end(), GET_ITEM_PTR, Pol::Core::Spellbook::has_spellid(), LAYER_HAND1, POLCLASS_SPELLBOOK, Pol::Items::Item::script_isa(), and Pol::Mobile::Character::wornitem().
Referenced by do_cast().
void Pol::Core::KR_Verifier_Response | ( | Network::Client * | , |
PKTIN_E4 * | |||
) |
Definition at line 517 of file login.cpp.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
unsigned int Pol::Core::landtile_flags | ( | unsigned short | landtile | ) |
Definition at line 47 of file landtile.cpp.
References gamestate, LANDTILE_COUNT, Pol::Core::GameState::landtiles, and passert_always.
Referenced by Pol::Realms::Realm::groundheight().
unsigned int Pol::Core::landtile_uoflags | ( | unsigned short | landtile | ) |
Definition at line 41 of file landtile.cpp.
References gamestate, LANDTILE_COUNT, Pol::Core::GameState::landtiles, and passert_always.
Referenced by Pol::UoConvert::create_maptile(), Pol::UoTool::findlandtileflags(), groundheight(), Pol::UoConvert::polmap_flags_from_landtile(), Pol::UoConvert::ProcessSolidBlock(), and standheight().
bool Pol::Core::legal_pagename | ( | const std::string & | page | ) |
Definition at line 326 of file polwww.cpp.
Referenced by http_func().
int Pol::Core::lightlevel | ( | unsigned short | x, |
unsigned short | y | ||
) |
void Pol::Core::list_crit_script | ( | UOExecutor * | uoexec | ) |
Definition at line 751 of file scrsched.cpp.
References Pol::Module::OSExecutorModule::critical, list_script(), and Pol::Core::UOExecutor::os_module.
Referenced by list_crit_scripts().
void Pol::Core::list_crit_scripts | ( | const char * | desc, |
const ExecList & | ls | ||
) |
Definition at line 756 of file scrsched.cpp.
References INFO_PRINT, and list_crit_script().
Referenced by list_crit_scripts(), textcmd_list_crit_scripts(), and textcmd_list_scripts().
void Pol::Core::list_crit_scripts | ( | ) |
Definition at line 765 of file scrsched.cpp.
References Pol::Core::ScriptScheduler::getRanlist(), Pol::Core::ScriptScheduler::getRunlist(), list_crit_scripts(), and scriptScheduler.
void Pol::Core::list_script | ( | UOExecutor * | uoexec | ) |
Definition at line 718 of file scrsched.cpp.
References Pol::Bscript::Executor::ControlStack, Pol::Bscript::Executor::Globals2, INFO_PRINT, Pol::Bscript::Executor::Locals2, Pol::Bscript::Executor::upperLocals2, and Pol::Bscript::Executor::ValueStack.
Referenced by list_crit_script(), and list_scripts().
void Pol::Core::list_scripts | ( | const char * | desc, |
const ExecList & | ls | ||
) |
Definition at line 735 of file scrsched.cpp.
References INFO_PRINT, and list_script().
Referenced by list_scripts(), textcmd_list_scripts(), and textcmd_orphans().
void Pol::Core::list_scripts | ( | ) |
Definition at line 744 of file scrsched.cpp.
References Pol::Core::ScriptScheduler::getRanlist(), Pol::Core::ScriptScheduler::getRunlist(), list_scripts(), and scriptScheduler.
void Pol::Core::load_anim_xlate_cfg | ( | bool | ) |
Definition at line 74 of file bowsalut.cpp.
References Pol::Core::MobileTranslate::OldAnimDef::action, Pol::Core::MobileTranslate::NewAnimDef::action, ACTION__HIGHEST, Pol::Core::MobileTranslate::NewAnimDef::anim, Pol::Core::GameState::animation_translates, Pol::Core::MobileTranslate::OldAnimDef::backward, Pol::Core::MobileTranslate::OldAnimDef::delay, Pol::Clib::FileExists(), Pol::Core::MobileTranslate::OldAnimDef::framecount, gamestate, Pol::Core::MobileTranslate::graphics, Pol::Clib::ConfigElem::has_prop(), ISTRINGSTREAM, Pol::Core::GameState::mount_action_xlate, Pol::Core::MobileTranslate::new_anim, Pol::Core::MobileTranslate::old_anim, Pol::Clib::ConfigFile::read(), Pol::Clib::ConfigElem::remove_bool(), Pol::Clib::ConfigElem::remove_first_prop(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_ushort(), Pol::Core::MobileTranslate::OldAnimDef::repeatcount, Pol::Core::MobileTranslate::OldAnimDef::repeatflag, Pol::Clib::ConfigElemBase::rest(), str_to_action(), Pol::Core::MobileTranslate::NewAnimDef::subaction, Pol::Core::MobileTranslate::supports_mount, Pol::Clib::ConfigElemBase::type_is(), Pol::Core::MobileTranslate::OldAnimDef::valid, and Pol::Core::MobileTranslate::NewAnimDef::valid.
Referenced by load_config().
void Pol::Core::load_circle_data | ( | ) |
Definition at line 433 of file spells.cpp.
References ERROR_PRINT, Pol::Clib::FileExists(), gamestate, INFO_PRINT, Pol::Clib::ConfigFile::read(), Pol::Clib::ConfigElemBase::rest(), Pol::Core::GameState::spellcircles, and Pol::Plib::systemstate.
Referenced by load_spell_data().
void Pol::Core::load_cmdlevels | ( | ) |
Definition at line 152 of file cmdlevel.cpp.
References Pol::Core::CmdLevel::cmdlevel, Pol::Core::GameState::cmdlevels, gamestate, and Pol::Clib::ConfigFile::read().
Referenced by load_data().
void Pol::Core::load_config | ( | bool | reload | ) |
Definition at line 137 of file loadunld.cpp.
References checkpoint(), load_anim_xlate_cfg(), load_movecost(), load_party_cfg(), and load_repsys_cfg().
Referenced by load_data().
void Pol::Core::load_data | ( | ) |
Definition at line 152 of file loadunld.cpp.
References check_config(), checkpoint(), Pol::Network::initialize_client_interfaces(), Pol::Mobile::load_armor_zones(), Pol::Mobile::load_attributes_cfg(), load_cmdlevels(), load_config(), Pol::Core::ConsoleCommand::load_console_commands(), Pol::Module::load_fileaccess_cfg(), Pol::Items::load_itemdesc(), load_landtile_cfg(), Pol::Items::load_npc_intrinsic_equip(), load_npc_templates(), load_package_cmdlevels(), Pol::Plib::load_packages(), load_resource_cfg(), Pol::Multi::load_special_storedconfig(), load_spell_data(), load_stacking_cfg(), load_tiles_cfg(), load_tips(), load_uoclient_cfg(), load_uoskills_cfg(), load_vitals_cfg(), Pol::Items::preload_test_scripts(), Pol::Multi::read_boat_cfg(), Pol::Core::CombatConfig::read_combat_config(), read_justice_zones(), read_light_zones(), Pol::Multi::read_multidefs(), read_music_zones(), read_nocast_zones(), read_npc_templates(), read_weather_zones(), and set_watch_vars().
Referenced by Pol::xmain_inner().
void Pol::Core::load_general_entry | ( | const Plib::Package * | pkg, |
Clib::ConfigElem & | elem | ||
) |
Definition at line 83 of file uoclient.cpp.
References checka(), checkv(), Pol::Core::UoClientGeneral::dexterity, Pol::Core::UoClientGeneral::hits, Pol::Core::ExportScript::Initialize(), Pol::Core::UoClientGeneral::intelligence, Pol::Core::UoClientGeneral::mana, Pol::Core::UoClientGeneral::maxskills, Pol::Core::UoClientGeneral::method_script, networkManager, Pol::Clib::ConfigElem::remove_prop(), Pol::Clib::ConfigElem::remove_ushort(), SKILLID__HIGHEST, Pol::Core::UoClientGeneral::stamina, Pol::Core::UoClientGeneral::strength, and Pol::Core::NetworkManager::uoclient_general.
Referenced by load_uoclient_entry().
void Pol::Core::load_incremental_indexes | ( | ) |
Definition at line 39 of file loaddata.cpp.
References Pol::Plib::SystemState::config, Pol::Clib::decint(), Pol::Clib::FileExists(), Pol::Core::ObjectStorageManager::incremental_save_count, Pol::Core::ObjectStorageManager::incremental_serial_index, name, objStorageManager, Pol::Clib::ConfigFile::read(), Pol::Clib::ConfigElem::remove_first_prop(), Pol::Plib::systemstate, Pol::Clib::ConfigElemBase::type_is(), and Pol::Core::PolConfig::world_data_path.
Referenced by read_data().
void Pol::Core::load_intrinsic_weapons | ( | ) |
Creates the intrinsic wrestling weapon for PCs must be called at startup.
Definition at line 244 of file weapon.cpp.
References Pol::Items::find_itemdesc(), gamestate, Pol::Clib::hexint(), Pol::Items::insert_intrinsic_equipment(), Pol::Items::Item::inuse(), Pol::Core::EquipDesc::is_intrinsic, Pol::Core::EquipDesc::is_pc_intrinsic, Pol::Items::Item::layer, LAYER_HAND1, Pol::Items::ItemDesc::save_on_exit, settingsManager, Pol::Items::ItemDesc::type, Pol::Items::ItemDesc::WEAPONDESC, and Pol::Core::GameState::wrestling_weapon.
Referenced by Pol::xmain_inner().
void Pol::Core::load_landtile_cfg | ( | ) |
Definition at line 33 of file landtile.cpp.
References ERROR_PRINT, gamestate, Pol::Core::GameState::landtiles_loaded, Pol::Plib::load_all_cfgs(), and load_landtile_entry().
Referenced by load_data().
void Pol::Core::load_landtile_entry | ( | const Plib::Package * | , |
Clib::ConfigElem & | elem | ||
) |
Definition at line 22 of file landtile.cpp.
References gamestate, LANDTILE_COUNT, Pol::Core::GameState::landtiles, Pol::Core::GameState::landtiles_loaded, passert_always, Pol::Plib::readflags(), Pol::Clib::ConfigElem::remove_ulong(), and Pol::Clib::ConfigElemBase::rest().
Referenced by load_landtile_cfg().
void Pol::Core::load_listener_entry | ( | const Plib::Package * | , |
Clib::ConfigElem & | elem | ||
) |
Definition at line 113 of file uoclient.cpp.
References networkManager, Pol::Core::NetworkManager::uoclient_listeners, and Pol::Core::UoClientListener::UoClientListener().
Referenced by load_uoclient_entry().
void Pol::Core::load_mime_config | ( | void | ) |
Definition at line 66 of file polwww.cpp.
References Pol::Clib::FileExists(), gamestate, Pol::Core::GameState::mime_types, Pol::Clib::ConfigFile::modified(), POLLOG_ERROR, Pol::Clib::ConfigFile::read(), and Pol::Clib::ConfigElem::remove_prop().
Referenced by config_web_server(), and http_thread().
void Pol::Core::load_movecost | ( | bool | reload | ) |
Definition at line 116 of file movecost.cpp.
References Pol::Clib::FileExists(), INFO_PRINT, Pol::Core::SettingsManager::movecost_running, Pol::Core::SettingsManager::movecost_running_mounted, Pol::Core::SettingsManager::movecost_walking, Pol::Core::SettingsManager::movecost_walking_mounted, Pol::Core::ServSpecOpt::movement_uses_stamina, Pol::Clib::ConfigFile::read(), read_movecost(), settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Plib::systemstate, and Pol::Clib::ConfigElemBase::type_is().
Referenced by load_config().
void Pol::Core::load_npc_templates | ( | ) |
Definition at line 124 of file npctmpl.cpp.
References create_npc_template(), Pol::Clib::FileExists(), Pol::Plib::GetPackageCfgPath(), Pol::Plib::SystemState::packages, Pol::Core::NpcTemplate::pkg, Pol::Clib::ConfigFile::read(), and Pol::Plib::systemstate.
Referenced by load_data(), and reload_configuration().
void Pol::Core::load_package_cmdlevels | ( | ) |
Definition at line 222 of file cmdlevel.cpp.
References Pol::Clib::FileExists(), Pol::Plib::GetPackageCfgPath(), implicit_package_cmds_cfg(), Pol::Plib::SystemState::packages, process_package_cmds_cfg(), and Pol::Plib::systemstate.
Referenced by load_data().
void Pol::Core::load_party_cfg | ( | bool | reload | ) |
Definition at line 160 of file party.cpp.
References Pol::Clib::CST_NORMAL, Pol::Core::Party_Cfg::DeclineTimeout, Pol::Clib::FileExists(), Pol::Core::Party_Cfg::General, load_party_cfg_general(), load_party_cfg_hooks(), Pol::Clib::ConfigSection::matches(), Pol::Core::Party_Cfg::MaxPartyMembers, Pol::Core::SettingsManager::party_cfg, Pol::Core::Party_Cfg::PrivateMsgPrefixLen, Pol::Clib::ConfigFile::read(), Pol::Core::Party_Cfg::RejoinPartyOnLogon, Pol::Core::Party_Cfg::RemoveMemberOnLogoff, settingsManager, and Pol::Core::Party_Cfg::TreatNoAsPrivate.
Referenced by load_config().
void Pol::Core::load_party_cfg_general | ( | Clib::ConfigElem & | elem | ) |
Definition at line 91 of file party.cpp.
References convertArrayToUC(), Pol::Core::Party_Cfg::DeclineTimeout, Pol::Core::Party_Cfg::General, Pol::Core::Party_Cfg::MaxPartyMembers, Pol::Core::SettingsManager::party_cfg, Pol::Core::Party_Cfg::PrivateMsgPrefix, Pol::Core::Party_Cfg::PrivateMsgPrefixLen, Pol::Core::Party_Cfg::RejoinPartyOnLogon, Pol::Clib::ConfigElem::remove_bool(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_ushort(), Pol::Core::Party_Cfg::RemoveMemberOnLogoff, settingsManager, SPEECH_MAX_LEN, and Pol::Core::Party_Cfg::TreatNoAsPrivate.
Referenced by load_party_cfg().
void Pol::Core::load_party_cfg_hooks | ( | Clib::ConfigElem & | elem | ) |
Definition at line 126 of file party.cpp.
References Pol::Core::Party_Cfg::CanAddToParty, Pol::Core::Party_Cfg::CanLeaveParty, Pol::Core::Party_Cfg::CanRemoveMember, Pol::Core::Party_Cfg::ChangePrivateChat, Pol::Core::Party_Cfg::ChangePublicChat, FindExportedFunction(), Pol::Core::Party_Cfg::Hooks, Pol::Core::Party_Cfg::OnAddToParty, Pol::Core::Party_Cfg::OnDecline, Pol::Core::Party_Cfg::OnDisband, Pol::Core::Party_Cfg::OnLeaveParty, Pol::Core::Party_Cfg::OnLootPermChange, Pol::Core::Party_Cfg::OnPartyCreate, Pol::Core::Party_Cfg::OnPrivateChat, Pol::Core::Party_Cfg::OnPublicChat, Pol::Core::SettingsManager::party_cfg, Pol::Clib::ConfigElem::remove_prop(), and settingsManager.
Referenced by load_party_cfg().
void Pol::Core::load_pol_static_files | ( | ) |
void Pol::Core::load_protocol_entry | ( | const Plib::Package * | , |
Clib::ConfigElem & | elem | ||
) |
Definition at line 107 of file uoclient.cpp.
References Pol::Core::UoClientProtocol::EnableFlowControlPackets, networkManager, Pol::Clib::ConfigElem::remove_bool(), and Pol::Core::NetworkManager::uoclient_protocol.
Referenced by load_uoclient_entry().
bool Pol::Core::load_realms | ( | ) |
Definition at line 28 of file realms.cpp.
References Pol::Clib::DirList::at_end(), Pol::Core::GameState::baserealm_count, Pol::Clib::decint(), Pol::Tools::Timer< printer >::ellapsed(), gamestate, Pol::Core::GameState::main_realm, MAX_NUMER_REALMS, Pol::Realms::Realm::name(), passert_r, POLLOG_INFO, Pol::Core::GameState::Realms, Pol::Core::GameState::shadowrealm_count, and Pol::Plib::systemstate.
Referenced by Pol::xmain_inner().
void Pol::Core::load_repsys_cfg | ( | bool | reload | ) |
Definition at line 140 of file repsys.cpp.
References Pol::Clib::CST_NORMAL, load_repsys_cfg_general(), load_repsys_cfg_hooks(), load_repsys_cfg_namecoloring(), Pol::Clib::ConfigSection::matches(), and Pol::Clib::ConfigFile::read().
Referenced by load_config().
void Pol::Core::load_repsys_cfg_general | ( | Clib::ConfigElem & | elem | ) |
Definition at line 80 of file repsys.cpp.
References Pol::Core::RepSys_Cfg::AggressorFlagTimeout, Pol::Core::RepSys_Cfg::CriminalFlagInterval, Pol::Core::RepSys_Cfg::General, Pol::Core::RepSys_Cfg::PartyHelpFullCountsAsCriminal, Pol::Clib::ConfigElem::remove_bool(), Pol::Clib::ConfigElem::remove_ushort(), Pol::Core::SettingsManager::repsys_cfg, and settingsManager.
Referenced by load_repsys_cfg().
void Pol::Core::load_repsys_cfg_hooks | ( | Clib::ConfigElem & | elem | ) |
Definition at line 89 of file repsys.cpp.
References FindExportedFunction(), Pol::Core::RepSys_Cfg::HighLightColor, Pol::Core::RepSys_Cfg::Hooks, Pol::Core::RepSys_Cfg::NameColor, Pol::Core::RepSys_Cfg::OnAttack, Pol::Core::RepSys_Cfg::OnDamage, Pol::Core::RepSys_Cfg::OnHelp, Pol::Clib::ConfigElem::remove_prop(), Pol::Core::SettingsManager::repsys_cfg, and settingsManager.
Referenced by load_repsys_cfg().
void Pol::Core::load_repsys_cfg_namecoloring | ( | Clib::ConfigElem & | elem | ) |
Reputation System.
[1] Reputation System Configuration Reputation System Configuration is read from config/repsys.cfg This file is re-read on a config reload. [1.1] General Configuration Settings are defined in the General section: CriminalFlagInterval Time, in seconds, for which you will be marked criminal AggressorFlagTimeout Time, in seconds, for which you will be marked an aggressor
[1.2] Color Configuration Name colors are defined in the NameColoring section: Murderer Criminal Attackable Innocent GuildAlly GuildEnemy Invulnerable The client specifies highlight colors.
Definition at line 70 of file repsys.cpp.
References Pol::Core::RepSys_Cfg::Attackable, Pol::Core::RepSys_Cfg::Criminal, Pol::Core::RepSys_Cfg::GuildAlly, Pol::Core::RepSys_Cfg::GuildEnemy, Pol::Core::RepSys_Cfg::Innocent, Pol::Core::RepSys_Cfg::Invulnerable, Pol::Core::RepSys_Cfg::Murderer, Pol::Core::RepSys_Cfg::NameColoring, Pol::Clib::ConfigElem::remove_ushort(), Pol::Core::SettingsManager::repsys_cfg, and settingsManager.
Referenced by load_repsys_cfg().
void Pol::Core::load_resource_cfg | ( | ) |
Definition at line 352 of file resource.cpp.
References count_resource_tiles(), Pol::Clib::FileExists(), INFO_PRINT, Pol::Clib::ConfigFile::read(), read_resource_cfg(), Pol::Clib::ConfigElem::remove_prop(), and Pol::Plib::systemstate.
Referenced by load_data().
void Pol::Core::load_skill_entry | ( | const Plib::Package * | pkg, |
Clib::ConfigElem & | elem | ||
) |
Definition at line 71 of file uoskills.cpp.
References gamestate, Pol::Core::UOSkill::skillid, Pol::Clib::ConfigElem::throw_error(), and Pol::Core::GameState::uo_skills.
Referenced by load_uoskills_cfg().
void Pol::Core::load_skill_scripts | ( | ) |
void Pol::Core::load_spell_data | ( | ) |
Definition at line 481 of file spells.cpp.
References Pol::Clib::FileExists(), Pol::Plib::GetPackageCfgPath(), INFO_PRINT, load_circle_data(), load_spells_cfg(), Pol::Plib::SystemState::packages, and Pol::Plib::systemstate.
Referenced by load_data().
void Pol::Core::load_spells_cfg | ( | const char * | path, |
Plib::Package * | pkg | ||
) |
Definition at line 466 of file spells.cpp.
References Pol::Clib::ConfigFile::read(), and register_spell().
Referenced by load_spell_data().
void Pol::Core::load_stacking_cfg | ( | ) |
Definition at line 40 of file stackcfg.cpp.
References Pol::Clib::FileExists(), Pol::Plib::GetPackageCfgPath(), Pol::Plib::SystemState::packages, read_stacking_cfg(), and Pol::Plib::systemstate.
Referenced by load_data().
void Pol::Core::load_system_hooks | ( | ) |
Definition at line 232 of file syshook.cpp.
References Pol::Core::GameState::export_scripts, Pol::Clib::FileExists(), gamestate, Pol::Plib::GetPackageCfgPath(), hook(), Pol::Core::ExportScript::Initialize(), Pol::Plib::SystemState::packages, and Pol::Plib::systemstate.
Referenced by Pol::xmain_inner().
void Pol::Core::load_tile_entry | ( | const Plib::Package * | , |
Clib::ConfigElem & | elem | ||
) |
Definition at line 24 of file tiles.cpp.
References Pol::Core::Tile::desc, Pol::Core::Tile::flags, Pol::Core::Tile::height, Pol::Core::Tile::layer, passert_always, Pol::Plib::readflags(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_ulong(), Pol::Clib::ConfigElem::remove_ushort(), Pol::Clib::ConfigElemBase::rest(), Pol::Plib::systemstate, Pol::Plib::SystemState::tile, Pol::Plib::SystemState::tiles_loaded, Pol::Core::Tile::uoflags, and Pol::Core::Tile::weight.
Referenced by load_tiles_cfg().
void Pol::Core::load_tiles_cfg | ( | ) |
Definition at line 39 of file tiles.cpp.
References Pol::Plib::SystemState::config, ERROR_PRINT, Pol::Plib::load_all_cfgs(), load_tile_entry(), Pol::Core::PolConfig::max_tile_id, Pol::Plib::systemstate, and Pol::Plib::SystemState::tile.
Referenced by load_data().
void Pol::Core::load_tips | ( | ) |
Definition at line 16 of file tiplstwn.cpp.
References Pol::Clib::DirList::at_end(), gamestate, name, and Pol::Core::GameState::tipfilenames.
Referenced by load_data().
void Pol::Core::load_uoclient_cfg | ( | ) |
Definition at line 128 of file uoclient.cpp.
References Pol::Plib::load_packaged_cfgs(), and load_uoclient_entry().
Referenced by load_data().
void Pol::Core::load_uoclient_entry | ( | const Plib::Package * | pkg, |
Clib::ConfigElem & | elem | ||
) |
Definition at line 118 of file uoclient.cpp.
References load_general_entry(), load_listener_entry(), load_protocol_entry(), and Pol::Clib::ConfigElemBase::type_is().
Referenced by load_uoclient_cfg().
void Pol::Core::load_uoskills_cfg | ( | ) |
Definition at line 87 of file uoskills.cpp.
References gamestate, Pol::Plib::load_packaged_cfgs(), load_skill_entry(), SKILLID__COUNT, and Pol::Core::GameState::uo_skills.
Referenced by load_data().
void Pol::Core::load_vital_entry | ( | const Plib::Package * | pkg, |
Clib::ConfigElem & | elem | ||
) |
Definition at line 100 of file vital.cpp.
References Pol::Core::Vital::aliases, Pol::Plib::Package::desc(), FindVital(), gamestate, Pol::Core::Vital::name, Pol::Core::Vital::pkg, Pol::Clib::ConfigElem::throw_error(), Pol::Core::Vital::Vital(), Pol::Core::Vital::vitalid, Pol::Core::GameState::vitals, and Pol::Core::GameState::vitals_byname.
Referenced by load_vitals_cfg().
void Pol::Core::load_vitals_cfg | ( | ) |
Definition at line 120 of file vital.cpp.
References checkpoint(), FindVital(), gamestate, Pol::Plib::load_packaged_cfgs(), load_vital_entry(), Pol::Core::GameState::numVitals, passert_always, Pol::Core::GameState::pVitalLife, Pol::Core::GameState::pVitalMana, Pol::Core::GameState::pVitalStamina, and Pol::Core::GameState::vitals.
Referenced by load_data().
ConfigFileRef Pol::Core::LoadTusScpFile | ( | const std::string & | filename | ) |
Definition at line 326 of file cfgrepos.cpp.
References Pol::Clib::FileExists(), and Pol::Core::StoredConfigFile::StoredConfigFile().
Referenced by Pol::Module::ConfigFileExecutorModule::mf_LoadTusScpFile().
void Pol::Core::log_all_script_cycle_counts | ( | bool | clear_counters | ) |
Definition at line 157 of file scrstore.cpp.
References ref_counted::count(), GET_PROFILEVAR, Pol::Bscript::EScriptProgram::instr_cycles, Pol::Bscript::EScriptProgram::invocations, Pol::Bscript::EScriptProgram::name, POLLOG, Pol::Core::StateManager::profilevars, Pol::Core::ProfileVars::rotations, Pol::Core::ProfileVars::script_passes, scriptScheduler, Pol::Core::ScriptScheduler::scrstore, stateManager, and Pol::Plib::systemstate.
Referenced by Pol::Module::PolCore::call_method(), Pol::Core::GameState::deinitialize(), textcmd_log_profile(), and textcmd_log_profile_clear().
void Pol::Core::login2 | ( | Network::Client * | client, |
PKTIN_91 * | msg | ||
) |
Definition at line 388 of file login.cpp.
References Pol::Network::Client::acct, Pol::Network::AddressToString(), Pol::Accounts::Account::banned(), cfBEu16, Pol::Network::Client::ClientType, Pol::Network::Client::Disconnect(), Pol::Accounts::Account::enabled(), Pol::Network::Client::encrypt_server_stream, Pol::Accounts::find_account(), Pol::Network::Client::ipaddr, Pol::Network::is_banned_ip(), LOGIN_ERROR_ACCOUNT_BLOCKED, LOGIN_ERROR_NO_ACCOUNT, LOGIN_ERROR_WRONG_PASSWORD, Pol::Clib::MD5_Compare(), Pol::Clib::MD5_Encrypt(), Pol::Accounts::Account::name(), Pol::Core::PKTIN_91::name, Pol::Accounts::Account::password(), Pol::Core::PKTIN_91::password, Pol::Accounts::Account::passwordhash(), POLLOG, send_login_error(), send_start(), Pol::Accounts::Account::set_password(), Pol::Plib::systemstate, and Pol::Core::PKTIN_91::unk3_4_ClientType.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::login_complete | ( | Client * | c | ) |
Definition at line 1947 of file ufunc.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send().
Referenced by start_client_char().
void Pol::Core::loginserver_login | ( | Network::Client * | client, |
PKTIN_80 * | msg | ||
) |
Definition at line 106 of file login.cpp.
References Pol::Network::Client::acct, Pol::Network::AddressToString(), Pol::Accounts::Account::banned(), Pol::Accounts::Account::default_cmdlevel(), Pol::Network::Client::Disconnect(), Pol::Accounts::Account::enabled(), Pol::Accounts::find_account(), Pol::Core::ServerDescription::hostname, Pol::Core::ServerDescription::ip, Pol::Network::Client::ipaddr, Pol::Network::is_banned_ip(), LOGIN_ERROR_ACCOUNT_BLOCKED, LOGIN_ERROR_MISC, LOGIN_ERROR_NO_ACCOUNT, LOGIN_ERROR_WRONG_PASSWORD, Pol::Clib::MD5_Compare(), Pol::Clib::MD5_Encrypt(), Pol::Core::ServerDescription::name, Pol::Accounts::Account::name(), Pol::Core::PKTIN_80::name, networkManager, Pol::Accounts::Account::password(), Pol::Core::PKTIN_80::password, Pol::Accounts::Account::passwordhash(), POLLOG, POLLOG_INFO, Pol::Network::PktHelper::PacketOut< T >::Send(), send_login_error(), server_applies(), Pol::Core::NetworkManager::servers, Pol::Accounts::Account::set_password(), and Pol::Plib::systemstate.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Bscript::BObjectImp * Pol::Core::make_boatref | ( | Multi::UBoat * | boat | ) |
Definition at line 24 of file mkscrobj.cpp.
Referenced by Pol::Multi::UBoat::readProperties(), and Pol::Multi::UBoat::scripted_create().
Bscript::BObjectImp * Pol::Core::make_itemref | ( | Items::Item * | item | ) |
Definition at line 19 of file mkscrobj.cpp.
Referenced by Pol::Multi::UBoat::items_list(), and Pol::Core::StorageAreaIterator::step().
Bscript::BObjectImp * Pol::Core::make_mobileref | ( | Mobile::Character * | chr | ) |
Definition at line 14 of file mkscrobj.cpp.
Referenced by Pol::Mobile::Character::CheckPushthrough(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Multi::CustomHousesCommit(), Pol::Multi::UHouse::CustomHousesQuit(), Pol::Mobile::Character::die(), do_cast(), handle_open_spellbook(), Pol::Multi::UBoat::mobiles_list(), Pol::Mobile::Character::move(), Pol::Mobile::Character::unhide(), and UnicodeSpeechHandler().
bool Pol::Core::move_character_to | ( | Mobile::Character * | chr, |
unsigned short | x, | ||
unsigned short | y, | ||
short | z, | ||
int | flags, | ||
Realms::Realm * | oldrealm | ||
) |
Definition at line 50 of file core.cpp.
References Pol::Multi::UMulti::as_house(), Pol::Mobile::Character::check_light_region_change(), CLASS_NPC, Pol::Mobile::Character::client, Pol::Network::Client::gd, Pol::Mobile::Character::gradual_boost, Pol::Mobile::Character::has_active_client(), Pol::Realms::Realm::height(), Pol::Core::ULWObject::isa(), Pol::Mobile::Character::lastx, Pol::Mobile::Character::lasty, Pol::Mobile::Character::lastz, MoveCharacterWorldPosition(), MOVEITEM_FORCELOCATION, Pol::Mobile::Character::movemode, passert_assume, Pol::Mobile::Character::position_changed(), Pol::Core::ULWObject::realm, Pol::Multi::UMulti::register_object(), Pol::Mobile::Character::registered_house, send_goxyz(), send_new_subserver(), send_objects_newly_inrange(), send_owncreate(), Pol::Core::ULWObject::serial, Pol::Core::UObject::set_dirty(), system_find_multi(), Pol::Mobile::Character::tellmove(), Pol::Multi::UMulti::unregister_object(), Pol::Items::Item::walk_on(), Pol::Multi::UHouse::walk_on(), Pol::Realms::Realm::walkheight(), Pol::Network::ClientGameData::weather_region, Pol::Realms::Realm::width(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Multi::CustomHousesSelectFloor(), Pol::Multi::CustomHouseStopEditing(), Pol::Module::UOExecutorModule::internal_MoveCharacter(), Pol::Module::UOExecutorModule::mf_SendHousingTool(), and Pol::Multi::move_to_ground().
Definition at line 1601 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InRange(), Pol::Core::WorldIterator< Filter >::InVisualRange(), move_delta, MoveItemWorldPosition(), RANGE_VISUAL, Pol::Core::ULWObject::realm, Pol::Items::Item::restart_decay_timer(), send_item(), Pol::Core::UObject::serial_ext, Pol::Core::ULWObject::x, Pol::Core::MoveDelta::xmove, Pol::Core::ULWObject::y, and Pol::Core::MoveDelta::ymove.
Referenced by ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Mobile::Character::die(), get_item(), Pol::Module::UOExecutorModule::internal_MoveItem(), Pol::Multi::move_to_ground(), return_traded_items(), Pol::Items::Item::script_method_id(), Pol::Core::UContainer::spill_contents(), undo_get_item(), and Pol::Module::ItemGivenEvent::~ItemGivenEvent().
void Pol::Core::move_item | ( | Item * | item, |
unsigned short | newx, | ||
unsigned short | newy, | ||
signed char | newz, | ||
Realms::Realm * | oldrealm | ||
) |
Definition at line 1627 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InRange(), inrange(), Pol::Core::WorldIterator< Filter >::InVisualRange(), MoveItemWorldPosition(), RANGE_VISUAL, Pol::Items::Item::restart_decay_timer(), send_item(), Pol::Core::UObject::serial_ext, Pol::Core::UObject::set_dirty(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
void Pol::Core::move_multi_in_world | ( | unsigned short | oldx, |
unsigned short | oldy, | ||
unsigned short | newx, | ||
unsigned short | newy, | ||
Multi::UMulti * | multi, | ||
Realms::Realm * | oldrealm | ||
) |
Definition at line 87 of file uworld.cpp.
References Pol::Realms::Realm::add_multi(), getzone(), Pol::Core::Zone::multis, passert, Pol::Core::ULWObject::realm, and Pol::Realms::Realm::remove_multi().
Referenced by Pol::Multi::UBoat::move(), and Pol::Multi::UBoat::move_xy().
void Pol::Core::MoveCharacterWorldPosition | ( | unsigned short | oldx, |
unsigned short | oldy, | ||
unsigned short | newx, | ||
unsigned short | newy, | ||
Mobile::Character * | chr, | ||
Realms::Realm * | oldrealm | ||
) |
Definition at line 171 of file uworld.cpp.
References Pol::Realms::Realm::add_mobile(), Pol::Core::Zone::characters, CLASS_NPC, getzone(), Pol::Core::ULWObject::isa(), Pol::Mobile::Character::logged_in(), Pol::Realms::Moved, Pol::Core::Zone::npcs, passert, Pol::Core::ULWObject::realm, and Pol::Realms::Realm::remove_mobile().
Referenced by Pol::Mobile::Character::CustomHousingMove(), Pol::Mobile::Character::move(), move_character_to(), Pol::Multi::UBoat::move_travellers(), and Pol::Multi::UBoat::turn_travellers().
unsigned short Pol::Core::movecost | ( | const Mobile::Character * | chr, |
int | carry_perc, | ||
bool | running, | ||
bool | mounted | ||
) |
Definition at line 87 of file movecost.cpp.
References Pol::Core::MovementCost::cost, MAX_CARRY_PERC, Pol::Core::SettingsManager::movecost_running, Pol::Core::SettingsManager::movecost_running_mounted, Pol::Core::SettingsManager::movecost_walking, Pol::Core::SettingsManager::movecost_walking_mounted, and settingsManager.
Referenced by Pol::Mobile::Character::move().
void Pol::Core::MoveItemWorldPosition | ( | unsigned short | oldx, |
unsigned short | oldy, | ||
Items::Item * | item, | ||
Realms::Realm * | oldrealm | ||
) |
Definition at line 214 of file uworld.cpp.
References Pol::Realms::Realm::add_toplevel_item(), getzone(), Pol::Core::Zone::items, Pol::Realms::Realm::name(), passert, POLLOG_ERROR, Pol::Core::ULWObject::realm, Pol::Realms::Realm::remove_toplevel_item(), Pol::Core::ULWObject::serial, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Multi::UBoat::move_components(), move_item(), Pol::Multi::UBoat::move_travellers(), Pol::Core::UDoor::toggle(), Pol::Multi::UBoat::transform_components(), and Pol::Multi::UBoat::turn_travellers().
bool Pol::Core::multi_inrange | ( | const Mobile::Character * | c1, |
const Multi::UMulti * | obj | ||
) |
Definition at line 474 of file ufunc.cpp.
References RANGE_VISUAL_LARGE_BUILDINGS, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by send_multi_if_newly_inrange().
bool Pol::Core::multi_inrange | ( | unsigned short | x1, |
unsigned short | y1, | ||
unsigned short | x2, | ||
unsigned short | y2 | ||
) |
Definition at line 522 of file ufunc.cpp.
References RANGE_VISUAL_LARGE_BUILDINGS.
bool Pol::Core::newstat_dont_add | ( | std::vector< Plib::STATIC_ENTRY > & | vec, |
USTRUCT_STATIC * | pstat | ||
) |
Definition at line 30 of file polfile1.cpp.
References Pol::Plib::SystemState::config, Pol::Core::USTRUCT_STATIC::graphic, Pol::Plib::STATIC_ENTRY::hue, Pol::Core::USTRUCT_STATIC::hue, Pol::Core::PolConfig::max_tile_id, Pol::Plib::STATIC_ENTRY::objtype, passert_always, Pol::Plib::systemstate, tileheight(), Pol::Core::USTRUCT_STATIC::x_offset, Pol::Plib::STATIC_ENTRY::xy, Pol::Core::USTRUCT_STATIC::y_offset, Pol::Plib::STATIC_ENTRY::z, and Pol::Core::USTRUCT_STATIC::z.
Referenced by write_pol_static_files().
|
static |
Definition at line 48 of file spells.cpp.
References gamestate, Pol::Core::RegionGroup< T >::getregion(), Pol::Core::NoCastRegion::nocast(), Pol::Core::GameState::nocastdef, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Core::USpell::cast(), and do_cast().
void Pol::Core::null_handler | ( | int | ) |
Definition at line 63 of file polsig.cpp.
Referenced by install_null_handler().
void Pol::Core::on_loggoff_party | ( | Mobile::Character * | chr | ) |
Definition at line 878 of file party.cpp.
References Pol::Core::Party::add_offline_mem(), Pol::Core::ExportedFunction::call(), CLP_Player_Removed, Pol::Core::Party::disband(), disband_party(), Pol::Core::Party_Cfg::General, Pol::Core::Party::get_member_at(), Pol::Core::Party_Cfg::Hooks, Pol::Core::Party::is_leader(), Pol::Core::Party::leader(), Pol::Mobile::Character::make_ref(), Pol::Core::Party_Cfg::OnLeaveParty, Pol::Core::SettingsManager::party_cfg, Pol::Core::Party_Cfg::RejoinPartyOnLogon, Pol::Core::Party::remove_member(), Pol::Core::Party_Cfg::RemoveMemberOnLogoff, Pol::Core::Party::send_member_list(), Pol::Core::Party::send_msg_to_all(), Pol::Core::Party::send_remove_member(), Pol::Core::ULWObject::serial, Pol::Core::Party::set_leader(), settingsManager, and Pol::Core::Party::test_size().
Referenced by Pol::Mobile::Character::disconnect_cleanup().
void Pol::Core::on_loggon_party | ( | Mobile::Character * | chr | ) |
Definition at line 923 of file party.cpp.
References Pol::Core::Party::add_member(), Pol::Mobile::Character::client, CLP_Player_Rejoined, CLP_Rejoined, Pol::Core::UObject::name(), Pol::Core::Party::remove_offline_mem(), send_empty_party(), Pol::Core::Party::send_member_list(), Pol::Core::Party::send_msg_to_all(), Pol::Core::Party::send_stats_on_add(), send_sysmessage_cl(), and Pol::Core::ULWObject::serial.
Referenced by start_client_char().
void Pol::Core::OnChatButton | ( | Client * | client | ) |
Definition at line 628 of file miscmsg.cpp.
References Pol::Network::Client::chr, find_script(), ref_ptr< T >::get(), Pol::Mobile::Character::start_script(), and Pol::Plib::systemstate.
Referenced by handle_msg_B5().
void Pol::Core::onetime_create_stubdata | ( | ) |
void Pol::Core::OnGuildButton | ( | Client * | client | ) |
Definition at line 608 of file miscmsg.cpp.
References Pol::Network::Client::chr, find_script(), ref_ptr< T >::get(), Pol::Mobile::Character::start_script(), and Pol::Plib::systemstate.
Referenced by handle_aos_commands().
void Pol::Core::OnQuestButton | ( | Client * | client | ) |
Definition at line 618 of file miscmsg.cpp.
References Pol::Network::Client::chr, find_script(), ref_ptr< T >::get(), Pol::Mobile::Character::start_script(), and Pol::Plib::systemstate.
Referenced by handle_aos_commands().
FILE* Pol::Core::open_map_file | ( | std::string | name, |
int | map_id | ||
) |
Definition at line 70 of file uofile00.cpp.
References ERROR_PRINT, Pol::Clib::FileExists(), open_uo_file(), Pol::Plib::systemstate, Pol::Clib::tostring(), and uo_mapid.
Referenced by open_uo_data_files().
bool Pol::Core::open_trade_window | ( | Network::Client * | client, |
Items::Item * | item, | ||
Mobile::Character * | dropon | ||
) |
Definition at line 465 of file dropitem.cpp.
References Pol::Core::ServSpecOpt::allow_secure_trading_in_warmode, Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Mobile::Character::dead(), do_open_trade_window(), Pol::Mobile::Character::is_trading(), send_sysmessage(), settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Plib::systemstate, and Pol::Mobile::Character::warmode().
Referenced by drop_item_on_mobile(), and Pol::Module::UOExecutorModule::mf_SecureTradeWin().
Bscript::BObjectImp * Pol::Core::open_trade_window | ( | Network::Client * | client, |
Mobile::Character * | dropon | ||
) |
Definition at line 510 of file dropitem.cpp.
References Pol::Core::ServSpecOpt::allow_secure_trading_in_warmode, Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Mobile::Character::dead(), do_open_trade_window(), Pol::Mobile::Character::is_trading(), settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Plib::systemstate, and Pol::Mobile::Character::warmode().
void Pol::Core::open_uo_data_files | ( | void | ) |
Definition at line 91 of file uofile00.cpp.
References Pol::Clib::FileExists(), open_map_file(), open_uo_file(), open_uopmap_file(), Pol::Plib::systemstate, and Pol::Clib::tostring().
Referenced by Pol::UoTool::contour(), Pol::UoTool::defragstatics(), Pol::UoTool::findgraphic(), Pol::UoTool::findlandtile(), Pol::UoTool::findlandtileflags(), Pol::UoTool::flagsearch(), Pol::UoTool::landtileflagsearch(), Pol::UoTool::landtilehist(), Pol::UoTool::loschange(), Pol::UoConvert::UoConvertMain::main(), Pol::UoTool::UoToolMain::main(), Pol::UoTool::mapdump(), Pol::UoTool::print_multis(), Pol::UoTool::print_statics(), Pol::UoTool::print_verdata_info(), Pol::UoTool::print_water_data(), Pol::UoTool::statics_histogram(), Pol::UoTool::verlandtile(), Pol::UoTool::vertile(), Pol::UoTool::water_search(), Pol::UoTool::write_polmap(), and Pol::UoTool::z_histogram().
FILE * Pol::Core::open_uo_file | ( | const std::string & | filename_part | ) |
Definition at line 47 of file uofile00.cpp.
References Pol::Plib::SystemState::config, ERROR_PRINT, Pol::Plib::systemstate, and Pol::Core::PolConfig::uo_datafile_root.
Referenced by Pol::UoTool::checkmultis(), Pol::UoConvert::create_multis_cfg(), open_map_file(), and open_uo_data_files().
bool Pol::Core::open_uopmap_file | ( | const int | mapid | ) |
Definition at line 34 of file uofile00.cpp.
References Pol::Clib::binary(), Pol::Plib::SystemState::config, Pol::Clib::FileExists(), INFO_PRINT, Pol::Plib::systemstate, Pol::Core::PolConfig::uo_datafile_root, and uopmapfile.
Referenced by open_uo_data_files().
Clib::StreamWriter & Pol::Core::operator<< | ( | Clib::StreamWriter & | writer, |
const UObject & | obj | ||
) |
Definition at line 353 of file uobject.cpp.
References Pol::Core::UObject::printOn().
void Pol::Core::optimize_zones | ( | ) |
Definition at line 388 of file uworld.cpp.
References gamestate, and Pol::Core::GameState::Realms.
std::ofstream Pol::Core::orphans_txt | ( | "orphans.txt" | , |
std::ios::out|std::ios::trunc | |||
) |
Referenced by display_orphan().
void Pol::Core::party_cmd_handler | ( | Network::Client * | client, |
PKTBI_BF * | msg | ||
) |
Definition at line 956 of file party.cpp.
References handle_accept_invite(), handle_add(), handle_decline_invite(), handle_loot_perm(), handle_member_msg(), handle_party_msg(), handle_remove(), handle_unknown_packet(), Pol::Core::PKTBI_BF_06::partycmd, Pol::Core::PKTBI_BF_06::PARTYCMD_ACCEPT_INVITE, Pol::Core::PKTBI_BF_06::PARTYCMD_ADD, Pol::Core::PKTBI_BF_06::PARTYCMD_DECLINE_INVITE, Pol::Core::PKTBI_BF_06::PARTYCMD_LOOT_PERMISSION, Pol::Core::PKTBI_BF_06::PARTYCMD_MEMBER_MSG, Pol::Core::PKTBI_BF_06::PARTYCMD_PARTY_MSG, Pol::Core::PKTBI_BF_06::PARTYCMD_REMOVE, and Pol::Core::PKTBI_BF::partydata.
Referenced by handle_msg_BF().
void Pol::Core::pause_pol_clocks | ( | ) |
Definition at line 121 of file polclock.cpp.
References pause_polclock(), and pause_poltime().
Referenced by Pol::Core::PolClockPauser::PolClockPauser(), and Pol::xmain_inner().
void Pol::Core::pause_polclock | ( | ) |
Definition at line 60 of file polclock.cpp.
References getCurrentPolClockSeconds(), Pol::Core::StateManager::polclock_paused_at, and stateManager.
Referenced by pause_pol_clocks().
void Pol::Core::pause_poltime | ( | ) |
Definition at line 92 of file polclock.cpp.
References poltime_paused_at().
Referenced by pause_pol_clocks().
bool Pol::Core::place_item | ( | Network::Client * | client, |
Items::Item * | item, | ||
u32 | target_serial, | ||
u16 | x, | ||
u16 | y, | ||
u8 | slotIndex | ||
) |
Definition at line 291 of file dropitem.cpp.
References add_item_to_stack(), Pol::Mobile::Character::can_moveanydist(), Pol::Network::Client::chr, CLASS_CONTAINER, CLASS_ITEM, Pol::Items::Item::container, find_legal_item(), Pol::Realms::Realm::has_los(), Pol::Mobile::Character::is_trading(), Pol::Core::ULWObject::isa(), MOVE_ITEM_FAILURE_OUT_OF_SIGHT, MOVE_ITEM_FAILURE_TOO_FAR_AWAY, MOVE_ITEM_FAILURE_UNKNOWN, Pol::Items::Item::no_drop(), Pol::Core::UContainer::no_drop_exception(), place_item_in_container(), place_item_in_secure_trade_container(), pol_distance(), Pol::Core::ULWObject::realm, send_item_move_failure(), Pol::Core::ULWObject::serial, Pol::Items::Item::toplevel_owner(), and Pol::Mobile::Character::trade_container().
Referenced by drop_item(), and drop_item_v2().
bool Pol::Core::place_item_in_container | ( | Network::Client * | client, |
Items::Item * | item, | ||
UContainer * | cont, | ||
u16 | x, | ||
u16 | y, | ||
u8 | slotIndex | ||
) |
Definition at line 72 of file dropitem.cpp.
References Pol::Core::UContainer::add(), Pol::Core::UContainer::can_add(), Pol::Core::UContainer::can_add_to_slot(), Pol::Core::UContainer::can_insert_add_item(), Pol::Network::Client::chr, do_place_item_in_secure_trade_container(), is_a_parent(), MOVE_ITEM_FAILURE_UNKNOWN, Pol::Core::UContainer::MT_PLAYER, Pol::Core::UContainer::on_insert_add_item(), Pol::Core::ULWObject::orphan(), Pol::Network::Client::pause(), Pol::Network::Client::restart(), Pol::Items::Item::restart_decay_timer(), send_item_move_failure(), send_put_in_container_to_inrange(), send_remove_object_to_inrange(), send_sysmessage(), Pol::Core::ULWObject::serial, Pol::Core::UObject::set_dirty(), Pol::Items::Item::slot_index(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by drop_item_on_object(), and place_item().
bool Pol::Core::place_item_in_secure_trade_container | ( | Network::Client * | client, |
Items::Item * | item, | ||
u16 | x, | ||
u16 | y | ||
) |
Definition at line 136 of file dropitem.cpp.
References Pol::Core::ExportedFunction::call(), Pol::Core::UContainer::can_add(), Pol::Core::UContainer::can_insert_add_item(), Pol::Core::SystemHooks::can_trade, Pol::Network::Client::chr, Pol::Mobile::Character::client, do_place_item_in_secure_trade_container(), gamestate, MOVE_ITEM_FAILURE_UNKNOWN, Pol::Core::UContainer::MT_PLAYER, send_item_move_failure(), send_sysmessage(), Pol::Core::GameState::system_hooks, Pol::Mobile::Character::trade_container(), and Pol::Mobile::Character::trading_with.
Referenced by do_open_trade_window(), Pol::Module::UOExecutorModule::mf_MoveItemToSecureTradeWin(), and place_item().
Bscript::BObjectImp * Pol::Core::place_item_in_secure_trade_container | ( | Network::Client * | client, |
Items::Item * | item | ||
) |
Definition at line 174 of file dropitem.cpp.
References Pol::Core::ExportedFunction::call(), Pol::Core::UContainer::can_add(), Pol::Core::UContainer::can_insert_add_item(), Pol::Core::SystemHooks::can_trade, Pol::Network::Client::chr, Pol::Mobile::Character::client, do_place_item_in_secure_trade_container(), gamestate, MOVE_ITEM_FAILURE_UNKNOWN, Pol::Core::UContainer::MT_CORE_MOVED, Pol::Clib::random_int(), send_item_move_failure(), Pol::Core::GameState::system_hooks, Pol::Mobile::Character::trade_container(), and Pol::Mobile::Character::trading_with.
void Pol::Core::play_lightning_bolt_effect | ( | const UObject * | center | ) |
Definition at line 1070 of file ufunc.cpp.
References Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Network::GraphicEffectPkt::lightningBold(), Pol::Network::GraphicEffectPkt::Send(), and Pol::Core::UObject::toplevel_owner().
Referenced by Pol::Module::UOExecutorModule::mf_PlayLightningBoltEffect().
void Pol::Core::play_moving_effect | ( | const UObject * | src, |
const UObject * | dst, | ||
u16 | effect, | ||
u8 | speed, | ||
u8 | loop, | ||
u8 | explode | ||
) |
Definition at line 1039 of file ufunc.cpp.
References inrange(), Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Network::GraphicEffectPkt::movingEffect(), Pol::Network::GraphicEffectPkt::Send(), and Pol::Core::UObject::toplevel_owner().
Referenced by Pol::Mobile::Character::do_attack_effects(), and Pol::Module::UOExecutorModule::mf_PlayMovingEffect().
void Pol::Core::play_moving_effect2 | ( | u16 | xs, |
u16 | ys, | ||
s8 | zs, | ||
u16 | xd, | ||
u16 | yd, | ||
s8 | zd, | ||
u16 | effect, | ||
u8 | speed, | ||
u8 | loop, | ||
u8 | explode, | ||
Realms::Realm * | realm | ||
) |
Definition at line 1054 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InRange(), inrange(), Pol::Network::GraphicEffectPkt::movingEffect(), RANGE_VISUAL, and Pol::Network::GraphicEffectPkt::Send().
Referenced by Pol::Module::UOExecutorModule::mf_PlayMovingEffectXyz().
void Pol::Core::play_moving_effect2_ex | ( | u16 | xs, |
u16 | ys, | ||
s8 | zs, | ||
u16 | xd, | ||
u16 | yd, | ||
s8 | zd, | ||
Realms::Realm * | realm, | ||
u16 | effect, | ||
u8 | speed, | ||
u8 | duration, | ||
u32 | hue, | ||
u32 | render, | ||
u8 | direction, | ||
u8 | explode, | ||
u16 | effect3d, | ||
u16 | effect3dexplode, | ||
u16 | effect3dsound | ||
) |
Definition at line 1129 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InRange(), inrange(), Pol::Network::GraphicEffectExPkt::movingEffect(), RANGE_VISUAL, and Pol::Network::GraphicEffectExPkt::Send().
Referenced by Pol::Module::UOExecutorModule::mf_PlayMovingEffectXyz_Ex().
void Pol::Core::play_moving_effect_ex | ( | const UObject * | src, |
const UObject * | dst, | ||
u16 | effect, | ||
u8 | speed, | ||
u8 | duration, | ||
u32 | hue, | ||
u32 | render, | ||
u8 | direction, | ||
u8 | explode, | ||
u16 | effect3d, | ||
u16 | effect3dexplode, | ||
u16 | effect3dsound | ||
) |
Definition at line 1113 of file ufunc.cpp.
References Pol::Mobile::Character::client, inrange(), Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Network::GraphicEffectExPkt::movingEffect(), and Pol::Network::GraphicEffectExPkt::Send().
Referenced by Pol::Module::UOExecutorModule::mf_PlayMovingEffect_Ex().
void Pol::Core::play_object_centered_effect | ( | const UObject * | center, |
u16 | effect, | ||
u8 | speed, | ||
u8 | loop | ||
) |
Definition at line 1078 of file ufunc.cpp.
References Pol::Network::GraphicEffectPkt::followEffect(), Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Network::GraphicEffectPkt::Send(), and Pol::Core::UObject::toplevel_owner().
Referenced by Pol::Module::UOExecutorModule::mf_PlayObjectCenteredEffect().
void Pol::Core::play_object_centered_effect_ex | ( | const UObject * | center, |
u16 | effect, | ||
u8 | speed, | ||
u8 | duration, | ||
u32 | hue, | ||
u32 | render, | ||
u8 | layer, | ||
u16 | effect3d | ||
) |
Definition at line 1104 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Network::GraphicEffectExPkt::followEffect(), Pol::Core::WorldIterator< Filter >::InVisualRange(), and Pol::Network::GraphicEffectExPkt::Send().
Referenced by Pol::Module::UOExecutorModule::mf_PlayObjectCenteredEffect_Ex().
Definition at line 1015 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InVisualRange(), PKTOUT_54_FLAG_SINGLEPLAY, Pol::Network::PlaySoundPkt::Send(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Mobile::Character::do_attack_effects(), Pol::Mobile::Character::do_hit_failure_effects(), Pol::Mobile::Character::do_hit_success_effects(), Pol::Mobile::Character::do_imhit_effects(), and Pol::Module::UOExecutorModule::mf_PlaySoundEffect().
void Pol::Core::play_sound_effect_private | ( | const UObject * | center, |
u16 | effect, | ||
Character * | forchr | ||
) |
Definition at line 1030 of file ufunc.cpp.
References Pol::Mobile::Character::client, PKTOUT_54_FLAG_SINGLEPLAY, Pol::Network::PlaySoundPkt::Send(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Module::UOExecutorModule::mf_PlaySoundEffectPrivate().
void Pol::Core::play_sound_effect_xyz | ( | u16 | cx, |
u16 | cy, | ||
s8 | cz, | ||
u16 | effect, | ||
Realms::Realm * | realm | ||
) |
Definition at line 1023 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InRange(), PKTOUT_54_FLAG_SINGLEPLAY, RANGE_VISUAL, and Pol::Network::PlaySoundPkt::Send().
Referenced by Pol::Module::UOExecutorModule::mf_PlaySoundEffectXYZ().
void Pol::Core::play_stationary_effect | ( | u16 | x, |
u16 | y, | ||
s8 | z, | ||
u16 | effect, | ||
u8 | speed, | ||
u8 | loop, | ||
u8 | explode, | ||
Realms::Realm * | realm | ||
) |
Definition at line 1086 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InRange(), RANGE_VISUAL, Pol::Network::GraphicEffectPkt::Send(), and Pol::Network::GraphicEffectPkt::stationaryEffect().
Referenced by Pol::Module::UOExecutorModule::mf_PlayStationaryEffect().
void Pol::Core::play_stationary_effect_ex | ( | u16 | x, |
u16 | y, | ||
s8 | z, | ||
Realms::Realm * | realm, | ||
u16 | effect, | ||
u8 | speed, | ||
u8 | duration, | ||
u32 | hue, | ||
u32 | render, | ||
u16 | effect3d | ||
) |
Definition at line 1095 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InRange(), RANGE_VISUAL, Pol::Network::GraphicEffectExPkt::Send(), and Pol::Network::GraphicEffectExPkt::stationaryEffect().
Referenced by Pol::Module::UOExecutorModule::mf_PlayStationaryEffect_Ex().
unsigned short Pol::Core::pol_distance | ( | unsigned short | x1, |
unsigned short | y1, | ||
unsigned short | x2, | ||
unsigned short | y2 | ||
) |
Definition at line 481 of file ufunc.cpp.
Referenced by Pol::Mobile::NPC::anchor_allows_move(), Pol::Mobile::Character::can_access(), doubleclick(), drop_item_on_mobile(), drop_item_on_object(), get_item(), handle_allnames(), Pol::Mobile::handle_attack(), handle_walk(), Pol::Items::UWeapon::in_range(), Pol::Mobile::NPC::inform_enteredarea(), Pol::Mobile::NPC::inform_leftarea(), Pol::Module::UOExecutorModule::mf_CoordinateDistance(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Realms::Realm::notify_moved(), place_item(), Pol::Core::Party::send_stat_to(), and srequest().
unsigned short Pol::Core::pol_distance | ( | const Mobile::Character * | c1, |
const UObject * | obj | ||
) |
Definition at line 492 of file ufunc.cpp.
References Pol::Core::UObject::toplevel_owner(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
void Pol::Core::pol_sleep_ms | ( | unsigned int | millis | ) |
Definition at line 46 of file polclock.cpp.
Referenced by client_io_thread(), console_thread(), decay_single_thread(), decay_thread(), decay_thread_shadow(), threadstatus_thread(), and Pol::xmain_inner().
polclock_t Pol::Core::polclock | ( | ) |
Definition at line 72 of file polclock.cpp.
References polclock_base(), and POLCLOCK_DIV.
Referenced by check_blocked(), check_scheduled_tasks(), client_io_thread(), combined_thread(), Pol::Mobile::Character::commit_to_reportables(), earliest_timer(), Pol::Mobile::Character::GetAggressorTo(), Pol::Module::GetCoreVariable(), Pol::Mobile::Character::GetLawFullyDamaged(), Pol::Mobile::Character::is_temporally_criminal(), Pol::Mobile::Character::make_aggressor_to(), Pol::Mobile::Character::make_criminal(), Pol::Mobile::Character::make_lawfullydamaged_to(), Pol::Mobile::Character::make_murderer(), Pol::Mobile::Character::manual_set_swing_timer(), Pol::Module::OSExecutorModule::mf_performance_diff(), Pol::Module::PolSystemExecutorModule::mf_ReadMillisecondClock(), Pol::Core::RepSystem::on_pc_attacks_pc(), Pol::Core::RepSystem::on_pc_damages_pc(), polclock_checkin(), Pol::Core::PolTimer::printOn(), Pol::Core::RepSystem::repsys_task(), Pol::Mobile::Character::reset_swing_timer(), Pol::Mobile::Character::restart_criminal_timer(), Pol::Mobile::Character::schedule_spell(), scripts_thread(), Pol::Mobile::Character::set_party_invite_timeout(), Pol::Module::OSExecutorModule::SleepFor(), Pol::Module::OSExecutorModule::SleepForMs(), Pol::Core::PeriodicTask::start(), tasks_thread(), threadstatus_thread(), timeoutstr(), and Pol::Module::OSExecutorModule::wait_for_event().
|
static |
Referenced by polclock(), restart_polclock(), and start_polclock().
void Pol::Core::polclock_checkin | ( | ) |
Definition at line 520 of file pol.cpp.
References Pol::Core::StateManager::checkin_clock_times_out_at, polclock(), POLCLOCKS_PER_SEC, and stateManager.
Referenced by decay_single_thread(), decay_thread(), decay_thread_shadow(), reap_thread(), scripts_thread(), tasks_thread(), Pol::xmain_inner(), and Pol::Core::PolClockPauser::~PolClockPauser().
void Pol::Core::polsem_lock | ( | ) |
Definition at line 45 of file polsem.cpp.
References locker, passert_always, POLLOG, polsem, and Pol::threadhelp::thread_pid().
Referenced by Pol::Core::PolLock2::lock(), Pol::Core::PolLock::PolLock(), and Pol::Core::PolLock2::PolLock2().
void Pol::Core::polsem_unlock | ( | ) |
Definition at line 57 of file polsem.cpp.
References deinit_ipc_vars(), init_ipc_vars(), passert_always, POLLOG, polsem, send_ClientTransmit_pulse(), send_pulse(), tasks_thread_sleep(), Pol::threadhelp::thread_pid(), TRACEBUF_ADDELEM, wait_for_ClientTransmit_pulse(), wait_for_pulse(), and wake_tasks_thread().
Referenced by Pol::Core::PolLock2::unlock(), Pol::Core::PolLock::~PolLock(), and Pol::Core::PolLock2::~PolLock2().
|
inline |
Definition at line 55 of file polclock.h.
Referenced by Pol::Module::PolSystemExecutorModule::mf_ReadMillisecondClock(), scripts_thread(), and tasks_thread().
time_t Pol::Core::poltime | ( | ) |
Definition at line 102 of file polclock.cpp.
References poltime_base().
Referenced by CanUseSkill(), Pol::Mobile::Character::disable_regeneration_for(), earliest_timer(), read_gameclock(), regen_resources(), regen_stats(), Pol::Mobile::Character::script_method_id(), start_gameclock(), Pol::Module::OSExecutorModule::start_skill_script(), StartSkillScript(), and Pol::Core::UOExecutor::~UOExecutor().
|
static |
Referenced by poltime(), restart_poltime(), and start_poltime().
|
static |
Referenced by pause_poltime(), and restart_poltime().
void Pol::Core::PrintAllocationData | ( | ) |
Definition at line 26 of file allocd.cpp.
References INFO_PRINT, last_blocks_free, and last_blocks_used.
Referenced by textcmd_heapcheck().
bool Pol::Core::private_say_above | ( | Character * | chr, |
const UObject * | obj, | ||
const char * | text, | ||
unsigned short | font, | ||
unsigned short | color, | ||
unsigned int | journal_print | ||
) |
Definition at line 1328 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::UObject::description(), Pol::Core::ULWObject::graphic, JOURNAL_PRINT_NAME, JOURNAL_PRINT_YOU_SEE, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, SPEECH_MAX_LEN, and TEXTTYPE_NORMAL.
Referenced by Pol::Core::UDoor::builtin_on_use(), Pol::Mobile::Character::can_face(), CanUseSkill(), do_cast(), doubleclick(), Pol::Mobile::handle_attack(), Pol::Core::TargetCursor::handle_target_cursor(), Pol::Module::UOExecutorModule::mf_PrivateTextAbove(), Pol::Module::UnicodeExecutorModule::mf_PrivateTextAboveUC(), Pol::Mobile::Character::move(), and Pol::Core::USpell::speak_power_words().
bool Pol::Core::private_say_above | ( | Character * | chr, |
const UObject * | obj, | ||
const u16 * | wtext, | ||
const char | lang[4], | ||
unsigned short | font, | ||
unsigned short | color, | ||
unsigned int | journal_print | ||
) |
Definition at line 1362 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::UObject::description(), Pol::Core::ULWObject::graphic, JOURNAL_PRINT_NAME, JOURNAL_PRINT_YOU_SEE, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, SPEECH_MAX_LEN, and TEXTTYPE_NORMAL.
void Pol::Core::private_say_above_cl | ( | Mobile::Character * | chr, |
const UObject * | obj, | ||
unsigned int | cliloc_num, | ||
const u16 * | arguments, | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 94 of file clfunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::UObject::description(), Pol::Core::ULWObject::graphic, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, and SPEECH_MAX_LEN.
Referenced by Pol::Module::ClilocExecutorModule::mf_PrintTextAbovePrivateCL().
void Pol::Core::private_say_above_cl_affix | ( | Mobile::Character * | chr, |
const UObject * | obj, | ||
unsigned int | cliloc_num, | ||
const char * | affix, | ||
bool | prepend, | ||
const u16 * | arguments, | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 207 of file clfunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::UObject::description(), Pol::Core::ULWObject::graphic, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, and SPEECH_MAX_LEN.
bool Pol::Core::private_say_above_ex | ( | Mobile::Character * | chr, |
const UObject * | obj, | ||
const char * | text, | ||
unsigned short | color | ||
) |
Definition at line 1400 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::UObject::description(), Pol::Core::ULWObject::graphic, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, SPEECH_MAX_LEN, and TEXTTYPE_NORMAL.
Referenced by Pol::Core::RepSystem::on_pc_attacks_pc(), and Pol::Core::RepSystem::schedule_repsys_task().
bool Pol::Core::process_command | ( | Network::Client * | client, |
const char * | text, | ||
const u16 * | wtext, | ||
const char * | lang | ||
) |
Definition at line 675 of file textcmd.cpp.
References Pol::Network::Client::chr, Pol::Mobile::Character::cmdlevel(), Pol::Core::GameState::cmdlevels, gamestate, Pol::Core::GameState::paramtextcmds, register_command(), start_textcmd_script(), textcmd_constat(), textcmd_flag1(), textcmd_flag2(), textcmd_heapcheck(), textcmd_ident(), textcmd_integ_chr(), textcmd_integ_item(), textcmd_list_crit_scripts(), textcmd_list_scripts(), textcmd_listarmor(), textcmd_log_profile(), textcmd_log_profile_clear(), textcmd_orphans(), textcmd_procs(), textcmd_repdata(), textcmd_resendchars(), textcmd_shutdown(), textcmd_singlezone_integ_item(), textcmd_startlog(), textcmd_stoplog(), textcmd_threads(), and Pol::Core::GameState::textcmds.
Referenced by handle_processed_speech(), and SendUnicodeSpeech().
bool Pol::Core::process_data | ( | Network::Client * | client | ) |
Definition at line 392 of file clientthread.cpp.
References Pol::Network::Client::_fpLog_lock, Pol::Network::Client::acct, Pol::Network::AddressToString(), Pol::Network::Client::bufcheck1_AA, Pol::Network::Client::bufcheck2_55, Pol::Network::Client::buffer, Pol::Network::IOStats::Packet::bytes, Pol::Network::Client::bytes_received, CLIENT_CHECKPOINT, Pol::Network::CLIENTTYPE_UOKR, Pol::Network::IOStats::Packet::count, Pol::Network::Client::cryptengine, Pol::Clib::fdump(), Pol::Network::PacketRegistry::find_handler(), FLEXLOG, Pol::Network::Client::forceDisconnect(), Pol::Network::Client::fpLog, Pol::Network::MSG_HANDLER::func, Pol::Network::PacketRegistry::handle_msg(), handle_undefined_packet(), INFO_PRINT, INFO_PRINT_TRACE, Pol::Crypt::CCryptBase::Init(), Pol::Network::Client::instance_, Pol::Core::NetworkManager::iostats, Pol::Network::Client::ipaddr, Pol::Network::PacketRegistry::is_defined(), Pol::Network::Client::isConnected(), Pol::Network::Client::last_msgtype, Pol::Network::Client::message_length, Pol::Network::MSG_HANDLER::msglen, MSGLEN_2BYTELEN_DATA, Pol::Core::MessageTypeFilter::msgtype_allowed, Pol::Network::Client::msgtype_filter, Pol::Accounts::Account::name(), networkManager, passert, PKTIN_02_ID, PKTIN_EF_ID, POLLOG, POLLOG_ERROR, Pol::Network::IOStats::received, Pol::Network::Client::recv_remaining(), Pol::Network::Client::recv_remaining_nocrypt(), Pol::Network::Client::recv_state, Pol::Network::Client::RECV_STATE_CLIENTVERSION_WAIT, Pol::Network::Client::RECV_STATE_CRYPTSEED_WAIT, Pol::Network::Client::RECV_STATE_MSGDATA_WAIT, Pol::Network::Client::RECV_STATE_MSGLEN_WAIT, Pol::Network::Client::RECV_STATE_MSGTYPE_WAIT, restart_all_clients(), Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Network::Client::setClientType(), settingsManager, Pol::Core::ServSpecOpt::speedhack_prevention, Pol::Network::Client::SpeedHackPrevention(), Pol::Core::SettingsManager::ssopt, Pol::Plib::systemstate, Pol::Crypt::CCryptBase::typeAuto, Pol::Crypt::CCryptBase::typeLogin, and valid_message_length().
Referenced by check_incoming_data(), and client_io_thread().
void Pol::Core::process_package_cmds_cfg | ( | Plib::Package * | pkg | ) |
Definition at line 164 of file cmdlevel.cpp.
References Pol::Core::CmdLevel::add_searchdir_front(), Pol::Core::CmdLevel::cmdlevel, Pol::Plib::Package::dir(), find_cmdlevel(), Pol::Plib::GetPackageCfgPath(), Pol::Clib::mklower(), Pol::Clib::normalized_dir_form(), Pol::Clib::ConfigFile::read(), Pol::Clib::ConfigElem::remove_prop(), Pol::Clib::ConfigElemBase::rest(), and Pol::Clib::ConfigElem::throw_error().
Referenced by load_package_cmdlevels().
bool Pol::Core::process_tildecommand | ( | Network::Client * | client, |
const char * | textbuf | ||
) |
Definition at line 38 of file tildecmd.cpp.
References INFO_PRINT_TRACE, and invoke().
Referenced by handle_processed_speech(), and SendUnicodeSpeech().
bool Pol::Core::process_tildecommand | ( | Network::Client * | client, |
const u16 * | wtextbuf | ||
) |
Definition at line 50 of file tildecmd.cpp.
References cfBEu16, ctBEu16, INFO_PRINT, invoke(), and Pol::Plib::systemstate.
unsigned short Pol::Core::raw_to_base | ( | unsigned int | raw | ) |
Definition at line 45 of file skilladv.cpp.
Referenced by base_to_raw(), Pol::Module::AttributeExecutorModule::mf_RawSkillToBase(), Pol::Mobile::Character::readAttributesAndVitals(), and Pol::Testing::skilladv_test().
void Pol::Core::rawmapfullread | ( | ) |
Definition at line 50 of file uofile08.cpp.
References Pol::Plib::RawMap::load_full_map(), mapdif_file, mapfile, Pol::Plib::RawMap::set_bounds(), uo_map_height, uo_map_width, uo_mapid, and uopmapfile.
Referenced by Pol::UoConvert::create_map(), rawmapinfo(), and Pol::UoConvert::update_map().
|
static |
Definition at line 41 of file uofile08.cpp.
References Pol::Plib::RawMap::rawinfo(), and rawmapfullread().
Referenced by getmapinfo(), groundheight(), and safe_getmapinfo().
void Pol::Core::rawstaticfullread | ( | ) |
Definition at line 85 of file uofile02.cpp.
References Pol::Core::USTRUCT_STATIC_BUFFER::count, INFO_PRINT, Pol::Core::USTRUCT_IDX::length, Pol::Core::USTRUCT_IDX::offset, passert_always_r, sidxfile, srec_count, stadif_file, stadifi_file, statfile, Pol::Core::USTRUCT_STATIC_BUFFER::statics, Pol::Clib::tostring(), uo_map_height, and uo_map_width.
Referenced by Pol::UoConvert::create_map(), readstaticblock(), and Pol::UoConvert::update_map().
void Pol::Core::read_character | ( | Clib::ConfigElem & | elem | ) |
Definition at line 84 of file uimport.cpp.
References Pol::Core::ObjectStorageManager::current_incremental_save, Pol::Clib::ConfigElem::get_prop(), get_save_index(), Pol::Core::ObjectHash::Insert(), Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Realms::PlayerLoad, and Pol::Clib::ConfigElem::remove_ushort().
Referenced by slurp().
int Pol::Core::read_data | ( | ) |
Definition at line 609 of file uimport.cpp.
References Pol::Mobile::Character::acct, Pol::Core::ObjectHash::begin(), clear_save_index(), Pol::Plib::SystemState::config, Pol::Core::ObjectHash::end(), ERROR_PRINT, Pol::Clib::FileExists(), GetCurrentCharSerialNumber(), GetCurrentItemSerialNumber(), Pol::Core::StateManager::gflag_in_system_load, import_new_data(), insert_deferred_items(), Pol::Core::ULWObject::ismobile(), load_incremental_indexes(), Pol::Mobile::Character::logged_in(), Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Module::read_datastore_dat(), read_guilds_dat(), read_incremental_saves(), read_items_dat(), read_multis_dat(), read_npcequip_dat(), read_npcs_dat(), read_objects_dat(), read_party_dat(), read_pcequip_dat(), read_pcs_dat(), read_pol_dat(), read_resources_dat(), read_storage_dat(), register_deleted_serials(), rename_dat_files(), SetCurrentCharSerialNumber(), SetCurrentItemSerialNumber(), start_gameclock(), stateManager, Pol::Core::StateManager::stored_last_char_serial, Pol::Core::StateManager::stored_last_item_serial, Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by Pol::xmain_inner().
void Pol::Core::read_extobj | ( | ) |
Definition at line 22 of file extobj.cpp.
References Pol::Core::SettingsManager::extobj, Pol::Clib::FileExists(), Pol::Core::ExternalObject::hold, Pol::Core::ExternalObject::hull, Pol::Core::ExternalObject::mount, Pol::Clib::ConfigFile::open(), Pol::Core::ExternalObject::port_plank, Pol::Clib::ConfigFile::readraw(), Pol::Clib::ConfigElem::remove_unsigned(), Pol::Core::ExternalObject::rope, Pol::Core::ExternalObject::rudder, Pol::Core::ExternalObject::sails, Pol::Core::ExternalObject::secure_trade_container, settingsManager, Pol::Core::ExternalObject::shield, Pol::Core::ExternalObject::starboard_plank, Pol::Core::ExternalObject::storage, Pol::Core::ExternalObject::tiller, Pol::Core::ExternalObject::tillerman, Pol::Core::ExternalObject::weaponslot, Pol::Core::ExternalObject::wheel, Pol::Core::ExternalObject::wornitems_container, and Pol::Core::ExternalObject::wrestling.
Referenced by Pol::xmain_inner().
gameclock_t Pol::Core::read_gameclock | ( | ) |
Reads the current value of the game clock.
Definition at line 57 of file gameclck.cpp.
References gameclock, last_read, and poltime().
Referenced by Pol::Items::Item::add_to_self(), Pol::Mobile::Character::addBuff(), Pol::Mobile::Character::check_light_region_change(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Items::Item::create(), createchar2(), Pol::Mobile::Character::deafened(), decay_worldzone(), doubleclick(), handle_mode_set(), Pol::Items::Item::Item(), Pol::Module::ItemGivenEvent::ItemGivenEvent(), Pol::Module::UOExecutorModule::mf_ReadGameClock(), regen_stats(), Pol::Items::Item::restart_decay_timer(), Pol::Mobile::Character::script_method_id(), Pol::Mobile::Character::send_buffs(), Pol::Items::Item::set_decay_after(), SetRegionLightLevel(), Pol::Mobile::Character::squelched(), and update_gameclock().
void Pol::Core::read_gameservers | ( | ) |
Definition at line 1298 of file uimport.cpp.
References ERROR_PRINT, INFO_PRINT, Pol::Core::NetworkManager::ipaddr_str, Pol::Core::NetworkManager::lanaddr_str, networkManager, POLLOG_ERROR, Pol::Clib::ConfigFile::read(), Pol::Clib::ConfigElem::remove_prop(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_ushort(), Pol::Core::NetworkManager::servers, and Pol::Clib::ConfigElemBase::type_is().
Referenced by Pol::xmain_inner().
void Pol::Core::read_global_data | ( | Clib::ConfigElem & | elem | ) |
Definition at line 376 of file resource.cpp.
References ERROR_PRINT, find_resource_def(), Pol::Core::ResourceDef::read_data(), and Pol::Clib::ConfigElemBase::rest().
Referenced by read_resources_dat().
void Pol::Core::read_global_item | ( | Clib::ConfigElem & | elem, |
int | |||
) |
Definition at line 215 of file uimport.cpp.
References add_item_to_world(), add_loaded_item(), Pol::Core::ObjectStorageManager::current_incremental_save, defer_item_insertion(), equip_loaded_item(), Pol::Clib::ConfigElem::get_prop(), get_save_index(), Pol::Core::ULWObject::isa(), IsCharacter(), objStorageManager, read_item(), Pol::Clib::ConfigElem::remove_prop(), Pol::Core::ULWObject::serial, system_find_item(), system_find_mobile(), and Pol::Clib::ConfigElem::warn_with_line().
Referenced by slurp().
void Pol::Core::read_guilds_dat | ( | ) |
Definition at line 197 of file guilds.cpp.
References Pol::Plib::SystemState::config, Pol::Clib::CST_NORMAL, Pol::Clib::CST_UNIQUE, Pol::Clib::FileExists(), gamestate, Pol::Core::Guild::Guild(), Pol::Core::Guild::guildid(), Pol::Core::GameState::guilds, Pol::Clib::ConfigSection::matches(), Pol::Core::GameState::nextguildid, Pol::Clib::ConfigFile::read(), register_guilds(), Pol::Clib::ConfigElem::remove_ulong(), Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by read_data().
void Pol::Core::read_incremental_saves | ( | ) |
Definition at line 79 of file loaddata.cpp.
References Pol::Plib::SystemState::config, Pol::Core::ObjectStorageManager::current_incremental_save, Pol::Clib::decint(), Pol::Core::ObjectStorageManager::incremental_save_count, objStorageManager, slurp(), Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by read_data().
Items::Item * Pol::Core::read_item | ( | Clib::ConfigElem & | elem | ) |
Definition at line 154 of file uimport.cpp.
References Pol::Items::Item::create(), ERROR_PRINT, find_realm(), gamestate, IsItem(), Pol::Core::GameState::old_objtype_conversions, Pol::Clib::ConfigElem::remove_prop(), system_find_item(), Pol::Plib::systemstate, and Pol::Clib::ConfigElem::warn_with_line().
Referenced by Pol::Core::StorageArea::insert_root_item(), Pol::Core::StorageArea::load_item(), and read_global_item().
void Pol::Core::read_items_dat | ( | ) |
Definition at line 473 of file uimport.cpp.
References slurp(), and Pol::Plib::systemstate.
Referenced by read_data().
void Pol::Core::read_justice_zones | ( | ) |
Definition at line 37 of file guardrgn.cpp.
References gamestate, Pol::Core::GameState::justicedef, and read_region_data().
Referenced by load_data().
|
static |
Definition at line 394 of file uofile01.cpp.
References cfg_use_new_hsa_format, Pol::Core::USTRUCT_LAND_TILE::flags, Pol::Core::USTRUCT_LAND_TILE_HSA::flags, N_LANDTILEDATA, and readlandtile().
Referenced by read_uo_data().
void Pol::Core::read_light_zones | ( | ) |
Definition at line 51 of file miscrgn.cpp.
References gamestate, Pol::Core::GameState::lightdef, and read_region_data().
Referenced by load_data().
void Pol::Core::read_map_difs | ( | ) |
Definition at line 36 of file uofile08.cpp.
References Pol::Plib::RawMap::load_map_difflist(), mapdifl_file, and Pol::Plib::num_map_patches.
Referenced by read_uo_data().
void Pol::Core::read_movecost | ( | Clib::ConfigElem & | elem, |
MovementCost & | movecost | ||
) |
Definition at line 35 of file movecost.cpp.
References Pol::Core::MovementCost::cost, Pol::Clib::decint(), ISTRINGSTREAM, MAX_CARRY_PERC, Pol::Core::MovementCost::over, Pol::Clib::ConfigElem::remove_double(), Pol::Clib::ConfigElem::remove_first_prop(), and Pol::Clib::ConfigElem::throw_error().
Referenced by load_movecost().
void Pol::Core::read_multi | ( | Clib::ConfigElem & | elem | ) |
Definition at line 317 of file uimport.cpp.
References add_multi_to_world(), Pol::Multi::UMulti::create(), Pol::Core::ObjectStorageManager::current_incremental_save, ERROR_PRINT, Pol::Items::find_itemdesc(), gamestate, Pol::Clib::ConfigElem::get_prop(), get_save_index(), objStorageManager, Pol::Core::GameState::old_objtype_conversions, Pol::Clib::ConfigElem::remove_prop(), system_find_item(), and system_find_multi().
Referenced by slurp().
void Pol::Core::read_multis_dat | ( | ) |
Definition at line 478 of file uimport.cpp.
References slurp(), and Pol::Plib::systemstate.
Referenced by read_data().
void Pol::Core::read_music_zones | ( | ) |
Definition at line 45 of file musicrgn.cpp.
References gamestate, Pol::Core::GameState::musicdef, and read_region_data().
Referenced by load_data().
void Pol::Core::read_nocast_zones | ( | ) |
Definition at line 34 of file miscrgn.cpp.
References gamestate, Pol::Core::GameState::nocastdef, and read_region_data().
Referenced by load_data().
void Pol::Core::read_npc | ( | Clib::ConfigElem & | elem | ) |
Definition at line 117 of file uimport.cpp.
References Pol::Core::ObjectStorageManager::current_incremental_save, ref_ptr< T >::get(), Pol::Clib::ConfigElem::get_prop(), get_save_index(), Pol::Core::ObjectHash::Insert(), Pol::Realms::NpcLoad, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Clib::ConfigElem::remove_ushort(), and SetCharacterWorldPosition().
Referenced by slurp().
void Pol::Core::read_npc_templates | ( | ) |
Definition at line 202 of file npctemplates.cpp.
References gamestate, Pol::Core::GameState::npc_template_elems, and Pol::Plib::systemstate.
Referenced by load_data(), and reload_configuration().
void Pol::Core::read_npc_templates | ( | Plib::Package * | pkg | ) |
Definition at line 165 of file npctemplates.cpp.
References Pol::Clib::FileExists(), gamestate, Pol::Plib::GetPackageCfgPath(), Pol::Plib::Package::name(), Pol::Core::GameState::npc_template_elems, Pol::Core::NpcTemplateElem::NpcTemplateElem(), and Pol::Clib::ConfigElemBase::rest().
void Pol::Core::read_npcequip_dat | ( | ) |
Definition at line 467 of file uimport.cpp.
References slurp(), SYSFIND_SKIP_WORLD, and Pol::Plib::systemstate.
Referenced by read_data().
void Pol::Core::read_npcs_dat | ( | ) |
Definition at line 461 of file uimport.cpp.
References slurp(), SYSFIND_SKIP_WORLD, and Pol::Plib::systemstate.
Referenced by read_data().
void Pol::Core::read_objects_dat | ( | ) |
Definition at line 443 of file uimport.cpp.
References slurp(), and Pol::Plib::systemstate.
Referenced by read_data().
void Pol::Core::read_objinfo | ( | u16 | graphic, |
struct USTRUCT_TILE & | objinfo | ||
) |
Definition at line 223 of file uofile01.cpp.
References readtile().
Referenced by Pol::UoConvert::create_tiles_cfg(), Pol::UoTool::flagsearch(), Pol::UoTool::loschange(), Pol::UoTool::print_multidata(), Pol::UoTool::print_multihull(), and Pol::UoTool::vertile().
void Pol::Core::read_objinfo | ( | u16 | graphic, |
struct USTRUCT_TILE_HSA & | objinfo | ||
) |
Definition at line 228 of file uofile01.cpp.
References cfg_use_new_hsa_format, Pol::Core::USTRUCT_TILE::FLAG_HALF_HEIGHT, Pol::Core::TileData::flags, Pol::Core::USTRUCT_TILE::flags, Pol::Core::USTRUCT_TILE_HSA::flags, Pol::Core::TileData::height, Pol::Core::USTRUCT_TILE::height, Pol::Core::USTRUCT_TILE_HSA::height, Pol::Core::TileData::layer, Pol::Core::USTRUCT_TILE::layer, Pol::Core::USTRUCT_TILE_HSA::layer, readtile(), Pol::Plib::systemstate, tile_uoflags(), tileheight(), tilelayer(), tileweight(), Pol::Core::USTRUCT_TILE::weight, and Pol::Core::USTRUCT_TILE_HSA::weight.
void Pol::Core::read_party_dat | ( | ) |
Definition at line 835 of file party.cpp.
References Pol::Plib::SystemState::config, Pol::Clib::CST_NORMAL, Pol::Clib::FileExists(), gamestate, Pol::Core::Party_Cfg::General, INFO_PRINT, Pol::Clib::ConfigSection::matches(), Pol::Core::GameState::parties, Pol::Core::SettingsManager::party_cfg, Pol::Clib::ConfigFile::read(), register_party_members(), Pol::Core::Party_Cfg::RemoveMemberOnLogoff, settingsManager, Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by read_data().
void Pol::Core::read_pcequip_dat | ( | ) |
Definition at line 455 of file uimport.cpp.
References slurp(), SYSFIND_SKIP_WORLD, and Pol::Plib::systemstate.
Referenced by read_data().
void Pol::Core::read_pcs_dat | ( | ) |
Definition at line 449 of file uimport.cpp.
References slurp(), SYSFIND_SKIP_WORLD, and Pol::Plib::systemstate.
Referenced by read_data().
void Pol::Core::read_pol_dat | ( | ) |
Definition at line 423 of file uimport.cpp.
References Pol::Plib::SystemState::config, Pol::Core::PolVar::DataWrittenBy, ERROR_PRINT, Pol::Core::SettingsManager::polvar, settingsManager, slurp(), Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by read_data().
void Pol::Core::read_region_data | ( | RegionGroupBase & | grp, |
const char * | preferred_filename, | ||
const char * | other_filename, | ||
const char * | tags_expected | ||
) |
Definition at line 225 of file region.cpp.
References Pol::Core::RegionGroupBase::create_bgnd_region(), Pol::Clib::FileExists(), Pol::Clib::ConfigFile::read(), and Pol::Core::RegionGroupBase::read_region().
Referenced by Pol::Core::RegionGroup< T >::create_region(), read_justice_zones(), read_light_zones(), read_music_zones(), read_nocast_zones(), read_resources_dat(), and read_weather_zones().
void Pol::Core::read_region_data | ( | Clib::ConfigElem & | elem | ) |
Definition at line 388 of file resource.cpp.
References ERROR_PRINT, find_resource_def(), Pol::Core::RegionGroup< T >::getregion(), Pol::Core::ResourceRegion::read_data(), Pol::Clib::ConfigElem::remove_string(), and Pol::Clib::ConfigElemBase::rest().
void Pol::Core::read_resource_cfg | ( | const char * | resource | ) |
Definition at line 329 of file resource.cpp.
References gamestate, Pol::Core::ResourceDef::ResourceDef(), and Pol::Core::GameState::resourcedefs.
Referenced by load_resource_cfg().
void Pol::Core::read_resources_dat | ( | ) |
Definition at line 408 of file resource.cpp.
References Pol::Plib::SystemState::config, Pol::Clib::FileExists(), Pol::Clib::ConfigFile::read(), read_global_data(), read_region_data(), Pol::Plib::systemstate, Pol::Clib::ConfigElemBase::type_is(), and Pol::Core::PolConfig::world_data_path.
Referenced by read_data().
void Pol::Core::read_shadow_realms | ( | Clib::ConfigElem & | elem | ) |
Definition at line 302 of file uimport.cpp.
References add_realm(), defined_realm(), find_realm(), INFO_PRINT, name, Pol::Clib::ConfigElem::remove_string(), and Pol::Clib::ConfigElem::warn_with_line().
Referenced by slurp().
void Pol::Core::read_stacking_cfg | ( | Clib::ConfigFile & | cf | ) |
Definition at line 24 of file stackcfg.cpp.
References gamestate, Pol::Core::GameState::Global_Ignore_CProps, ISTRINGSTREAM, Pol::Clib::ConfigFile::read(), Pol::Clib::ConfigElem::remove_string(), and Pol::Clib::ConfigElemBase::type_is().
Referenced by load_stacking_cfg().
void Pol::Core::read_starting_locations | ( | ) |
Definition at line 1230 of file uimport.cpp.
References ERROR_PRINT, find_realm(), gamestate, Pol::Clib::ConfigFile::read(), Pol::Clib::ConfigElem::remove_prop(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_unsigned(), Pol::Clib::ConfigElem::remove_ushort(), Pol::Core::GameState::startlocations, and Pol::Clib::ConfigElemBase::type().
Referenced by Pol::xmain_inner().
void Pol::Core::read_static_diffs | ( | ) |
Definition at line 53 of file uofile02.cpp.
References Pol::Plib::num_static_patches, and stadifl_file.
Referenced by read_uo_data().
void Pol::Core::read_storage_dat | ( | ) |
Definition at line 497 of file uimport.cpp.
References Pol::Plib::SystemState::config, Pol::Clib::FileExists(), gamestate, INFO_PRINT, Pol::Core::Storage::read(), Pol::Core::GameState::storage, Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by read_data().
void Pol::Core::read_system_vars | ( | Clib::ConfigElem & | elem | ) |
Definition at line 293 of file uimport.cpp.
References Pol::Core::PolVar::DataWrittenBy, Pol::Core::SettingsManager::polvar, Pol::Clib::ConfigElem::remove_ulong(), Pol::Clib::ConfigElem::remove_ushort(), settingsManager, stateManager, Pol::Core::StateManager::stored_last_char_serial, and Pol::Core::StateManager::stored_last_item_serial.
Referenced by slurp().
|
static |
Definition at line 359 of file uofile01.cpp.
References cfg_use_new_hsa_format, Pol::Plib::SystemState::config, Pol::Core::TileData::flags, Pol::Core::USTRUCT_TILE::flags, Pol::Core::USTRUCT_TILE_HSA::flags, Pol::Core::TileData::height, Pol::Core::USTRUCT_TILE::height, Pol::Core::USTRUCT_TILE_HSA::height, Pol::Core::TileData::layer, Pol::Core::USTRUCT_TILE::layer, Pol::Core::USTRUCT_TILE_HSA::layer, Pol::Core::PolConfig::max_tile_id, readtile(), and Pol::Plib::systemstate.
Referenced by read_uo_data().
void Pol::Core::read_uo_data | ( | void | ) |
Definition at line 414 of file uofile01.cpp.
References read_landtiledata(), read_map_difs(), read_static_diffs(), read_tiledata(), and read_veridx().
Referenced by Pol::UoTool::contour(), Pol::UoTool::defragstatics(), Pol::UoTool::findgraphic(), Pol::UoTool::findlandtile(), Pol::UoTool::findlandtileflags(), Pol::UoTool::flagsearch(), Pol::UoTool::landtileflagsearch(), Pol::UoTool::landtilehist(), Pol::UoTool::loschange(), Pol::UoConvert::UoConvertMain::main(), Pol::UoTool::mapdump(), Pol::UoTool::print_multis(), Pol::UoTool::print_statics(), Pol::UoTool::print_verdata_info(), Pol::UoTool::statics_histogram(), Pol::UoTool::verlandtile(), Pol::UoTool::vertile(), Pol::UoTool::write_polmap(), and Pol::UoTool::z_histogram().
|
static |
Definition at line 336 of file uofile01.cpp.
References Pol::Core::USTRUCT_VERSION::file, Pol::Core::VerdataIndexes::insert(), and verfile.
Referenced by read_uo_data().
void Pol::Core::read_weather_zones | ( | ) |
Definition at line 190 of file miscrgn.cpp.
References Pol::Core::WeatherDef::copy_default_regions(), gamestate, read_region_data(), Pol::Core::WeatherDef::WeatherDef(), and Pol::Core::GameState::weatherdef.
Referenced by load_data().
void Pol::Core::readallstatics | ( | StaticList & | vec, |
unsigned short | x, | ||
unsigned short | y | ||
) |
Definition at line 84 of file uofile07.cpp.
References Pol::Core::USTRUCT_STATIC::graphic, INFO_PRINT, readstaticblock(), Pol::Core::USTRUCT_STATIC::x_offset, Pol::Core::USTRUCT_STATIC::y_offset, and Pol::Core::USTRUCT_STATIC::z.
Referenced by Pol::UoTool::findgraphic(), Pol::UoTool::mapdump(), and Pol::UoTool::print_statics().
void Pol::Core::readlandtile | ( | unsigned short | tilenum, |
Core::USTRUCT_LAND_TILE * | landtile | ||
) |
Definition at line 163 of file uofile01.cpp.
References Pol::Core::USTRUCT_LAND_TILE::name, seekto_newer_version(), tilefile, verfile, and VERFILE_TILEDATA.
Referenced by Pol::UoConvert::create_landtiles_cfg(), Pol::UoTool::landtileflagsearch(), Pol::UoTool::landtilehist(), Pol::UoTool::mapdump(), read_landtiledata(), and Pol::UoTool::verlandtile().
void Pol::Core::readlandtile | ( | unsigned short | tilenum, |
Core::USTRUCT_LAND_TILE_HSA * | landtile | ||
) |
Definition at line 193 of file uofile01.cpp.
References Pol::Core::USTRUCT_LAND_TILE_HSA::name, seekto_newer_version(), tilefile, verfile, and VERFILE_TILEDATA.
void Pol::Core::readstaticblock | ( | std::vector< USTRUCT_STATIC > * | ppst, |
int * | pnum, | ||
unsigned short | x, | ||
unsigned short | y | ||
) |
Definition at line 68 of file uofile02.cpp.
References ERROR_PRINT, rawstaticfullread(), uo_map_height, and uo_map_width.
Referenced by Pol::UoTool::defragstatics(), readallstatics(), readstatics(), Pol::UoTool::statics_histogram(), and write_pol_static_files().
void Pol::Core::readstatics | ( | StaticList & | vec, |
unsigned short | x, | ||
unsigned short | y | ||
) |
Definition at line 20 of file uofile07.cpp.
References Pol::Core::USTRUCT_TILE::FLAG_WALKBLOCK, Pol::Core::USTRUCT_STATIC::graphic, INFO_PRINT, readstaticblock(), tile_uoflags(), Pol::Core::USTRUCT_STATIC::x_offset, Pol::Core::USTRUCT_STATIC::y_offset, and Pol::Core::USTRUCT_STATIC::z.
Referenced by Pol::UoTool::contour(), Pol::UoTool::has_water(), and Pol::UoConvert::ProcessSolidBlock().
void Pol::Core::readstatics | ( | StaticList & | vec, |
unsigned short | x, | ||
unsigned short | y, | ||
unsigned int | flags | ||
) |
Definition at line 52 of file uofile07.cpp.
References Pol::Core::USTRUCT_STATIC::graphic, INFO_PRINT, readstaticblock(), tile_uoflags(), Pol::Core::USTRUCT_STATIC::x_offset, Pol::Core::USTRUCT_STATIC::y_offset, and Pol::Core::USTRUCT_STATIC::z.
void Pol::Core::readstatics2 | ( | StaticList & | vec, |
unsigned short | x, | ||
unsigned short | y | ||
) |
void Pol::Core::readtile | ( | unsigned short | tilenum, |
Core::USTRUCT_TILE * | tile | ||
) |
Definition at line 89 of file uofile01.cpp.
References Pol::Core::USTRUCT_TILE::name, seekto_newer_version(), Pol::Plib::systemstate, TILEDATA_TILES, tilefile, verfile, VERFILE_TILEDATA, and Pol::Core::USTRUCT_TILE::weight.
Referenced by read_objinfo(), read_tiledata(), and Pol::UoConvert::write_multi().
void Pol::Core::readtile | ( | unsigned short | tilenum, |
Core::USTRUCT_TILE_HSA * | tile | ||
) |
Definition at line 127 of file uofile01.cpp.
References Pol::Core::USTRUCT_TILE_HSA::name, seekto_newer_version(), Pol::Plib::systemstate, TILEDATA_TILES_HSA, tilefile, verfile, VERFILE_TILEDATA, and Pol::Core::USTRUCT_TILE_HSA::weight.
void Pol::Core::readwater | ( | ) |
Definition at line 25 of file uofile04.cpp.
References Pol::Core::USTRUCT_STATIC::graphic, idxrec, INFO_PRINT, iswater(), Pol::Core::USTRUCT_IDX::length, Pol::Core::USTRUCT_IDX::offset, sidxfile, statfile, Pol::Core::USTRUCT_STATIC::x_offset, Pol::Core::USTRUCT_STATIC::y_offset, and Pol::Core::USTRUCT_STATIC::z.
Referenced by Pol::UoTool::print_water_data().
void Pol::Core::reap_thread | ( | void | ) |
Definition at line 677 of file pol.cpp.
References Pol::Core::GameState::dynamic_item_descriptors, Pol::Clib::exit_signalled, gamestate, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, polclock_checkin(), Pol::Core::ObjectHash::Reap(), and Pol::threadhelp::thread_sleep_ms().
Referenced by start_threads().
void Pol::Core::regen_resources | ( | ) |
Definition at line 238 of file resource.cpp.
References gamestate, poltime(), Pol::Core::GameState::resourcedefs, and THREAD_CHECKPOINT.
void Pol::Core::regen_stats | ( | ) |
Definition at line 43 of file tasks.cpp.
References Pol::Core::SettingsManager::combat_config, FindVital(), gamestate, Pol::Core::Vital::next, poltime(), read_gameclock(), Pol::Core::GameState::Realms, settingsManager, THREAD_CHECKPOINT, and Pol::Core::CombatConfig::warmode_inhibits_regen.
void Pol::Core::register_command | ( | const char * | cmd, |
TextCmdFunc | f | ||
) |
Definition at line 82 of file textcmd.cpp.
References gamestate, and Pol::Core::GameState::textcmds.
Referenced by process_command().
void Pol::Core::register_command | ( | const char * | cmd, |
ParamTextCmdFunc | f | ||
) |
Definition at line 86 of file textcmd.cpp.
References gamestate, and Pol::Core::GameState::paramtextcmds.
void Pol::Core::register_deleted_serials | ( | ) |
Definition at line 91 of file loaddata.cpp.
References Pol::Core::ObjectStorageManager::incremental_serial_index, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, and Pol::Core::ObjectHash::RegisterCleanDeletedSerial().
Referenced by read_data().
void Pol::Core::register_for_speech_events | ( | UObject * | obj, |
UOExecutor * | uoexec, | ||
int | range, | ||
int | flags | ||
) |
Definition at line 114 of file listenpt.cpp.
References gamestate, Pol::Core::GameState::listen_points, Pol::Core::ListenPoint::ListenPoint(), and Pol::Core::ListenPoint::uoexec.
Referenced by Pol::Module::UOExecutorModule::mf_RegisterForSpeechEvents().
void Pol::Core::register_guilds | ( | ) |
Definition at line 187 of file guilds.cpp.
References gamestate, Pol::Core::GameState::guilds, and Pol::Core::Guild::registerWithMembers().
Referenced by read_guilds_dat().
void Pol::Core::register_party_members | ( | ) |
Definition at line 809 of file party.cpp.
References gamestate, and Pol::Core::GameState::parties.
Referenced by read_party_dat().
void Pol::Core::register_spell | ( | USpell * | spell, |
unsigned short | spellid | ||
) |
Definition at line 395 of file spells.cpp.
References Pol::Plib::Package::dir(), ERROR_PRINT, gamestate, Pol::Plib::Package::name(), Pol::Core::USpell::name(), Pol::Core::USpell::pkg_, and Pol::Core::GameState::spells.
Referenced by load_spells_cfg().
void Pol::Core::register_with_supporting_multi | ( | Item * | item | ) |
Definition at line 1875 of file ufunc.cpp.
References Pol::Items::Item::container, Pol::Realms::Realm::find_supporting_multi(), Pol::Core::ULWObject::realm, Pol::Multi::UMulti::register_object(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Module::_complete_create_item_at_location(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Mobile::Character::die(), get_item(), import(), return_traded_items(), undo_get_item(), and Pol::Module::ItemGivenEvent::~ItemGivenEvent().
void Pol::Core::reload_configuration | ( | ) |
Definition at line 263 of file loadunld.cpp.
References Pol::Core::ConsoleCommand::load_console_commands(), Pol::Module::load_fileaccess_cfg(), load_npc_templates(), Pol::Network::read_bannedips_config(), read_npc_templates(), and Pol::Core::PolConfig::read_pol_config().
Referenced by console_thread(), Pol::Module::PolSystemExecutorModule::mf_ReloadConfiguration(), and threadstatus_thread().
void Pol::Core::remove_item_from_world | ( | Items::Item * | item | ) |
Definition at line 41 of file uworld.cpp.
References cfBEu32, Pol::Items::Item::container, Pol::Realms::Realm::find_supporting_multi(), getzone(), Pol::Core::Zone::items, passert, POLLOG_ERROR, Pol::Core::ULWObject::realm, Pol::Realms::Realm::remove_toplevel_item(), Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, Pol::Multi::UMulti::unregister_object(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by destroy_item(), get_item(), and Pol::Module::true_extricate().
void Pol::Core::remove_multi_from_world | ( | Multi::UMulti * | multi | ) |
Definition at line 76 of file uworld.cpp.
References getzone(), Pol::Core::Zone::multis, passert, Pol::Core::ULWObject::realm, Pol::Realms::Realm::remove_multi(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Multi::destroy_boat(), and Pol::Multi::destroy_house().
void Pol::Core::remove_objects_inrange | ( | Network::Client * | client | ) |
Definition at line 121 of file movement.cpp.
References Pol::Network::Client::chr, Pol::Core::WorldIterator< Filter >::InRange(), Pol::Core::WorldIterator< Filter >::InVisualRange(), RANGE_VISUAL_LARGE_BUILDINGS, Pol::Core::ULWObject::realm, send_remove_character(), send_remove_object(), Pol::Core::UObject::serial_ext, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Module::UOExecutorModule::internal_MoveCharacter().
void Pol::Core::remove_realm | ( | const std::string & | name | ) |
Definition at line 92 of file realms.cpp.
References gamestate, name, Pol::Core::Storage::on_delete_realm(), Pol::Core::GameState::Realms, Pol::Core::GameState::shadowrealms_by_id, and Pol::Core::GameState::storage.
Referenced by Pol::Module::PolSystemExecutorModule::mf_DeleteRealm().
void Pol::Core::rename_dat_files | ( | ) |
void Pol::Core::report_weird_packet | ( | Network::Client * | client, |
const std::string & | why | ||
) |
Definition at line 684 of file clientthread.cpp.
References Pol::Network::Client::acct, Pol::Network::Client::buffer, Pol::Network::Client::bytes_received, Pol::Clib::fdump(), INFO_PRINT, Pol::Network::Client::instance_, Pol::Network::Client::ipaddrAsString(), Pol::Accounts::Account::name(), POLLOG, and POLLOG_INFO.
Referenced by handle_humongous_packet(), handle_undefined_packet(), handle_unknown_packet(), and valid_message_length().
void Pol::Core::restart_all_clients | ( | ) |
Definition at line 505 of file pol.cpp.
References Pol::Core::NetworkManager::clients, Pol::Core::UoClientProtocol::EnableFlowControlPackets, networkManager, Pol::Network::Client::pause_count, Pol::Network::Client::restart(), and Pol::Core::NetworkManager::uoclient_protocol.
Referenced by client_io_thread(), combined_thread(), decay_single_thread(), decay_thread(), decay_thread_shadow(), process_data(), scripts_thread(), tasks_thread(), and Pol::xmain_inner().
void Pol::Core::restart_pol_clocks | ( | ) |
Definition at line 126 of file polclock.cpp.
References restart_polclock(), and restart_poltime().
Referenced by Pol::xmain_inner(), and Pol::Core::PolClockPauser::~PolClockPauser().
void Pol::Core::restart_polclock | ( | ) |
Definition at line 65 of file polclock.cpp.
References getCurrentPolClockSeconds(), polclock_base(), Pol::Core::StateManager::polclock_paused_at, and stateManager.
Referenced by restart_pol_clocks().
void Pol::Core::restart_poltime | ( | ) |
Definition at line 96 of file polclock.cpp.
References poltime_base(), and poltime_paused_at().
Referenced by restart_pol_clocks().
void Pol::Core::return_traded_items | ( | Mobile::Character * | chr | ) |
Definition at line 925 of file dropitem.cpp.
References Pol::Core::UContainer::add_at_random_location(), add_item_to_world(), Pol::Mobile::Character::backpack(), Pol::Core::UContainer::can_add(), Pol::Core::UContainer::can_add_to_slot(), Pol::Core::UContainer::can_insert_add_item(), Pol::Mobile::Character::client, Pol::Items::Item::container, Pol::Core::UContainer::extract(), ITEM_ELEM_PTR, Pol::Items::Item::layer, move_item(), Pol::Core::UContainer::MT_CORE_MOVED, Pol::Core::UContainer::on_insert_add_item(), Pol::Core::ULWObject::orphan(), Pol::Core::ULWObject::realm, register_with_supporting_multi(), send_put_in_container(), Pol::Core::UObject::set_dirty(), Pol::Items::Item::slot_index(), Pol::Mobile::Character::trade_container(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by cancel_trade().
void Pol::Core::rndat | ( | const std::string & | basename | ) |
Definition at line 582 of file uimport.cpp.
References Pol::Plib::SystemState::config, Pol::Clib::FileExists(), Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by rename_dat_files().
Bscript::BObjectImp * Pol::Core::run_executor_to_completion | ( | UOExecutor & | ex, |
const ScriptDef & | script | ||
) |
Definition at line 367 of file scrsched.cpp.
References add_common_exmods(), Pol::Bscript::Executor::addModule(), Pol::Bscript::Executor::error_, ERROR_PRINT, Pol::Bscript::Executor::execInstr(), find_script2(), ref_ptr< T >::get(), INFO_PRINT, Pol::Core::ScriptDef::name(), Pol::Bscript::Executor::NONE, Pol::Bscript::Executor::PC, Pol::Bscript::Executor::runnable(), Pol::Bscript::Executor::scriptname(), Pol::Clib::scripts_thread_script, Pol::Clib::scripts_thread_scriptPC, Pol::Bscript::Executor::set_running_to_completion(), Pol::Bscript::Executor::setDebugLevel(), Pol::Bscript::Executor::setProgram(), Pol::Plib::systemstate, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Core::DebugContext::cmd_call(), Pol::Core::DebugContext::cmd_start(), Pol::Core::ExportScript::Initialize(), and run_script_to_completion().
void Pol::Core::run_logon_script | ( | Mobile::Character * | chr | ) |
Definition at line 355 of file pol.cpp.
References call_chr_scripts().
Referenced by char_select(), ClientCreateChar(), ClientCreateChar70160(), and ClientCreateCharKR().
void Pol::Core::run_ready | ( | void | ) |
Definition at line 65 of file scrsched.cpp.
References Pol::Core::ScriptScheduler::run_ready(), and scriptScheduler.
Referenced by step_scripts().
void Pol::Core::run_reconnect_script | ( | Mobile::Character * | chr | ) |
bool Pol::Core::run_script_to_completion | ( | const char * | filename, |
Bscript::BObjectImp * | parameter | ||
) |
Definition at line 333 of file scrsched.cpp.
References ERROR_PRINT, find_script(), ref_ptr< T >::get(), passert_always, Pol::Bscript::Executor::pushArg(), and run_script_to_completion_worker().
Referenced by Pol::Module::_complete_create_item_at_location(), Pol::Module::_create_item_in_container(), call_script(), client_io_thread(), Pol::Module::UOExecutorModule::mf_DestroyItem(), Pol::Module::UOExecutorModule::mf_DestroyMulti(), Pol::Items::Item::run_equip_script(), Pol::Module::OSExecutorModule::run_script_to_completion(), run_start_scripts(), Pol::Items::Item::run_unequip_script(), Pol::Core::JusticeRegion::RunEnterScript(), and Pol::Core::JusticeRegion::RunLeaveScript().
bool Pol::Core::run_script_to_completion | ( | const char * | filename | ) |
Definition at line 352 of file scrsched.cpp.
References ERROR_PRINT, find_script(), ref_ptr< T >::get(), and run_script_to_completion_worker().
Bscript::BObjectImp * Pol::Core::run_script_to_completion | ( | const ScriptDef & | script | ) |
Definition at line 420 of file scrsched.cpp.
References run_executor_to_completion().
Bscript::BObjectImp * Pol::Core::run_script_to_completion | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param1 | ||
) |
Definition at line 428 of file scrsched.cpp.
References Pol::Bscript::Executor::pushArg(), and run_executor_to_completion().
Bscript::BObjectImp * Pol::Core::run_script_to_completion | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2 | ||
) |
Definition at line 441 of file scrsched.cpp.
References Pol::Bscript::Executor::pushArg(), and run_executor_to_completion().
Bscript::BObjectImp * Pol::Core::run_script_to_completion | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2, | ||
Bscript::BObjectImp * | param3 | ||
) |
Definition at line 454 of file scrsched.cpp.
References Pol::Bscript::Executor::pushArg(), and run_executor_to_completion().
Bscript::BObjectImp * Pol::Core::run_script_to_completion | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2, | ||
Bscript::BObjectImp * | param3, | ||
Bscript::BObjectImp * | param4 | ||
) |
Definition at line 469 of file scrsched.cpp.
References Pol::Bscript::Executor::pushArg(), and run_executor_to_completion().
Bscript::BObjectImp * Pol::Core::run_script_to_completion | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2, | ||
Bscript::BObjectImp * | param3, | ||
Bscript::BObjectImp * | param4, | ||
Bscript::BObjectImp * | param5 | ||
) |
Definition at line 486 of file scrsched.cpp.
References Pol::Bscript::Executor::pushArg(), and run_executor_to_completion().
Bscript::BObjectImp * Pol::Core::run_script_to_completion | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2, | ||
Bscript::BObjectImp * | param3, | ||
Bscript::BObjectImp * | param4, | ||
Bscript::BObjectImp * | param5, | ||
Bscript::BObjectImp * | param6 | ||
) |
Definition at line 506 of file scrsched.cpp.
References Pol::Bscript::Executor::pushArg(), and run_executor_to_completion().
Bscript::BObjectImp* Pol::Core::run_script_to_completion | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2, | ||
Bscript::BObjectImp * | param3, | ||
Bscript::BObjectImp * | param4, | ||
Bscript::BObjectImp * | param5, | ||
Bscript::BObjectImp * | param6, | ||
Bscript::BObjectImp * | param7 | ||
) |
Definition at line 528 of file scrsched.cpp.
References Pol::Bscript::Executor::pushArg(), and run_executor_to_completion().
bool Pol::Core::run_script_to_completion_worker | ( | UOExecutor & | ex, |
Bscript::EScriptProgram * | prog | ||
) |
Definition at line 305 of file scrsched.cpp.
References add_common_exmods(), Pol::Bscript::Executor::addModule(), Pol::Bscript::Executor::error_, Pol::Bscript::Executor::execInstr(), INFO_PRINT, Pol::Bscript::Executor::NONE, Pol::Bscript::Executor::PC, Pol::Bscript::Executor::runnable(), Pol::Bscript::Executor::scriptname(), Pol::Clib::scripts_thread_script, Pol::Clib::scripts_thread_scriptPC, Pol::Bscript::Executor::set_running_to_completion(), Pol::Bscript::Executor::setDebugLevel(), Pol::Bscript::Executor::setProgram(), and Pol::Plib::systemstate.
Referenced by run_script_to_completion().
void Pol::Core::run_start_scripts | ( | ) |
Definition at line 1010 of file pol.cpp.
References BOOL(), Pol::Clib::FileExists(), INFO_PRINT, ISTRINGSTREAM, POLLOG_ERROR, POLLOG_INFO, run_script_to_completion(), settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Plib::systemstate, and Pol::Core::ServSpecOpt::use_win_lfh.
Referenced by Pol::xmain_inner().
int Pol::Core::RunWindowsService | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 79 of file polservice.cpp.
References Pol::Clib::CNTService::ParseStandardArgs(), and Pol::xmain_outer().
Referenced by Pol::xmain().
void Pol::Core::safe_getmapinfo | ( | unsigned short | x, |
unsigned short | y, | ||
short * | z, | ||
USTRUCT_MAPINFO * | mi | ||
) |
Definition at line 129 of file uofile08.cpp.
References rawmapinfo(), uo_map_height, and uo_map_width.
Referenced by Pol::UoConvert::create_maptile(), Pol::UoTool::findlandtile(), Pol::UoTool::findlandtileflags(), Pol::UoConvert::get_lowestadjacentz(), Pol::UoTool::mapdump(), and Pol::UoConvert::ProcessSolidBlock().
int Pol::Core::save_incremental | ( | unsigned int & | dirty, |
unsigned int & | clean, | ||
long long & | elapsed_ms | ||
) |
Definition at line 229 of file savedata.cpp.
References Pol::Core::ObjectStorageManager::clean_objects, commit_incremental(), Pol::Plib::SystemState::config, Pol::Clib::decint(), Pol::Core::ObjectStorageManager::deleted_serials, Pol::Core::ObjectStorageManager::dirty_objects, Pol::Tools::Timer< printer >::ellapsed(), Pol::Core::ObjectStorageManager::incremental_save_count, Pol::Core::ObjectStorageManager::incremental_saves_disabled, Pol::Core::ObjectStorageManager::modified_serials, objStorageManager, Pol::Clib::open_file(), POLLOG_ERROR, should_write_data(), Pol::Tools::Timer< printer >::stop(), Pol::Plib::systemstate, Pol::Core::PolConfig::world_data_path, write_dirty_data(), write_dirty_storage(), write_global_properties(), write_index(), and write_system_data().
Referenced by Pol::Module::UOExecutorModule::mf_SaveWorldState(), and Pol::xmain_inner().
bool Pol::Core::say_above | ( | const UObject * | obj, |
const char * | text, | ||
unsigned short | font, | ||
unsigned short | color, | ||
unsigned int | journal_print | ||
) |
Definition at line 1258 of file ufunc.cpp.
References Pol::Core::UObject::description(), Pol::Core::ULWObject::graphic, JOURNAL_PRINT_NAME, JOURNAL_PRINT_YOU_SEE, Pol::Core::UObject::serial_ext, SPEECH_MAX_LEN, TEXTTYPE_NORMAL, and transmit_to_inrange().
Referenced by Pol::Module::UOExecutorModule::mf_PrintTextAbove(), Pol::Module::UnicodeExecutorModule::mf_PrintTextAboveUC(), and Pol::Core::USpell::speak_power_words().
bool Pol::Core::say_above | ( | const UObject * | obj, |
const u16 * | wtext, | ||
const char | lang[4], | ||
unsigned short | font, | ||
unsigned short | color, | ||
unsigned int | journal_print | ||
) |
Definition at line 1291 of file ufunc.cpp.
References Pol::Core::UObject::description(), Pol::Core::ULWObject::graphic, JOURNAL_PRINT_NAME, JOURNAL_PRINT_YOU_SEE, Pol::Core::UObject::serial_ext, SPEECH_MAX_LEN, TEXTTYPE_NORMAL, and transmit_to_inrange().
void Pol::Core::say_above_cl | ( | UObject * | obj, |
unsigned int | cliloc_num, | ||
const u16 * | arguments, | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 60 of file clfunc.cpp.
References Pol::Core::UObject::description(), Pol::Core::ULWObject::graphic, Pol::Core::UObject::serial_ext, SPEECH_MAX_LEN, and transmit_to_inrange().
Referenced by Pol::Module::ClilocExecutorModule::mf_PrintTextAboveCL().
void Pol::Core::say_above_cl_affix | ( | UObject * | obj, |
unsigned int | cliloc_num, | ||
const char * | affix, | ||
bool | prepend, | ||
const u16 * | arguments, | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 167 of file clfunc.cpp.
References Pol::Core::UObject::description(), Pol::Core::ULWObject::graphic, Pol::Core::UObject::serial_ext, SPEECH_MAX_LEN, and transmit_to_inrange().
void Pol::Core::sayto_listening_points | ( | Mobile::Character * | speaker, |
const char * | p_text, | ||
int | , | ||
u8 | texttype, | ||
const u16 * | p_wtext, | ||
const char * | p_lang, | ||
int | p_wtextlen, | ||
Bscript::ObjArray * | speechtokens | ||
) |
Definition at line 48 of file listenpt.cpp.
References Pol::Mobile::Character::dead(), Pol::Core::ListenPoint::flags, gamestate, inrangex(), Pol::Core::GameState::listen_points, LISTENPT_HEAR_GHOSTS, LISTENPT_HEAR_TOKENS, LISTENPT_NO_SPEECH, Pol::Core::ListenPoint::object, Pol::Core::UOExecutor::os_module, Pol::Core::ListenPoint::range, Pol::Core::ULWObject::realm, Pol::Core::ServSpecOpt::seperate_speechtoken, settingsManager, Pol::Module::OSExecutorModule::signal_event(), Pol::Core::SettingsManager::ssopt, TextTypeToString(), Pol::Core::ListenPoint::uoexec, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by handle_processed_speech(), and SendUnicodeSpeech().
void Pol::Core::schedule_executor | ( | UOExecutor * | ex | ) |
Definition at line 662 of file scrsched.cpp.
References Pol::Bscript::Executor::runnable(), Pol::Core::ScriptScheduler::schedule(), and scriptScheduler.
Referenced by ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Mobile::Character::run_hit_script(), start_http_script(), Pol::Mobile::NPC::start_script(), Pol::Mobile::Character::start_script(), start_textcmd_script(), Pol::Items::Item::walk_on(), and Pol::Multi::UHouse::walk_on().
bool Pol::Core::script_loaded | ( | ScriptDef & | sd | ) |
Definition at line 32 of file scrstore.cpp.
References Pol::Core::ScriptDef::name(), scriptScheduler, and Pol::Core::ScriptScheduler::scrstore.
Referenced by Pol::Items::Item::check_test_scripts().
void Pol::Core::scripts_thread | ( | void | ) |
Definition at line 581 of file pol.cpp.
References Pol::Clib::exit_signalled, Pol::Core::TaskScheduler::is_dirty(), polclock(), polclock_checkin(), polticks_t_to_ms(), Pol::Core::StateManager::profilevars, restart_all_clients(), Pol::Core::ProfileVars::script_passes, Pol::Core::ProfileVars::script_passes_activity, Pol::Core::ProfileVars::script_passes_noactivity, stateManager, step_scripts(), THREAD_CHECKPOINT, TRACEBUF_ADDELEM, wait_for_pulse(), and wake_tasks_thread().
Referenced by start_threads().
|
static |
Definition at line 75 of file uofile01.cpp.
References Pol::Core::USTRUCT_VERSION::filepos, and verfile.
Referenced by readlandtile(), and readtile().
void Pol::Core::select_server | ( | Network::Client * | client, |
PKTIN_A0 * | msg | ||
) |
Definition at line 260 of file login.cpp.
References cfBEu16, Pol::Network::Client::ClientType, Pol::Network::Client::cryptengine, Pol::Network::Client::forceDisconnect(), Pol::Crypt::CCryptBase::Init(), Pol::Core::ServerDescription::ip, Pol::Network::Client::listen_port, networkManager, Pol::Core::ServerDescription::port, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::PKTIN_A0::servernum, Pol::Core::NetworkManager::servers, and Pol::Crypt::CCryptBase::typeGame.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::send_action_to_inrange | ( | const Mobile::Character * | obj, |
UACTION | action, | ||
unsigned short | framecount = 0x05 , |
||
unsigned short | repeatcount = 0x01 , |
||
DIRECTION_FLAG_OLD | backward = FORWARD , |
||
REPEAT_FLAG_OLD | repeatflag = NOREPEAT , |
||
unsigned char | delay = 0x01 |
||
) |
Definition at line 180 of file bowsalut.cpp.
References Pol::Core::MobileTranslate::OldAnimDef::action, Pol::Core::MobileTranslate::NewAnimDef::action, ACTION_RIDINGHORSE7, Pol::Core::MobileTranslate::NewAnimDef::anim, Pol::Core::MobileTranslate::OldAnimDef::backward, Pol::Mobile::Character::client, Pol::Core::MobileTranslate::OldAnimDef::delay, ERROR_PRINT, Pol::Core::MobileTranslate::OldAnimDef::framecount, gamestate, Pol::Core::ULWObject::graphic, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Core::GameState::mount_action_xlate, Pol::Core::MobileTranslate::new_anim, Pol::Core::MobileTranslate::old_anim, Pol::Mobile::Character::on_mount(), Pol::Core::MobileTranslate::OldAnimDef::repeatcount, Pol::Core::MobileTranslate::OldAnimDef::repeatflag, Pol::Network::MobileAnimationMsg::Send(), Pol::Core::UObject::serial_ext, Pol::Core::MobileTranslate::NewAnimDef::subaction, Pol::Core::MobileTranslate::supports_mount, translate(), Pol::Network::MobileAnimationMsg::update(), Pol::Core::MobileTranslate::OldAnimDef::valid, and Pol::Core::MobileTranslate::NewAnimDef::valid.
Referenced by Pol::Mobile::Character::do_attack_effects(), Pol::Mobile::Character::do_imhit_effects(), handle_action(), and Pol::Module::UOExecutorModule::mf_PerformAction().
void Pol::Core::send_attributes_normalized | ( | Mobile::Character * | chr, |
Mobile::Character * | bob | ||
) |
Definition at line 1452 of file party.cpp.
References Pol::Mobile::Character::client, Pol::Mobile::VitalValue::current_ones(), Pol::Core::UoClientGeneral::hits, Pol::Core::UoClientGeneral::Mapping::id, Pol::Core::UoClientGeneral::mana, Mobile, networkManager, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, Pol::Core::UoClientGeneral::stamina, Pol::Core::NetworkManager::uoclient_general, and Pol::Mobile::Character::vital().
Referenced by Pol::Core::Party::send_stat_to(), and Pol::Core::Party::send_stats_on_add().
void Pol::Core::send_binary | ( | Clib::Socket & | sck, |
const std::string & | page, | ||
const std::string & | filename, | ||
const std::string & | content_type | ||
) |
Definition at line 585 of file polwww.cpp.
References Pol::Clib::binary(), Pol::Clib::Socket::connected(), Pol::Clib::decint(), Pol::Clib::filesize(), http_not_found(), http_writeline(), and Pol::Clib::Socket::send().
Referenced by http_func().
void Pol::Core::send_buff_message | ( | Character * | chr, |
u16 | icon, | ||
bool | show, | ||
u16 | duration, | ||
u32 | cl_name, | ||
u32 | cl_descr, | ||
std::vector< u32 > | arguments | ||
) |
Sends the packet for the buff bar
chr | the Character to send the packet to |
icon | the ID of the icon to show/remove |
show | if true, shows/updates the icon; if false, removes the icon |
duration | duration in seconds, only for displaying [ignored if show is false] |
cl_name | name of the buff, cliloc id [ignored if show is false] |
cl_descr | description of the buff, cliloc id [ignored if show is false] |
arguments | arguments for cl_descr as unicode string, separated by spaces, without nullptr terminator |
Definition at line 2188 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Network::PktHelper::PacketOut< T >::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Mobile::Character::addBuff(), Pol::Mobile::Character::delBuff(), and Pol::Mobile::Character::send_buffs().
Definition at line 787 of file ufunc.cpp.
References Pol::Network::Client::chr, inrange(), Pol::Mobile::Character::is_visible_to_me(), Pol::Network::Client::ready, and send_owncreate().
Referenced by Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate().
void Pol::Core::send_char_if_newly_inrange | ( | Mobile::Character * | chr, |
Network::Client * | client | ||
) |
Definition at line 33 of file movement.cpp.
References Pol::Network::Client::chr, inrange(), Pol::Mobile::Character::is_visible_to_me(), Pol::Mobile::Character::lastx, Pol::Mobile::Character::lasty, send_owncreate(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by send_objects_newly_inrange(), and send_objects_newly_inrange_on_boat().
void Pol::Core::send_client_char_data | ( | Mobile::Character * | chr, |
Network::Client * | client | ||
) |
Definition at line 803 of file ufunc.cpp.
References Pol::Network::Client::chr, inrange(), Pol::Mobile::Character::is_visible_to_me(), and send_owncreate().
Referenced by char_select(), and equip_from_template().
void Pol::Core::send_ClientTransmit_pulse | ( | ) |
Definition at line 250 of file polsem.cpp.
Referenced by polsem_unlock().
void Pol::Core::send_container_contents | ( | Network::Client * | client, |
const UContainer & | cont | ||
) |
Definition at line 78 of file ufunc2.cpp.
References Pol::Network::AOS, Pol::Core::UContainer::begin(), Pol::Mobile::Character::can_seeinvisitems(), Pol::Network::Client::chr, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_6017, Pol::Core::UObject::color, Pol::Core::UContainer::end(), GET_ITEM_PTR, Pol::Items::Item::get_senditem_amount(), Pol::Core::ULWObject::graphic, Pol::Items::Item::invisible(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_object_cache(), send_remove_object(), Pol::Core::UObject::serial_ext, Pol::Items::Item::slot_index(), Pol::Network::Client::UOExpansionFlag, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Core::UContainer::builtin_on_use(), Pol::Module::UOExecutorModule::mf_SendBuyWindow(), Pol::Module::UOExecutorModule::mf_SendViewContainer(), and send_full_corpse().
Definition at line 651 of file ufunc.cpp.
References send_corpse_contents(), and send_corpse_equip().
Referenced by send_item(), and send_item_to_inrange().
Definition at line 608 of file ufunc.cpp.
References can_see_on_corpse(), Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_6017, Pol::Core::UObject::color, Pol::Items::Item::get_senditem_amount(), Pol::Core::UCorpse::GetItemOnLayer(), Pol::Core::ULWObject::graphic, HIGHEST_LAYER, LOWEST_LAYER, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, Pol::Items::Item::slot_index(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by send_corpse().
Definition at line 578 of file ufunc.cpp.
References can_see_on_corpse(), Pol::Core::UCorpse::GetItemOnLayer(), HIGHEST_LAYER, Pol::Items::Item::layer, LOWEST_LAYER, Pol::Network::PktHelper::PacketOut< T >::Send(), and Pol::Core::UObject::serial_ext.
Referenced by send_corpse(), send_corpse_equip_inrange(), and send_full_corpse().
void Pol::Core::send_corpse_equip_inrange | ( | const Item * | item | ) |
Definition at line 667 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InVisualRange(), and send_corpse_equip().
Referenced by Pol::Core::UCorpse::on_insert_add_item().
Definition at line 1886 of file ufunc.cpp.
References Pol::Network::Client::chr, inrange(), Pol::Mobile::Character::is_visible_to_me(), Pol::Network::Client::ready, and send_owncreate().
Referenced by Pol::Mobile::Character::remove_as_aggressor_to(), and Pol::Mobile::Character::remove_as_lawful_damager().
void Pol::Core::send_create_mobile_to_nearby_cansee | ( | const Character * | chr | ) |
Definition at line 1895 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Mobile::Character::is_visible_to_me(), and send_owncreate().
Referenced by Pol::Module::UOExecutorModule::mf_UpdateMobile(), Pol::Mobile::Character::on_aggressor_changed(), Pol::Mobile::Character::on_cmdlevel_changed(), Pol::Mobile::Character::on_color_changed(), Pol::Mobile::Character::on_concealed_changed(), Pol::Mobile::Character::on_criminal_changed(), Pol::Mobile::Character::on_death(), Pol::Mobile::Character::on_hidden_changed(), Pol::Mobile::Character::on_lawfullydamaged_changed(), Pol::Mobile::Character::on_murderer_changed(), Pol::Core::RepSystem::on_pc_attacks_pc(), Pol::Core::RepSystem::repsys_task(), Pol::Mobile::Character::resurrect(), Pol::Mobile::Character::set_warmode(), Pol::Mobile::Character::setgraphic(), Pol::Core::Guild::update_online_members(), and Pol::Core::Guild::update_online_members_remove().
Definition at line 2130 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Network::SendDamagePkt::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Mobile::Character::apply_raw_damage_hundredths().
Definition at line 1497 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Network::PktHelper::PacketOut< T >::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Mobile::Character::die().
void Pol::Core::send_empty_party | ( | Mobile::Character * | chr | ) |
Definition at line 795 of file party.cpp.
References Pol::Mobile::Character::client, Pol::Mobile::Character::has_active_client(), Pol::Core::PKTBI_BF_06::PARTYCMD_REMOVE, Pol::Network::PktHelper::PacketOut< T >::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), Pol::Core::Party::disband(), handle_remove(), handle_remove_member_cursor(), and on_loggon_party().
void Pol::Core::send_feature_enable | ( | Client * | client | ) |
Definition at line 1953 of file ufunc.cpp.
References Pol::Network::Client::acct, Pol::Network::AOS, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_60142, Pol::Network::HSA, Pol::Network::KR, Pol::Network::LBR, Pol::Network::ML, Pol::Network::SA, Pol::Network::SE, Pol::Network::PktHelper::PacketOut< T >::Send(), settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::ServSpecOpt::support_faces, Pol::Plib::systemstate, Pol::Network::T2A, Pol::Network::TOL, Pol::Accounts::Account::uo_expansion_flag(), and Pol::Network::Client::UOExpansionFlag.
Referenced by Pol::Accounts::AccountObjImp::call_method_id(), Pol::Mobile::Character::realm_changed(), and send_start().
Definition at line 2121 of file ufunc.cpp.
References Pol::Network::Client::chr, Pol::Network::PktHelper::PacketOut< T >::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Mobile::Character::check_attack_after_move().
Definition at line 660 of file ufunc.cpp.
References send_container_contents(), and send_corpse_equip().
Referenced by Pol::Mobile::Character::on_death().
void Pol::Core::send_full_statmsg | ( | Network::Client * | client, |
Mobile::Character * | chr | ||
) |
Definition at line 32 of file statmsg.cpp.
References Pol::Core::UoClientGeneral::Mapping::any, Pol::Network::AOS, Pol::Network::Client::aosresist, Pol::Mobile::Character::ar(), Pol::Mobile::Character::attribute(), Pol::Mobile::Character::carrying_capacity(), Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_5000, Pol::Network::CLIENTTYPE_70300, Pol::Mobile::VitalValue::current_ones(), Pol::Core::UoClientGeneral::dexterity, Pol::Mobile::AttributeValue::effective(), Pol::Mobile::Character::gender, Pol::Mobile::Character::gold_carried(), Pol::Core::UoClientGeneral::hits, Pol::Core::UoClientGeneral::Mapping::id, Pol::Core::UoClientGeneral::intelligence, Pol::Core::UoClientGeneral::mana, Pol::Mobile::Character::max_weapon_damage(), Pol::Mobile::VitalValue::maximum_ones(), Pol::Mobile::Character::min_weapon_damage(), Pol::Network::ML, Pol::Core::UObject::name(), networkManager, Pol::Mobile::Character::race, Pol::Clib::sanitize_upperlimit(), Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::ServSpecOpt::send_stat_locks, send_stat_locks(), Pol::Core::UObject::serial_ext, settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::UoClientGeneral::stamina, Pol::Core::UoClientGeneral::strength, Pol::Core::NetworkManager::uoclient_general, Pol::Network::Client::UOExpansionFlag, Pol::Mobile::Character::vital(), and Pol::Mobile::Character::weight().
Referenced by cancel_trade(), drop_item(), drop_item_v2(), get_item(), Pol::Module::UOExecutorModule::mf_SendBuyWindow(), Pol::Module::UOExecutorModule::mf_SendStatus(), Pol::Module::oldSellHandler(), Pol::Mobile::Character::on_aos_ext_stat_changed(), Pol::Mobile::Character::refresh_ar(), Pol::Core::UContainer::remove(), Pol::Network::send_uo_dexterity(), Pol::Network::send_uo_intelligence(), Pol::Network::send_uo_strength(), Pol::Mobile::Character::set_script_member_id(), Pol::Mobile::Character::spend_gold(), statrequest(), and UpdateCharacterWeight().
Definition at line 149 of file ufunc.cpp.
References Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_UOKR, Pol::Core::UObject::color, Pol::Core::UObject::facing, Pol::Mobile::Character::get_flag1(), Pol::Core::ULWObject::graphic, Pol::Mobile::Character::invul(), Pol::Mobile::Character::poisoned(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_invulhealthbar(), send_poisonhealthbar(), Pol::Core::UObject::serial_ext, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by handle_msg_BF(), handle_resync_request(), move_character_to(), Pol::Multi::UBoat::move_travellers(), Pol::Mobile::Character::on_color_changed(), Pol::Mobile::Character::on_death(), Pol::Mobile::Character::on_facing_changed(), Pol::Mobile::Character::on_poison_changed(), Pol::Mobile::Character::resurrect(), Pol::Mobile::Character::setgraphic(), start_client_char(), and Pol::Multi::UBoat::turn_travellers().
void Pol::Core::send_html | ( | Clib::Socket & | sck, |
const std::string & | page, | ||
const std::string & | filename | ||
) |
Definition at line 565 of file polwww.cpp.
References http_not_found(), and http_writeline().
Referenced by http_func().
void Pol::Core::send_inrange_items | ( | Network::Client * | client | ) |
Definition at line 224 of file pol.cpp.
References Pol::Network::Client::chr, and Pol::Core::WorldIterator< Filter >::InVisualRange().
Referenced by handle_resync_request().
void Pol::Core::send_inrange_multis | ( | Network::Client * | client | ) |
Definition at line 230 of file pol.cpp.
References Pol::Network::Client::chr, Pol::Core::WorldIterator< Filter >::InVisualRange(), textcmd_startlog(), and textcmd_stoplog().
Referenced by handle_resync_request().
void Pol::Core::send_invite | ( | Mobile::Character * | member, |
Mobile::Character * | leader | ||
) |
Definition at line 1438 of file party.cpp.
References Pol::Mobile::Character::client, CLP_Invite, CLP_Invited, Pol::Core::UObject::name(), Pol::Core::PKTBI_BF_06::PARTYCMD_INVITE_MEMBER, Pol::Network::PktHelper::PacketOut< T >::Send(), send_sysmessage_cl(), send_sysmessage_cl_affix(), and Pol::Core::UObject::serial_ext.
Referenced by add_candidate(), and Pol::Module::EPartyRefObjImp::call_method_id().
Definition at line 196 of file ufunc.cpp.
References Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_UOKR, Pol::Mobile::Character::invul(), Pol::Network::HealthBarStatusUpdate::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Multi::UBoat::move_travellers(), send_goxyz(), send_move(), send_owncreate(), and Pol::Multi::UBoat::turn_travellers().
Definition at line 676 of file ufunc.cpp.
References Pol::Network::AOS, Pol::Mobile::Character::can_move(), Pol::Mobile::Character::can_seeinvisitems(), Pol::Network::Client::chr, Pol::Core::UObject::color, Pol::Core::UObject::facing, Pol::Items::Item::get_senditem_amount(), Pol::Core::ULWObject::graphic, Pol::Items::Item::invisible(), ITEM_FLAG_FORCE_MOVABLE, Pol::Core::UObject::objtype_, Pol::Network::SendWorldItem::Send(), send_corpse(), send_object_cache(), send_remove_object(), Pol::Core::ULWObject::serial, UOBJ_CORPSE, Pol::Network::Client::UOExpansionFlag, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Multi::CustomHouseStopEditing(), Pol::Mobile::PrivUpdater::enable_see_invis_items(), move_item(), Pol::Multi::UBoat::send_boat_newly_inrange(), and send_item_if_newly_inrange().
void Pol::Core::send_item_if_newly_inrange | ( | Items::Item * | item, |
Network::Client * | client | ||
) |
Definition at line 43 of file movement.cpp.
References Pol::Network::Client::chr, inrange(), Pol::Mobile::Character::lastx, Pol::Mobile::Character::lasty, send_item(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by send_objects_newly_inrange(), and send_objects_newly_inrange_on_boat().
void Pol::Core::send_item_move_failure | ( | Network::Client * | client, |
u8 | reason | ||
) |
Definition at line 818 of file ufunc.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send().
Referenced by add_item_to_stack(), Pol::Mobile::Character::clear_gotten_item(), drop_item_on_ground(), drop_item_on_mobile(), drop_item_on_object(), equip_item(), get_item(), place_item(), place_item_in_container(), and place_item_in_secure_trade_container().
void Pol::Core::send_item_to_inrange | ( | const Item * | item | ) |
Definition at line 706 of file ufunc.cpp.
References Pol::Mobile::Character::can_move(), Pol::Mobile::Character::can_seeinvisitems(), Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Core::UObject::color, Pol::Core::UObject::facing, Pol::Items::Item::get_senditem_amount(), Pol::Core::ULWObject::graphic, Pol::Items::Item::invisible(), Pol::Core::WorldIterator< Filter >::InVisualRange(), ITEM_FLAG_FORCE_MOVABLE, Pol::Core::UObject::objtype_, Pol::Core::UObject::rev(), Pol::Network::SendWorldItem::Send(), send_corpse(), Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, UOBJ_CORPSE, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Mobile::Character::die(), drop_item_on_ground(), get_item(), Pol::Module::UOExecutorModule::mf_UpdateItem(), Pol::Core::UDoor::toggle(), undo_get_item(), and update_item_to_inrange().
void Pol::Core::send_light | ( | Client * | client, |
int | lightlevel | ||
) |
Definition at line 766 of file ufunc.cpp.
References lightlevel(), Pol::Network::PktHelper::PacketOut< T >::Send(), and VALID_LIGHTLEVEL().
Referenced by Pol::Mobile::Character::check_light_region_change(), Pol::Mobile::Character::check_weather_region_change(), and send_season_info().
void Pol::Core::send_login_error | ( | Network::Client * | client, |
unsigned char | reason | ||
) |
Definition at line 60 of file login.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send().
Referenced by char_select(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), handle_delete_character(), login2(), and loginserver_login().
void Pol::Core::send_mana_level | ( | Client * | client | ) |
Definition at line 1471 of file ufunc.cpp.
References Pol::Core::UoClientGeneral::Mapping::any, Pol::Network::Client::chr, Pol::Mobile::VitalValue::current_ones(), Pol::Core::UoClientGeneral::Mapping::id, Pol::Core::UoClientGeneral::mana, Pol::Mobile::VitalValue::maximum_ones(), networkManager, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, Pol::Core::NetworkManager::uoclient_general, and Pol::Mobile::Character::vital().
Referenced by Pol::Module::VitalExecutorModule::mf_ConsumeMana().
void Pol::Core::send_map_difs | ( | Client * | client | ) |
Sends number of maps used and number of map/static patches for each map.
Definition at line 2044 of file ufunc.cpp.
References gamestate, Pol::Core::GameState::Realms, and Pol::Network::PktHelper::PacketOut< T >::Send().
Referenced by Pol::Mobile::Character::realm_changed(), and start_client_char().
bool Pol::Core::send_menu | ( | Network::Client * | client, |
Menu * | menu | ||
) |
Definition at line 28 of file ufunc2.cpp.
References Pol::Core::MenuItem::color_, Pol::Core::MenuItem::graphic_, Pol::Core::Menu::menu_id, Pol::Core::Menu::menuitems_, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::MenuItem::title, and Pol::Core::Menu::title.
Referenced by handle_menu_selection(), and Pol::Module::UOExecutorModule::mf_SelectMenuItem().
Definition at line 1867 of file ufunc.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send().
Referenced by Pol::Mobile::Character::check_music_region_change(), and Pol::Module::UOExecutorModule::mf_PlayMusic().
void Pol::Core::send_mode | ( | Network::Client * | client | ) |
void Pol::Core::send_move | ( | Network::Client * | client, |
const Mobile::Character * | chr, | ||
Network::PktOut_77 * | movebuffer | ||
) |
Definition at line 174 of file ufunc.cpp.
References Pol::Mobile::Character::invul(), Pol::Mobile::Character::poisoned(), Pol::Network::MoveChrPkt::Send(), send_invulhealthbar(), and send_poisonhealthbar().
Referenced by Pol::Mobile::PrivUpdater::disable_invul(), Pol::Mobile::PrivUpdater::enable_invul(), handle_mode_set(), Pol::Module::UOExecutorModule::mf_UpdateMobile(), Pol::Mobile::Character::on_aggressor_changed(), Pol::Mobile::Character::on_concealed_changed(), Pol::Mobile::Character::on_criminal_changed(), Pol::Mobile::Character::on_hidden_changed(), Pol::Mobile::Character::on_lawfullydamaged_changed(), Pol::Mobile::Character::on_murderer_changed(), Pol::Core::RepSystem::on_pc_attacks_pc(), Pol::Core::RepSystem::repsys_task(), send_move_if_inrange2(), Pol::Core::Guild::update_online_members(), and Pol::Core::Guild::update_online_members_remove().
void Pol::Core::send_move_if_inrange2 | ( | Mobile::Character * | chr, |
Network::Client * | client | ||
) |
Definition at line 177 of file textcmd.cpp.
References Pol::Network::Client::chr, inrange(), Pol::Network::Client::ready, and send_move().
void Pol::Core::send_move_mobile_to_nearby_cansee | ( | const Character * | chr | ) |
Definition at line 1905 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Mobile::Character::is_visible_to_me(), and Pol::Network::MoveChrPkt::Send().
Referenced by handle_msg_BF(), Pol::Module::UOExecutorModule::mf_UpdateMobile(), Pol::Mobile::Character::on_facing_changed(), and Pol::Mobile::Character::on_poison_changed().
void Pol::Core::send_multi | ( | Network::Client * | client, |
const Multi::UMulti * | multi | ||
) |
Definition at line 1652 of file ufunc.cpp.
References Pol::Core::UObject::color, Pol::Multi::UMulti::multidef(), Pol::Multi::MultiDef::multiid, Pol::Network::SendWorldMulti::Send(), Pol::Core::UObject::serial_ext, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Multi::UMulti::readobjects(), and send_multi_if_newly_inrange().
void Pol::Core::send_multi_if_newly_inrange | ( | Multi::UMulti * | multi, |
Network::Client * | client | ||
) |
Definition at line 52 of file movement.cpp.
References Pol::Network::AOS, Pol::Multi::UMulti::as_house(), Pol::Network::Client::chr, Pol::Multi::CustomHousesSendShort(), Pol::Multi::UHouse::IsCustom(), Pol::Mobile::Character::lastx, Pol::Mobile::Character::lasty, multi_inrange(), send_multi(), Pol::Network::Client::UOExpansionFlag, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
void Pol::Core::send_multi_to_inrange | ( | const Multi::UMulti * | multi | ) |
Definition at line 1659 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::UObject::color, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Multi::UMulti::multidef(), Pol::Multi::MultiDef::multiid, Pol::Core::UObject::serial_ext, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Multi::UMulti::readobjects(), and Pol::Multi::UHouse::scripted_create().
void Pol::Core::send_multis_newly_inrange | ( | Multi::UMulti * | multi, |
Network::Client * | client | ||
) |
Definition at line 1237 of file ufunc.cpp.
References Pol::Network::Client::chr, Pol::Mobile::Character::name_color(), Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, SPEECH_MAX_LEN, and TEXTTYPE_YOU_SEE.
Referenced by singleclick().
void Pol::Core::send_new_subserver | ( | Client * | client | ) |
Definition at line 2109 of file ufunc.cpp.
References Pol::Network::Client::chr, Pol::Realms::Realm::height(), Pol::Core::ULWObject::realm, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Realms::Realm::width(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by move_character_to(), and Pol::Multi::UBoat::move_travellers().
Definition at line 1425 of file ufunc.cpp.
References Pol::Items::Item::description(), Pol::Core::ULWObject::graphic, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, SPEECH_MAX_LEN, and TEXTTYPE_YOU_SEE.
Referenced by singleclick().
void Pol::Core::send_object_cache | ( | Network::Client * | client, |
const UObject * | obj | ||
) |
Definition at line 68 of file tooltips.cpp.
References Pol::Core::PKTOUT_A9::FLAG_AOS_FEATURES, Pol::Core::UObject::rev(), Pol::Network::ObjRevisionPkt::Send(), Pol::Core::UObject::serial_ext, settingsManager, Pol::Core::SettingsManager::ssopt, and Pol::Core::ServSpecOpt::uo_feature_enable.
Referenced by handle_client_version(), handle_msg_BF(), send_container_contents(), send_item(), send_owncreate(), send_put_in_container(), and send_wornitem().
void Pol::Core::send_object_cache_to_inrange | ( | const UObject * | obj | ) |
Definition at line 77 of file tooltips.cpp.
References Pol::Core::PKTOUT_A9::FLAG_AOS_FEATURES, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Core::UObject::rev(), Pol::Core::UObject::serial_ext, settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::UObject::toplevel_owner(), and Pol::Core::ServSpecOpt::uo_feature_enable.
Referenced by Pol::Module::PolSystemExecutorModule::mf_IncRevision(), Pol::Items::Equipment::reduce_hp_from_hit(), send_wornitem_to_inrange(), Pol::Items::Item::set_script_member_id(), Pol::Mobile::Character::set_script_member_id(), Pol::Items::Item::setamount(), Pol::Core::UObject::setname(), and update_wornitem_to_inrange().
void Pol::Core::send_objects_newly_inrange | ( | Network::Client * | client | ) |
Definition at line 64 of file movement.cpp.
References Pol::Network::Client::chr, Pol::Core::WorldIterator< Filter >::InRange(), Pol::Core::WorldIterator< Filter >::InVisualRange(), RANGE_VISUAL_LARGE_BUILDINGS, Pol::Core::ULWObject::realm, send_char_if_newly_inrange(), send_item_if_newly_inrange(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by handle_walk(), move_character_to(), and start_client_char().
void Pol::Core::send_objects_newly_inrange_on_boat | ( | Network::Client * | client, |
u32 | serial | ||
) |
Definition at line 77 of file movement.cpp.
References Pol::Network::Client::chr, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_7090, Pol::Realms::Realm::find_supporting_multi(), Pol::Core::WorldIterator< Filter >::InRange(), Pol::Core::WorldIterator< Filter >::InVisualRange(), RANGE_VISUAL_LARGE_BUILDINGS, Pol::Core::ULWObject::realm, send_char_if_newly_inrange(), send_item_if_newly_inrange(), Pol::Core::ULWObject::serial, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Multi::UBoat::move_travellers(), and Pol::Multi::UBoat::turn_travellers().
void Pol::Core::send_open_gump | ( | Network::Client * | client, |
const UContainer & | cont | ||
) |
Definition at line 67 of file ufunc2.cpp.
References Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_7090, Pol::Core::UContainer::gump(), Pol::Network::PktHelper::PacketOut< T >::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Core::UContainer::builtin_on_use(), Pol::Core::Spellbook::double_click(), Pol::Module::UOExecutorModule::mf_SendViewContainer(), and Pol::Core::Spellbook::send_book_old().
Definition at line 206 of file ufunc.cpp.
References Pol::Network::AOS, Pol::Network::Client::chr, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_70331, Pol::Network::CLIENTTYPE_UOKR, Pol::Core::UObject::color, Pol::Core::UObject::facing, Pol::Mobile::Character::get_flag1(), Pol::Core::ULWObject::graphic, Pol::Mobile::Character::hilite_color_idx(), Pol::Mobile::Character::invul(), LAYER_EQUIP__HIGHEST, LAYER_EQUIP__LOWEST, LAYER_FACE, Pol::Mobile::Character::poisoned(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_invulhealthbar(), send_object_cache(), send_poisonhealthbar(), Pol::Core::UObject::serial_ext, settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::ServSpecOpt::support_faces, Pol::Network::Client::UOExpansionFlag, Pol::Mobile::Character::wornitem(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Mobile::PrivUpdater::disable_invul(), Pol::Mobile::PrivUpdater::enable_invul(), Pol::Mobile::PrivUpdater::enable_see_ghosts(), Pol::Mobile::PrivUpdater::enable_see_hidden(), Pol::Module::UOExecutorModule::mf_UpdateMobile(), move_character_to(), Pol::Multi::UBoat::move_travellers(), Pol::Mobile::PropagateMove(), Pol::Mobile::Character::resurrect(), Pol::Multi::UBoat::send_boat_newly_inrange(), send_char_data(), send_char_if_newly_inrange(), send_client_char_data(), Pol::Mobile::send_create_ghost(), send_create_mobile_if_nearby_cansee(), send_create_mobile_to_nearby_cansee(), start_client_char(), and Pol::Mobile::Character::unhide().
Definition at line 293 of file ufunc.cpp.
References Pol::Network::AOS, Pol::Network::PacketWriterDefs::PacketWriter< _id, _size, _sub >::buffer, Pol::Network::Client::chr, Pol::Core::NetworkManager::clientTransmit, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_70331, Pol::Network::CLIENTTYPE_UOKR, Pol::Core::UObject::color, Pol::Mobile::Character::get_flag1(), Pol::Core::ULWObject::graphic, Pol::Mobile::Character::hilite_color_idx(), LAYER_EQUIP__HIGHEST, LAYER_EQUIP__LOWEST, LAYER_FACE, networkManager, Pol::Network::PacketInterface::offset, send_object_cache(), Pol::Core::UObject::serial_ext, settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::ServSpecOpt::support_faces, Pol::Network::Client::UOExpansionFlag, Pol::Mobile::Character::wornitem(), Pol::Network::PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and Pol::Network::PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
void Pol::Core::send_paperdoll | ( | Network::Client * | client, |
Mobile::Character * | chr | ||
) |
Definition at line 50 of file dblclick.cpp.
References Pol::Network::AOS, CHAR_FLAG1_CANALTER, Pol::Network::Client::chr, Pol::Core::UObject::name(), name, Pol::Core::ServSpecOpt::privacy_paperdoll, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Network::Client::UOExpansionFlag, and Pol::Mobile::Character::warmode().
Referenced by doubleclick(), and Pol::Module::UOExecutorModule::mf_OpenPaperdoll().
Definition at line 186 of file ufunc.cpp.
References Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_UOKR, Pol::Mobile::Character::poisoned(), Pol::Network::HealthBarStatusUpdate::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Multi::UBoat::move_travellers(), Pol::Mobile::Character::on_poison_changed(), send_goxyz(), send_move(), send_owncreate(), and Pol::Multi::UBoat::turn_travellers().
void Pol::Core::send_prompt | ( | Network::Client * | client, |
u32 | serial | ||
) |
Definition at line 31 of file getmsg.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send().
Referenced by Pol::Module::UOExecutorModule::mf_PromptInput().
void Pol::Core::send_pulse | ( | ) |
Definition at line 188 of file polsem.cpp.
Referenced by client_io_thread(), polsem_unlock(), tasks_thread(), and threadstatus_thread().
Definition at line 528 of file ufunc.cpp.
References Pol::Network::AOS, Pol::Core::UObject::color, Pol::Items::Item::container, Pol::Items::Item::get_senditem_amount(), Pol::Core::ULWObject::graphic, Pol::Network::AddItemContainerMsg::Send(), send_object_cache(), Pol::Core::UObject::serial_ext, Pol::Items::Item::slot_index(), Pol::Network::Client::UOExpansionFlag, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by do_place_item_in_secure_trade_container(), Pol::Core::Spellbook::double_click(), handle_open_spellbook(), and return_traded_items().
void Pol::Core::send_put_in_container_to_inrange | ( | const Item * | item | ) |
Definition at line 539 of file ufunc.cpp.
References Pol::Core::NetworkManager::clients, Pol::Core::UObject::color, Pol::Items::Item::container, Pol::Items::Item::get_senditem_amount(), Pol::Core::ULWObject::graphic, networkManager, Pol::Core::UObject::rev(), Pol::Network::AddItemContainerMsg::Send(), Pol::Network::ObjRevisionPkt::Send(), Pol::Core::UObject::serial_ext, Pol::Items::Item::slot_index(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by get_item(), place_item_in_container(), and update_item_to_inrange().
void Pol::Core::send_realm_change | ( | Client * | client, |
Realms::Realm * | realm | ||
) |
Definition at line 2034 of file ufunc.cpp.
References Pol::Realms::Realm::getUOMapID(), and Pol::Network::PktHelper::PacketOut< T >::Send().
Referenced by Pol::Mobile::Character::realm_changed(), and start_client_char().
void Pol::Core::send_remove | ( | Network::Client & | client, |
UObject & | to_remove | ||
) |
Definition at line 355 of file ufunc.cpp.
References Pol::Network::Client::chr, Pol::Network::Client::ready, Pol::Network::RemoveObjectPkt::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Mobile::PrivUpdater::disable_see_ghosts(), Pol::Mobile::PrivUpdater::disable_see_hidden(), Pol::Mobile::PropagateMove(), remove_objects_inrange(), and Pol::Mobile::send_remove_if_hidden_ghost().
void Pol::Core::send_remove_character | ( | Network::Client * | client, |
const Mobile::Character * | chr, | ||
Network::RemoveObjectPkt & | pkt | ||
) |
Definition at line 367 of file ufunc.cpp.
References Pol::Network::Client::chr, Pol::Network::Client::ready, and Pol::Network::RemoveObjectPkt::Send().
void Pol::Core::send_remove_character_to_nearby | ( | const Character * | chr | ) |
Definition at line 379 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Network::RemoveObjectPkt::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Module::UOExecutorModule::internal_MoveCharacter(), Pol::Mobile::NPC::on_death(), Pol::Network::Client::PreDelete(), and Pol::Multi::UBoat::realm_changed().
void Pol::Core::send_remove_character_to_nearby_cansee | ( | const Character * | chr | ) |
Definition at line 400 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Mobile::Character::is_visible_to_me(), Pol::Network::RemoveObjectPkt::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Mobile::Character::on_color_changed(), Pol::Mobile::Character::resurrect(), Pol::Mobile::Character::setgraphic(), Pol::Core::Guild::update_online_members(), and Pol::Core::Guild::update_online_members_remove().
void Pol::Core::send_remove_character_to_nearby_cantsee | ( | const Character * | chr | ) |
Definition at line 389 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Mobile::Character::is_visible_to_me(), Pol::Network::RemoveObjectPkt::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Mobile::Character::on_cmdlevel_changed(), Pol::Mobile::Character::on_concealed_changed(), Pol::Mobile::Character::on_death(), Pol::Mobile::Character::on_hidden_changed(), and Pol::Mobile::Character::set_warmode().
Definition at line 420 of file ufunc.cpp.
References Pol::Network::Client::ready, Pol::Network::RemoveObjectPkt::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Multi::destroy_boat(), Pol::Mobile::PrivUpdater::disable_see_invis_items(), Pol::Multi::UBoat::move_components(), Pol::Multi::UBoat::move_travellers(), remove_objects_inrange(), send_container_contents(), Pol::Multi::UBoat::send_display_boat(), send_item(), Pol::Multi::UBoat::send_remove_boat(), Pol::Multi::UBoat::transform_components(), and Pol::Multi::UBoat::turn_travellers().
void Pol::Core::send_remove_object | ( | Client * | client, |
const UObject * | item, | ||
RemoveObjectPkt & | pkt | ||
) |
Definition at line 435 of file ufunc.cpp.
References Pol::Network::Client::ready, Pol::Network::RemoveObjectPkt::Send(), Pol::Core::UObject::serial_ext, and Pol::Network::RemoveObjectPkt::update().
Definition at line 409 of file ufunc.cpp.
References Pol::Network::Client::chr, inrange(), Pol::Network::Client::ready, Pol::Network::RemoveObjectPkt::Send(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Module::UOExecutorModule::mf_SendHousingTool().
void Pol::Core::send_remove_object_to_inrange | ( | const UObject * | centerObject | ) |
Definition at line 428 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::WorldIterator< Filter >::InVisualRange(), Pol::Network::RemoveObjectPkt::Send(), and Pol::Core::UObject::serial_ext.
Referenced by add_item_to_stack(), Pol::Multi::destroy_house(), destroy_item(), do_place_item_in_secure_trade_container(), drop_item_on_mobile(), get_item(), Pol::Module::UOExecutorModule::internal_MoveBoat(), place_item_in_container(), Pol::Core::UContainer::remove(), Pol::Module::true_extricate(), update_wornitem_to_inrange(), and UpdateCharacterOnDestroyItem().
void Pol::Core::send_season_info | ( | Client * | client | ) |
Definition at line 2090 of file ufunc.cpp.
References Pol::Network::Client::chr, Pol::Network::Client::gd, Pol::Network::Client::getversiondetail(), Pol::Core::WeatherRegion::lightoverride, Pol::Network::VersionDetailStruct::major, Pol::Core::PKTOUT_BC::PLAYSOUND_YES, Pol::Core::ULWObject::realm, Pol::Realms::Realm::season(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_light(), and Pol::Network::ClientGameData::weather_region.
Referenced by handle_client_version(), Pol::Mobile::Character::realm_changed(), and start_client_char().
void Pol::Core::send_short_statmsg | ( | Network::Client * | client, |
Mobile::Character * | chr | ||
) |
Definition at line 235 of file statmsg.cpp.
References Pol::Core::UoClientGeneral::Mapping::any, Pol::Mobile::Character::can_rename(), Pol::Network::Client::chr, Pol::Mobile::VitalValue::current_thousands(), Pol::Core::UoClientGeneral::hits, Pol::Core::UoClientGeneral::Mapping::id, Pol::Core::UObject::name(), networkManager, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, Pol::Core::NetworkManager::uoclient_general, and Pol::Mobile::Character::vital().
Referenced by Pol::Mobile::Character::realm_changed(), Pol::Core::Party::send_stat_to(), Pol::Core::Party::send_stats_on_add(), and statrequest().
void Pol::Core::send_skillmsg | ( | Network::Client * | client, |
const Mobile::Character * | chr | ||
) |
Definition at line 59 of file irequest.cpp.
References Pol::Mobile::Character::attribute(), Pol::Mobile::Attribute::attrid, Pol::Mobile::AttributeValue::base(), Pol::Mobile::AttributeValue::cap(), Pol::Core::ServSpecOpt::core_sends_caps, Pol::Core::ServSpecOpt::default_attribute_cap, Pol::Mobile::AttributeValue::effective_tenths(), Pol::Core::PKTBI_3A_VALUES::FULL_LIST, Pol::Core::PKTBI_3A_VALUES::FULL_LIST_CAP, GetUOSkill(), Pol::Mobile::AttributeValue::lock(), Pol::Core::PKTBI_3A_VALUES::LOCK_DOWN, Pol::Core::UoClientGeneral::maxskills, networkManager, Pol::Core::UOSkill::pAttr, Pol::Network::PktHelper::PacketOut< T >::Send(), settingsManager, Pol::Core::SettingsManager::ssopt, and Pol::Core::NetworkManager::uoclient_general.
Referenced by Pol::Module::UOExecutorModule::mf_SendSkillWindow(), and skillrequest().
void Pol::Core::send_spellbook_contents | ( | Network::Client * | client, |
Spellbook & | spellbook | ||
) |
Definition at line 384 of file spelbook.cpp.
References Pol::Core::Spellbook::bitwise_contents, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_6017, Pol::Core::USpellScroll::convert_objtype_to_spellnum(), ref_counted::count(), gamestate, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, Pol::Core::Spellbook::spell_school, and Pol::Core::GameState::spell_scroll_objtype_limits.
Referenced by Pol::Core::Spellbook::send_book_old(), and Pol::Core::USpellScroll::~USpellScroll().
void Pol::Core::send_stamina_level | ( | Client * | client | ) |
Definition at line 1445 of file ufunc.cpp.
References Pol::Core::UoClientGeneral::Mapping::any, Pol::Network::Client::chr, Pol::Mobile::VitalValue::current_ones(), Pol::Core::UoClientGeneral::Mapping::id, Pol::Core::UoClientGeneral::mana, Pol::Mobile::VitalValue::maximum_ones(), networkManager, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, Pol::Core::UoClientGeneral::stamina, Pol::Core::NetworkManager::uoclient_general, and Pol::Mobile::Character::vital().
void Pol::Core::send_start | ( | Network::Client * | client | ) |
Definition at line 297 of file login.cpp.
References Pol::Network::Client::acct, Pol::Network::AOS, Pol::Core::PolConfig::character_slots, Pol::Network::Client::ClientType, Pol::Network::CLIENTTYPE_70130, Pol::Plib::SystemState::config, gamestate, Pol::Accounts::Account::get_character(), Pol::Core::UObject::name(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_feature_enable(), settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::GameState::startlocations, Pol::Plib::systemstate, Pol::Core::ServSpecOpt::uo_feature_enable, Pol::Network::Client::UOExpansionFlag, Pol::Core::Coordinate::x, Pol::Core::Coordinate::y, and Pol::Core::Coordinate::z.
Referenced by handle_delete_character(), and login2().
void Pol::Core::send_startup | ( | Network::Client * | client | ) |
Definition at line 202 of file pol.cpp.
References Pol::Network::Client::chr, Pol::Core::UObject::facing, Pol::Core::ULWObject::graphic, Pol::Realms::Realm::height(), Pol::Core::ULWObject::realm, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, Pol::Realms::Realm::width(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by start_client_char().
void Pol::Core::send_stat_locks | ( | Network::Client * | client, |
Mobile::Character * | chr | ||
) |
Definition at line 213 of file statmsg.cpp.
References Pol::Mobile::Character::attribute(), Pol::Core::UoClientGeneral::dexterity, Pol::Network::Client::getversiondetail(), Pol::Core::UoClientGeneral::Mapping::id, Pol::Core::UoClientGeneral::intelligence, Pol::Mobile::AttributeValue::lock(), Pol::Network::VersionDetailStruct::major, networkManager, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, Pol::Core::UoClientGeneral::strength, and Pol::Core::NetworkManager::uoclient_general.
Referenced by send_full_statmsg().
void Pol::Core::send_sysmessage | ( | Network::Client * | client, |
const char * | text, | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 1147 of file ufunc.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send(), SPEECH_MAX_LEN, and TEXTTYPE_NORMAL.
Referenced by add_item_to_stack(), Pol::Mobile::Character::attack(), broadcast(), Pol::Items::Item::builtin_on_use(), Pol::Core::UContainer::builtin_on_use(), CanUseSkill(), Pol::Core::USpell::cast(), Pol::Mobile::Character::check_justice_region_change(), do_cast(), Pol::Core::Spellbook::double_click(), Pol::Items::Item::double_click(), equip_item(), get_item(), Pol::Mobile::handle_attack(), handle_ident_cursor(), handle_open_spellbook(), handle_processed_speech(), handle_rename_char(), Pol::Core::TargetCursor::handle_target_cursor(), handle_use_skill(), Pol::Module::UOExecutorModule::mf_PromptInput(), Pol::Module::UnicodeExecutorModule::mf_RequestInputUC(), Pol::Module::UOExecutorModule::mf_SendSysMessage(), Pol::Module::UnicodeExecutorModule::mf_SendSysMessageUC(), Pol::Module::UOExecutorModule::mf_UseItem(), Pol::Core::LosCheckedTargetCursor::on_target_cursor(), Pol::Core::NoLosCheckedTargetCursor::on_target_cursor(), open_trade_window(), place_item_in_container(), place_item_in_secure_trade_container(), Pol::Core::Spellbook::send_book_old(), send_sysmessage(), SendUnicodeSpeech(), Pol::Core::RepSystem::show_repdata(), Pol::Mobile::Character::showarmor(), start_packetlog(), Pol::Module::OSExecutorModule::start_skill_script(), StartSkillScript(), stop_packetlog(), textcmd_constat(), textcmd_ident(), textcmd_integ_item(), textcmd_log_profile(), textcmd_log_profile_clear(), textcmd_orphans(), textcmd_procs(), textcmd_repdata(), textcmd_singlezone_integ_item(), textcmd_startlog(), textcmd_stoplog(), and textcmd_threads().
void Pol::Core::send_sysmessage | ( | Network::Client * | client, |
const u16 * | wtext, | ||
const char | lang[4], | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 1170 of file ufunc.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send(), SPEECH_MAX_LEN, and TEXTTYPE_NORMAL.
void Pol::Core::send_sysmessage | ( | Network::Client * | client, |
const std::string & | text, | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 1196 of file ufunc.cpp.
References send_sysmessage().
void Pol::Core::send_sysmessage | ( | Network::Client * | client, |
const std::wstring & | wtext, | ||
const char | lang[4], | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 1202 of file ufunc.cpp.
References send_sysmessage(), and SPEECH_MAX_LEN.
void Pol::Core::send_sysmessage_cl | ( | Client * | client, |
unsigned int | cliloc_num, | ||
const u16 * | arguments, | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 26 of file clfunc.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send(), and SPEECH_MAX_LEN.
Referenced by add_candidate(), Pol::Module::EPartyRefObjImp::call_method_id(), Pol::Core::Party::disband(), handle_accept_invite(), handle_add(), handle_decline_invite(), handle_loot_perm(), handle_member_msg(), handle_party_msg(), handle_remove(), handle_remove_member_cursor(), invite_timeout(), Pol::Module::ClilocExecutorModule::mf_SendSysMessageCL(), on_loggon_party(), and send_invite().
void Pol::Core::send_sysmessage_cl_affix | ( | Client * | client, |
unsigned int | cliloc_num, | ||
const char * | affix, | ||
bool | prepend, | ||
const u16 * | arguments, | ||
unsigned short | font, | ||
unsigned short | color | ||
) |
Definition at line 128 of file clfunc.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send(), and SPEECH_MAX_LEN.
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), handle_decline_invite(), invite_timeout(), Pol::Module::PartyExecutorModule::mf_CreateParty(), and send_invite().
bool Pol::Core::send_tip | ( | Network::Client * | client, |
const char * | tipname, | ||
unsigned short | tipnum | ||
) |
Definition at line 22 of file tips.cpp.
References PKTOUT_A6_TYPE_TIP, and Pol::Network::PktHelper::PacketOut< T >::Send().
bool Pol::Core::send_tip | ( | Network::Client * | client, |
const char * | tipname | ||
) |
void Pol::Core::send_tip | ( | Network::Client * | client, |
const std::string & | tiptext | ||
) |
Definition at line 43 of file tips.cpp.
References PKTOUT_A6_TYPE_TIP, and Pol::Network::PktHelper::PacketOut< T >::Send().
Referenced by handle_get_tip(), and Pol::Module::UOExecutorModule::mf_SendStringAsTipWindow().
void Pol::Core::send_trade_container | ( | Network::Client * | client, |
Mobile::Character * | whos, | ||
UContainer * | cont | ||
) |
Definition at line 456 of file dropitem.cpp.
References Pol::Core::UObject::color, do_open_trade_window(), Pol::Core::ULWObject::graphic, Pol::Network::AddItemContainerMsg::Send(), Pol::Core::UObject::serial_ext, and Pol::Items::Item::slot_index().
Referenced by do_open_trade_window().
void Pol::Core::send_trade_statuses | ( | Mobile::Character * | chr | ) |
Definition at line 1014 of file dropitem.cpp.
References Pol::Core::PKTBI_6F::ACTION_STATUS, Pol::Mobile::Character::client, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, Pol::Mobile::Character::trade_accepted(), Pol::Mobile::Character::trade_container(), Pol::Mobile::Character::trading_with, and Pol::Network::transmit().
Referenced by change_trade_status(), and do_place_item_in_secure_trade_container().
Definition at line 38 of file unimod.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send(), and Pol::Core::PKTBI_C2::SERVER_MSGLEN.
Referenced by Pol::Module::UnicodeExecutorModule::mf_RequestInputUC().
void Pol::Core::send_update_hits_to_inrange | ( | Mobile::Character * | chr | ) |
Definition at line 263 of file statmsg.cpp.
References Pol::Core::UoClientGeneral::Mapping::any, Pol::Mobile::Character::client, Pol::Mobile::VitalValue::current_ones(), Pol::Core::UoClientGeneral::hits, Pol::Core::UoClientGeneral::Mapping::id, Pol::Mobile::VitalValue::maximum_ones(), networkManager, Pol::Network::Client::ready, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, transmit_to_others_inrange(), Pol::Core::NetworkManager::uoclient_general, and Pol::Mobile::Character::vital().
Referenced by Pol::Mobile::Character::apply_raw_damage_hundredths(), and Pol::Mobile::Character::heal_damage_hundredths().
Definition at line 776 of file ufunc.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send().
Referenced by Pol::Mobile::Character::check_weather_region_change().
Definition at line 825 of file ufunc.cpp.
References Pol::Network::AOS, Pol::Core::UObject::color, Pol::Core::ULWObject::graphic, Pol::Items::Item::layer, Pol::Network::PktHelper::PacketOut< T >::Send(), send_object_cache(), Pol::Core::UObject::serial_ext, and Pol::Network::Client::UOExpansionFlag.
Referenced by Pol::Core::Spellbook::double_click(), Pol::Module::UOExecutorModule::mf_SendBuyWindow(), Pol::Module::UOExecutorModule::mf_SendOpenSpecialContainer(), and Pol::Module::UOExecutorModule::mf_SendSellWindow().
Definition at line 842 of file ufunc.cpp.
References Pol::Core::UObject::color, Pol::Core::ULWObject::graphic, Pol::Items::Item::layer, send_object_cache_to_inrange(), Pol::Core::UObject::serial_ext, and transmit_to_inrange().
Referenced by Pol::Module::character_race_changer_handler(), equip_item(), Pol::Module::UOExecutorModule::mf_EquipItem(), Pol::Mobile::Character::on_death(), and undo_get_item().
void Pol::Core::SendAOSTooltip | ( | Network::Client * | client, |
UObject * | obj, | ||
bool | vendor_content | ||
) |
Definition at line 93 of file tooltips.cpp.
References CLASS_CHARACTER, Pol::Core::UObject::description(), Pol::Core::ULWObject::isa(), Pol::Items::Item::merchant_description(), Pol::Core::UObject::name(), Pol::Core::UObject::rev(), Pol::Network::PktHelper::PacketOut< T >::Send(), and Pol::Core::UObject::serial_ext.
Referenced by handle_msg_BF(), handle_se_object_list(), Pol::Module::send_vendorsell(), and Pol::Module::send_vendorwindow_contents().
void Pol::Core::sendCharProfile | ( | Character * | chr, |
Character * | of_who, | ||
const char * | title, | ||
const u16 * | utext, | ||
const u16 * | etext | ||
) |
Definition at line 2139 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, and SPEECH_MAX_LEN.
Referenced by Pol::Module::UOExecutorModule::mf_SendCharProfile().
void Pol::Core::SendUnicodeSpeech | ( | Network::Client * | client, |
PKTIN_AD * | msgin, | ||
u16 * | wtext, | ||
size_t | wtextlen, | ||
char * | ntext, | ||
size_t | ntextlen, | ||
Bscript::ObjArray * | speechtokens | ||
) |
Definition at line 212 of file speech.cpp.
References Pol::Mobile::Character::can_be_heard_as_ghost(), cfBEu16, Pol::Network::Client::chr, Pol::Core::NetworkManager::clients, Pol::Core::PKTIN_AD::color, Pol::Core::ServSpecOpt::core_sends_guildmsgs, ctBEu16, Pol::Mobile::Character::dead(), Pol::Core::PKTIN_AD::font, Pol::Core::ULWObject::graphic, Pol::Mobile::Character::guildid(), Pol::Mobile::Character::hidden(), INFO_PRINT, Pol::Core::WorldIterator< Filter >::InRange(), Pol::Core::PKTIN_AD::lang, Pol::Mobile::Character::last_textcolor(), Pol::Core::UObject::name(), networkManager, process_command(), process_tildecommand(), Pol::Clib::random_int(), Pol::Network::Client::ready, Pol::Core::ULWObject::realm, sayto_listening_points(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_sysmessage(), Pol::Core::UObject::serial_ext, settingsManager, Pol::Core::ServSpecOpt::speech_range, Pol::Mobile::Character::squelched(), Pol::Core::SettingsManager::ssopt, Pol::Plib::systemstate, TEXTTYPE_WHISPER, TEXTTYPE_YELL, Pol::Core::PKTIN_AD::type, Pol::Mobile::Character::unhide(), Pol::Core::ServSpecOpt::whisper_range, Pol::Core::PKTIN_AD::wtext, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ServSpecOpt::yell_range.
Referenced by UnicodeSpeechHandler().
bool Pol::Core::server_applies | ( | Network::Client * | client, |
int | i | ||
) |
Definition at line 83 of file login.cpp.
References acct_check(), Pol::Network::Client::ipaddr, networkManager, and Pol::Core::NetworkManager::servers.
Referenced by loginserver_login().
void Pol::Core::set_watch_vars | ( | ) |
Definition at line 43 of file settings.cpp.
References Pol::Core::Watch::combat, Pol::Clib::FileExists(), INFO_PRINT, Pol::Clib::ConfigFile::open(), Pol::Core::Watch::profile_scripts, Pol::Clib::ConfigFile::readraw(), Pol::Clib::ConfigElem::remove_bool(), Pol::Plib::systemstate, and Pol::Core::SettingsManager::watch.
Referenced by load_data().
void Pol::Core::SetCharacterWorldPosition | ( | Mobile::Character * | chr, |
Realms::WorldChangeReason | reason | ||
) |
Definition at line 128 of file uworld.cpp.
References Pol::Realms::Realm::add_mobile(), Pol::Core::Zone::characters, CLASS_NPC, find_missing_char_in_zone(), getzone(), Pol::Core::ULWObject::isa(), Pol::Core::Zone::npcs, passert, Pol::Core::ULWObject::realm, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Testing::add_npc(), char_select(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), and read_npc().
void Pol::Core::SetCurrentCharSerialNumber | ( | u32 | serial | ) |
Definition at line 101 of file ufunc.cpp.
References Pol::Core::StateManager::charserialnumber, and stateManager.
Referenced by read_data().
void Pol::Core::SetCurrentItemSerialNumber | ( | u32 | serial | ) |
Definition at line 95 of file ufunc.cpp.
References Pol::Core::StateManager::itemserialnumber, and stateManager.
Referenced by read_data().
void Pol::Core::SetItemWorldPosition | ( | Items::Item * | item | ) |
void Pol::Core::setrealm | ( | Item * | item, |
void * | arg | ||
) |
Definition at line 1571 of file ufunc.cpp.
References Pol::Core::ULWObject::realm.
Referenced by drop_item_on_ground(), Pol::Module::UOExecutorModule::internal_MoveContainer(), Pol::Multi::UBoat::realm_changed(), and Pol::Mobile::Character::realm_changed().
void Pol::Core::setrealmif | ( | Item * | item, |
void * | arg | ||
) |
Definition at line 1577 of file ufunc.cpp.
References Pol::Realms::Realm::baserealm, and Pol::Core::ULWObject::realm.
Referenced by Pol::Core::StorageArea::on_delete_realm().
void Pol::Core::SetRegionLightLevel | ( | LightRegion * | lightregion, |
int | lightlevel | ||
) |
Definition at line 1676 of file ufunc.cpp.
References Pol::Network::Client::chr, Pol::Core::NetworkManager::clients, Pol::Core::ServSpecOpt::default_light_level, gamestate, Pol::Network::Client::gd, Pol::Core::RegionGroup< T >::getregion(), Pol::Core::GameState::lightdef, lightlevel(), Pol::Core::LightRegion::lightlevel, Pol::Network::ClientGameData::lightlevel, Pol::Core::WeatherRegion::lightoverride, networkManager, read_gameclock(), Pol::Network::Client::ready, Pol::Core::ULWObject::realm, Pol::Network::PktHelper::PacketOut< T >::Send(), settingsManager, Pol::Core::SettingsManager::ssopt, VALID_LIGHTLEVEL(), Pol::Network::ClientGameData::weather_region, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Module::UOExecutorModule::mf_SetRegionLightLevel().
void Pol::Core::SetRegionWeatherLevel | ( | WeatherRegion * | weatherregion, |
unsigned | type, | ||
unsigned | severity, | ||
unsigned | aux, | ||
int | lightoverride | ||
) |
Definition at line 1747 of file ufunc.cpp.
References Pol::Core::WeatherRegion::aux, Pol::Core::NetworkManager::clients, Pol::Core::WeatherRegion::lightoverride, networkManager, Pol::Core::WeatherRegion::severity, update_weatherregion(), and Pol::Core::WeatherRegion::weathertype.
Referenced by Pol::Module::UOExecutorModule::mf_SetRegionWeatherLevel().
void Pol::Core::SetSysTrayPopupText | ( | const char * | text | ) |
Definition at line 245 of file polservice.cpp.
References ID_UPDATE_NOTIFYDATA.
Referenced by CoreSetSysTrayToolTip().
void Pol::Core::setup_update_rpm | ( | void | ) |
Definition at line 142 of file tasks.cpp.
References Pol::Core::ProfileVars::last_cpu_total, Pol::Core::ProfileVars::last_cputime, Pol::Core::StateManager::profilevars, and stateManager.
Referenced by start_tasks().
bool Pol::Core::should_switch_realm | ( | size_t | index, |
unsigned | x, | ||
unsigned | y, | ||
unsigned * | gridx, | ||
unsigned * | gridy | ||
) |
Definition at line 217 of file decay.cpp.
References gamestate, Pol::Realms::Realm::grid_height(), Pol::Realms::Realm::grid_width(), and Pol::Core::GameState::Realms.
Referenced by decay_single_thread().
bool Pol::Core::should_write_data | ( | ) |
Definition at line 1015 of file uimport.cpp.
References Pol::Clib::passert_nosave, Pol::Clib::passert_shutdown_due_to_assertion, and Pol::Plib::systemstate.
Referenced by save_incremental(), write_data(), and Pol::xmain_inner().
void Pol::Core::show_repdata | ( | Mobile::Character * | looker, |
Mobile::Character * | mob | ||
) |
Definition at line 306 of file textcmd.cpp.
References Pol::Mobile::Character::client, and Pol::Core::RepSystem::show_repdata().
void Pol::Core::ShutdownSystemTrayHandling | ( | ) |
Definition at line 292 of file polservice.cpp.
References DWORD(), ID_SHUTDOWN, and INFO_PRINT.
Referenced by Pol::xmain_inner().
void Pol::Core::signal_catch_thread | ( | ) |
Definition at line 110 of file polsig.cpp.
References ERROR_PRINT.
Referenced by Pol::Module::UOExecutorModule::mf_Shutdown(), Pol::Core::PolSig::PolSig(), and threadstatus_thread().
void Pol::Core::sigpipe_handler | ( | int | x | ) |
Definition at line 48 of file polsig.cpp.
References INFO_PRINT.
void Pol::Core::singleclick | ( | Network::Client * | client, |
u32 | serial | ||
) |
Definition at line 92 of file sngclick.cpp.
References Pol::Network::Client::chr, Pol::Core::ServSpecOpt::core_handled_tags, create_nametags(), find_character(), find_legal_singleclick_item(), inrange(), Pol::Mobile::Character::is_concealed_from_me(), IsCharacter(), Pol::Core::UObject::name(), passert_always, send_nametext(), send_objdesc(), Pol::Core::ULWObject::serial, settingsManager, and Pol::Core::SettingsManager::ssopt.
Referenced by handle_singleclick(), and Pol::Module::UOExecutorModule::mf_SingleClick().
void Pol::Core::skillrequest | ( | Network::Client * | client, |
u32 | serial | ||
) |
Definition at line 124 of file irequest.cpp.
References Pol::Network::Client::chr, Pol::Core::ScriptDef::exists(), find_script2(), ref_ptr< T >::get(), Pol::Core::ScriptDef::quickconfig(), send_skillmsg(), Pol::Core::ULWObject::serial, Pol::Mobile::Character::start_script(), and Pol::Plib::systemstate.
Referenced by srequest().
void Pol::Core::slurp | ( | const char * | filename, |
const char * | tags, | ||
int | sysfind_flags = 0 |
||
) |
Definition at line 363 of file uimport.cpp.
References Pol::Core::Storage::create_area(), Pol::Tools::Timer< printer >::ellapsed(), Pol::Clib::FileExists(), gamestate, Pol::Core::GameState::global_properties, INFO_PRINT, Pol::Core::StorageArea::load_item(), Pol::Clib::ConfigFile::read(), read_character(), read_global_item(), read_multi(), read_npc(), read_shadow_realms(), read_system_vars(), Pol::Tools::Timer< printer >::stop(), Pol::Core::GameState::storage, Pol::Plib::systemstate, Pol::Clib::ConfigElemBase::type(), and Pol::Clib::ConfigElemBase::type_is().
Referenced by read_incremental_saves(), read_items_dat(), read_multis_dat(), read_npcequip_dat(), read_npcs_dat(), read_objects_dat(), read_pcequip_dat(), read_pcs_dat(), and read_pol_dat().
void Pol::Core::SpeechHandler | ( | Network::Client * | client, |
PKTIN_03 * | mymsg | ||
) |
Definition at line 177 of file speech.cpp.
References cfBEu16, Pol::Core::PKTIN_03::color, Pol::Core::PKTIN_03::font, handle_processed_speech(), Pol::Core::PKTIN_03::msglen, SPEECH_MAX_LEN, Pol::Core::PKTIN_03::text, and Pol::Core::PKTIN_03::type.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::sql_service_thread_stub | ( | ) |
Definition at line 449 of file sqlscrobj.cpp.
References networkManager, POLLOG, and Pol::Core::NetworkManager::sql_service.
Referenced by start_sql_service().
void Pol::Core::srequest | ( | Network::Client * | client, |
PKTIN_34 * | msg | ||
) |
Definition at line 145 of file irequest.cpp.
References cfBEu32, Pol::Network::Client::chr, find_character(), Pol::Mobile::Character::is_concealed_from_me(), Pol::Mobile::Character::is_visible_to_me(), pol_distance(), Pol::Core::ULWObject::serial, Pol::Core::PKTIN_34::serial2, skillrequest(), statrequest(), Pol::Core::PKTIN_34::stattype, STATTYPE_SKILLWINDOW, STATTYPE_STATWINDOW, Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
void Pol::Core::standheight | ( | MOVEMODE | movemode, |
StaticList & | statics, | ||
unsigned short | x, | ||
unsigned short | y, | ||
short | oldz, | ||
bool * | result_out, | ||
short * | newz_out | ||
) |
Definition at line 27 of file uofile06.cpp.
References Pol::Core::USTRUCT_TILE::FLAG_BLOCKING, Pol::Core::USTRUCT_TILE::FLAG_FLOOR, Pol::Core::USTRUCT_TILE::FLAG_HALF_HEIGHT, Pol::Core::USTRUCT_TILE::FLAG_PLATFORM, Pol::Core::StaticRec::flags, flags_standable(), flags_swimmable(), getmapinfo(), Pol::Core::StaticRec::graphic, Pol::Core::StaticRec::height, INFO_PRINT, Pol::Core::USTRUCT_MAPINFO::landtile, landtile_uoflags(), MOVEMODE_LAND, MOVEMODE_SEA, static_debug_on, and Pol::Core::StaticRec::z.
Referenced by Pol::UoTool::contour(), and Pol::Realms::Realm::walkheight().
void Pol::Core::start_client_char | ( | Network::Client * | client | ) |
Definition at line 238 of file pol.cpp.
References Pol::Multi::UMulti::as_house(), Pol::Mobile::Character::check_region_changes(), Pol::Mobile::Character::check_weather_region_change(), Pol::Network::Client::chr, Pol::Mobile::Character::clear_gotten_item(), Pol::Mobile::Character::connected(), Pol::Core::ServSpecOpt::core_sends_season, gamestate, Pol::Network::Client::gd, Pol::Core::RegionGroup< T >::getregion(), Pol::Network::ClientGameData::justice_region, Pol::Core::GameState::justicedef, Pol::Mobile::Character::lastx, Pol::Mobile::Character::lasty, Pol::Mobile::Character::lastz, login_complete(), Pol::Network::ClientGameData::music_region, Pol::Core::GameState::musicdef, on_loggon_party(), Pol::Network::Client::pause(), Pol::Mobile::Character::position_changed(), Pol::Network::Client::ready, Pol::Core::ULWObject::realm, Pol::Multi::UMulti::register_object(), Pol::Mobile::Character::registered_house, Pol::Network::Client::restart(), Pol::Mobile::Character::send_buffs(), send_goxyz(), Pol::Mobile::Character::send_highlight(), send_map_difs(), send_objects_newly_inrange(), send_owncreate(), send_realm_change(), send_season_info(), send_startup(), Pol::Mobile::Character::send_warmode(), Pol::Core::ULWObject::serial, settingsManager, Pol::Core::SettingsManager::ssopt, system_find_multi(), Pol::Mobile::Character::tellmove(), Pol::Multi::UMulti::unregister_object(), Pol::Multi::UHouse::walk_on(), Pol::Realms::Realm::walkheight(), Pol::Network::ClientGameData::weather_region, Pol::Core::GameState::weatherdef, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by char_select(), ClientCreateChar(), ClientCreateChar70160(), and ClientCreateCharKR().
void Pol::Core::start_gameclock | ( | ) |
The functions below deal with reading and updating the gameclock. The state is protected by a mutex.
Starts the game clock based on the global cprop "gameclock".
Definition at line 27 of file gameclck.cpp.
References gameclock, gamestate, Pol::Core::GameState::global_properties, ISTRINGSTREAM, and poltime().
Referenced by read_data().
bool Pol::Core::start_http_script | ( | Clib::Socket & | sck, |
const std::string & | page, | ||
Plib::Package * | pkg, | ||
const std::string & | file_ecl, | ||
const std::string & | query_string | ||
) |
Definition at line 403 of file polwww.cpp.
References Pol::Bscript::Executor::addModule(), ref_ptr< T >::clear(), create_script_executor(), ERROR_PRINT, Pol::Core::ScriptDef::exists(), find_script2(), ref_ptr< T >::get(), http_not_found(), http_writeline(), Pol::Core::PolLock2::lock(), Pol::Core::ScriptDef::name(), Pol::Bscript::Executor::NONE, POLLOG, Pol::Core::ScriptDef::quickconfig(), Pol::Module::HttpExecutorModule::read_query_ip(), Pol::Module::HttpExecutorModule::read_query_string(), schedule_executor(), Pol::Module::HttpExecutorModule::sck_, Pol::Bscript::Executor::setDebugLevel(), Pol::Bscript::Executor::setProgram(), Pol::Plib::systemstate, and Pol::Core::PolLock2::unlock().
Referenced by http_func().
void Pol::Core::start_http_server | ( | ) |
Definition at line 898 of file polwww.cpp.
References http_thread(), and Pol::threadhelp::start_thread().
Referenced by start_threads().
void Pol::Core::start_packetlog | ( | Mobile::Character * | looker, |
Mobile::Character * | mob | ||
) |
Definition at line 318 of file textcmd.cpp.
References Pol::Network::Client::_fpLog_lock, Pol::Network::Client::acct, Pol::Mobile::Character::client, Pol::Mobile::Character::connected(), Pol::Network::Client::fpLog, Pol::Accounts::Account::name(), Pol::Core::UObject::name(), OPEN_FLEXLOG, and send_sysmessage().
void Pol::Core::start_pol_clocks | ( | ) |
Definition at line 111 of file polclock.cpp.
References start_polclock(), and start_poltime().
Referenced by Pol::xmain_inner().
void Pol::Core::start_polclock | ( | ) |
Definition at line 55 of file polclock.cpp.
References getCurrentPolClockSeconds(), and polclock_base().
Referenced by start_pol_clocks().
void Pol::Core::start_poltime | ( | ) |
Definition at line 88 of file polclock.cpp.
References poltime_base().
Referenced by start_pol_clocks().
void Pol::Core::start_script | ( | const char * | filename, |
Bscript::BObjectImp * | param0, | ||
Bscript::BObjectImp * | param1 | ||
) |
Definition at line 150 of file scrsched.cpp.
References Pol::Bscript::Executor::addModule(), Pol::Bscript::UninitObject::create(), create_script_executor(), ERROR_PRINT, find_script(), ref_ptr< T >::get(), Pol::Bscript::Executor::pushArg(), Pol::Core::ScriptScheduler::schedule(), scriptScheduler, and Pol::Bscript::Executor::setProgram().
Referenced by Pol::Core::DebugContext::cmd_start(), Pol::Items::Item::create(), Pol::Multi::CustomHousesCommit(), Pol::Core::ConsoleCommand::exec_console_cmd(), Pol::Network::AuxClientThread::init(), Pol::Mobile::NPC::on_death(), Pol::Mobile::Character::on_death(), Pol::Multi::UBoat::readProperties(), Pol::Module::OSExecutorModule::run_script(), Pol::Multi::UBoat::scripted_create(), and Pol::Module::OSExecutorModule::start_script().
Module::UOExecutorModule * Pol::Core::start_script | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param | ||
) |
Definition at line 179 of file scrsched.cpp.
References Pol::Bscript::Executor::addModule(), Pol::Bscript::UninitObject::create(), create_script_executor(), ERROR_PRINT, find_script2(), ref_ptr< T >::get(), Pol::Core::ScriptDef::name(), Pol::Bscript::Executor::pushArg(), Pol::Core::ScriptScheduler::schedule(), scriptScheduler, and Pol::Bscript::Executor::setProgram().
Module::UOExecutorModule * Pol::Core::start_script | ( | const ScriptDef & | script, |
Bscript::BObjectImp * | param0, | ||
Bscript::BObjectImp * | param1, | ||
Bscript::BObjectImp * | param2, | ||
Bscript::BObjectImp * | param3 | ||
) |
Definition at line 212 of file scrsched.cpp.
References Pol::Bscript::Executor::addModule(), Pol::Bscript::UninitObject::create(), create_script_executor(), ERROR_PRINT, find_script2(), ref_ptr< T >::get(), Pol::Core::ScriptDef::name(), Pol::Bscript::Executor::pushArg(), Pol::Core::ScriptScheduler::schedule(), scriptScheduler, and Pol::Bscript::Executor::setProgram().
Module::UOExecutorModule * Pol::Core::start_script | ( | ref_ptr< Bscript::EScriptProgram > | program, |
Bscript::BObjectImp * | param | ||
) |
Definition at line 258 of file scrsched.cpp.
References Pol::Bscript::Executor::addModule(), Pol::Bscript::UninitObject::create(), create_script_executor(), ref_ptr< T >::get(), Pol::Bscript::Executor::pushArg(), Pol::Core::ScriptScheduler::schedule(), scriptScheduler, and Pol::Bscript::Executor::setProgram().
void Pol::Core::start_sql_service | ( | ) |
Definition at line 501 of file sqlscrobj.cpp.
References sql_service_thread_stub(), and Pol::threadhelp::start_thread().
Referenced by start_threads().
void Pol::Core::start_tasks | ( | ) |
Definition at line 335 of file tasks.cpp.
References gamestate, Pol::Core::GameState::regen_resources_task, Pol::Core::GameState::regen_stats_task, Pol::Core::GameState::reload_accounts_task, Pol::Core::GameState::reload_pol_cfg_task, setup_update_rpm(), Pol::Core::GameState::update_rpm_task, and Pol::Core::GameState::update_sysload_task.
Referenced by Pol::xmain_inner().
bool Pol::Core::start_textcmd_script | ( | Network::Client * | client, |
const char * | text, | ||
const u16 * | wtext = nullptr , |
||
const char * | lang = nullptr |
||
) |
Definition at line 564 of file textcmd.cpp.
References Pol::Network::Client::chr, Pol::Mobile::Character::cmdlevel(), Pol::Core::GameState::cmdlevels, Pol::Module::UOExecutorModule::controller_, convertUCtoArray(), create_script_executor(), ERROR_PRINT, Pol::Core::ScriptDef::exists(), find_script2(), gamestate, ref_ptr< T >::get(), Pol::Clib::mkupper(), Pol::Core::ScriptDef::quickconfig(), schedule_executor(), Pol::Core::CmdLevel::searchlist, and Pol::Plib::systemstate.
Referenced by process_command().
void Pol::Core::start_threads | ( | ) |
Definition at line 807 of file pol.cpp.
References checkpoint(), Pol::Network::ClientTransmitThread(), combined_thread(), debug_listen_thread(), Pol::Core::ServSpecOpt::decay_items, gamestate, Pol::Core::GameState::Realms, reap_thread(), Pol::threadhelp::ThreadMap::Register(), scripts_thread(), settingsManager, Pol::Core::SettingsManager::ssopt, start_http_server(), start_sql_service(), Pol::threadhelp::start_thread(), Pol::Plib::systemstate, tasks_thread(), Pol::threadhelp::thread_pid(), Pol::threadhelp::threadmap, and threadstatus_thread().
Referenced by Pol::xmain_inner().
void Pol::Core::start_uo_client_listeners | ( | void | ) |
Definition at line 164 of file uolisten.cpp.
References networkManager, Pol::Core::UoClientListener::port, Pol::threadhelp::start_thread(), Pol::Clib::tostring(), uo_client_listener_thread(), and Pol::Core::NetworkManager::uoclient_listeners.
Referenced by Pol::xmain_inner().
bool Pol::Core::StartSkillScript | ( | Network::Client * | client, |
const Mobile::Attribute * | attrib | ||
) |
Definition at line 59 of file useskill.cpp.
References Pol::Core::ScriptDef::c_str(), Pol::Core::PolConfig::cache_interactive_scripts, Pol::Network::Client::chr, Pol::Plib::SystemState::config, Pol::Mobile::Attribute::delay_seconds, find_script2(), ref_ptr< T >::get(), Pol::Mobile::Character::hidden(), poltime(), Pol::Mobile::Attribute::script_, send_sysmessage(), Pol::Mobile::Character::start_skill_script(), Pol::Plib::systemstate, Pol::Mobile::Character::unhide(), and Pol::Mobile::Attribute::unhides.
Referenced by handle_use_skill().
void Pol::Core::staticsmax | ( | ) |
Definition at line 17 of file uofile05.cpp.
References idxrec, INFO_PRINT, Pol::Core::USTRUCT_IDX::length, and sidxfile.
Referenced by Pol::UoTool::UoToolMain::main().
void Pol::Core::statrequest | ( | Network::Client * | client, |
u32 | serial | ||
) |
Definition at line 39 of file irequest.cpp.
References Pol::Network::Client::chr, find_character(), inrange(), Pol::Mobile::Character::is_visible_to_me(), send_full_statmsg(), send_short_statmsg(), and Pol::Core::ULWObject::serial.
Referenced by srequest().
void Pol::Core::step_scripts | ( | polclock_t * | clocksleft, |
bool * | pactivity | ||
) |
Definition at line 133 of file scrsched.cpp.
References check_blocked(), Pol::Core::ScriptScheduler::getRunlist(), run_ready(), scriptScheduler, and THREAD_CHECKPOINT.
Referenced by combined_thread(), scripts_thread(), and Pol::xmain_inner().
void Pol::Core::stop_gameclock | ( | ) |
Stops the game clock and saves the current value into "gameclock".
Definition at line 52 of file gameclck.cpp.
References update_gameclock().
Referenced by Pol::xmain_inner().
void Pol::Core::stop_packetlog | ( | Mobile::Character * | looker, |
Mobile::Character * | mob | ||
) |
Definition at line 369 of file textcmd.cpp.
References Pol::Network::Client::_fpLog_lock, Pol::Mobile::Character::client, CLOSE_FLEXLOG, Pol::Mobile::Character::connected(), FLEXLOG, Pol::Network::Client::fpLog, Pol::Clib::localtime(), Pol::Core::UObject::name(), and send_sysmessage().
UACTION Pol::Core::str_to_action | ( | Clib::ConfigElem & | elem, |
const std::string & | str | ||
) |
Definition at line 60 of file bowsalut.cpp.
References Pol::Clib::ConfigElem::throw_error(), and UACTION_IS_VALID().
Referenced by load_anim_xlate_cfg().
void Pol::Core::subtract_amount_from_item | ( | Item * | item, |
unsigned short | amount | ||
) |
Definition at line 1584 of file ufunc.cpp.
References destroy_item(), Pol::Items::Item::getamount(), Pol::Items::Item::subamount(), update_item_to_inrange(), and UpdateCharacterWeight().
Referenced by Pol::Items::UWeapon::consume_projectile(), Pol::Core::USpell::consume_reagents(), Pol::Core::UContainer::consume_sumof_objtype_noninuse(), and Pol::Module::UOExecutorModule::mf_SubtractAmount().
Items::Item * Pol::Core::system_find_item | ( | u32 | serial | ) |
Definition at line 41 of file fnsearch.cpp.
References Pol::Core::ObjectHash::Find(), Pol::Core::ULWObject::isitem(), Pol::Core::ObjectStorageManager::objecthash, objStorageManager, and Pol::Core::ULWObject::orphan().
Referenced by find_toplevel_item(), getItemParam(), handle_msg_BF(), insert_deferred_items(), Pol::Core::StorageArea::load_item(), Pol::Module::UOExecutorModule::mf_SystemFindObjectBySerial(), Pol::Mobile::Character::printProperties(), read_global_item(), read_item(), read_multi(), Pol::Multi::UBoat::readProperties(), and Pol::Mobile::Character::script_method_id().
Mobile::Character * Pol::Core::system_find_mobile | ( | u32 | serial | ) |
Definition at line 32 of file fnsearch.cpp.
References Pol::Core::ObjectHash::Find(), Pol::Core::ULWObject::ismobile(), Pol::Core::ObjectStorageManager::objecthash, objStorageManager, and Pol::Core::ULWObject::orphan().
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), Pol::Mobile::Character::clear_my_aggressors(), Pol::Mobile::Character::clear_my_lawful_damagers(), Pol::Core::Party::disband(), find_character(), Pol::Module::EPartyRefObjImp::get_member_id(), Pol::Module::EGuildRefObjImp::get_member_id(), Pol::Mobile::Character::GetAggressorTo(), getCharacterOrClientParam(), getCharacterParam(), Pol::Mobile::Character::GetLawFullyDamaged(), Pol::Module::getPartyParam(), Pol::Mobile::Character::GetReportables(), handle_accept_invite(), handle_add(), handle_add_member_cursor(), handle_char_profile_request(), handle_decline_invite(), handle_member_msg(), handle_msg_BF(), handle_party_msg(), handle_remove(), handle_remove_member_cursor(), insert_deferred_items(), invite_timeout(), Pol::Module::UOExecutorModule::mf_SystemFindObjectBySerial(), Pol::Core::Party::on_mana_changed(), Pol::Core::Party::on_stam_changed(), Pol::Core::Party::printOn(), read_global_item(), Pol::Mobile::Character::readCommonProperties(), Pol::Mobile::NPC::readNpcProperties(), Pol::Multi::UBoat::readProperties(), Pol::Core::Party::register_with_members(), Pol::Core::Guild::registerWithMembers(), Pol::Core::Party::send_member_list(), 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 Pol::Core::Guild::update_online_members().
Multi::UMulti * Pol::Core::system_find_multi | ( | u32 | serial | ) |
Definition at line 50 of file fnsearch.cpp.
References Pol::Core::ObjectHash::Find(), Pol::Core::ULWObject::ismulti(), Pol::Core::ObjectStorageManager::objecthash, objStorageManager, and Pol::Core::ULWObject::orphan().
Referenced by Pol::Network::ClientGameData::clear(), Pol::Mobile::Character::CustomHousingMove(), Pol::Mobile::NPC::destroy(), Pol::Mobile::Character::destroy(), drop_item(), drop_item_v2(), Pol::Multi::UHouse::FindWorkingHouse(), getMultiParam(), getUBoatParam(), handle_msg_BF(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), Pol::Mobile::Character::move(), move_character_to(), Pol::Core::LosCheckedTargetCursor::on_target_cursor(), Pol::Core::NoLosCheckedTargetCursor::on_target_cursor(), read_multi(), start_client_char(), and Pol::Realms::Realm::walkheight().
Definition at line 23 of file fnsearch.cpp.
References Pol::Core::ObjectHash::Find(), Pol::Core::ObjectStorageManager::objecthash, objStorageManager, and Pol::Core::ULWObject::orphan().
Referenced by Pol::Module::handle_coord_cursor(), handle_msg_BF(), handle_se_object_list(), Pol::Core::TargetCursor::handle_target_cursor(), and Pol::Core::NoLosUObjectCursor::on_target_cursor().
void Pol::Core::SystemTrayDialogThread | ( | void * | ) |
Definition at line 214 of file polservice.cpp.
References BOOL(), DialogProc(), and IDD_DIALOG1.
Referenced by InitializeSystemTrayHandling().
void Pol::Core::tasks_thread | ( | void | ) |
Definition at line 527 of file pol.cpp.
References check_scheduled_tasks(), Pol::Clib::exit_signalled, INC_PROFILEVAR, passert, polclock(), polclock_checkin(), POLLOG, polticks_t_to_ms(), restart_all_clients(), send_pulse(), tasks_thread_sleep(), THREAD_CHECKPOINT, and TRACEBUF_ADDELEM.
Referenced by start_threads().
void Pol::Core::tasks_thread_sleep | ( | unsigned int | millis | ) |
Definition at line 237 of file polsem.cpp.
References calc_abs_timeout().
Referenced by polsem_unlock(), and tasks_thread().
void Pol::Core::test_decode | ( | const char * | page, |
bool | result_expected, | ||
Plib::Package * | pkg_expected, | ||
const char * | filename_expected, | ||
const char * | pagetype_expected, | ||
const char * | redirect_to_expected | ||
) |
Definition at line 780 of file polwww.cpp.
References decode_page(), and passert_always.
Referenced by http_thread().
void Pol::Core::test_decode | ( | ) |
Definition at line 805 of file polwww.cpp.
void Pol::Core::textcmd_constat | ( | Network::Client * | client | ) |
Definition at line 471 of file textcmd.cpp.
References check_single_zone_item_integrity(), Pol::Core::NetworkManager::clients, networkManager, OSTRINGSTREAM, OSTRINGSTREAM_STR, and send_sysmessage().
Referenced by process_command().
void Pol::Core::textcmd_flag1 | ( | Network::Client * | client, |
const char * | text | ||
) |
Definition at line 185 of file textcmd.cpp.
References Pol::Network::Client::chr, Pol::Core::WorldIterator< Filter >::InVisualRange(), and tmp_flag1.
Referenced by process_command().
void Pol::Core::textcmd_flag2 | ( | Network::Client * | client, |
const char * | text | ||
) |
Definition at line 193 of file textcmd.cpp.
References Pol::Network::Client::chr, Pol::Core::WorldIterator< Filter >::InVisualRange(), and tmp_flag2.
Referenced by process_command().
void Pol::Core::textcmd_heapcheck | ( | Network::Client * | ) |
Definition at line 459 of file textcmd.cpp.
References PrintAllocationData(), and Pol::Clib::PrintHeapData().
Referenced by process_command().
void Pol::Core::textcmd_ident | ( | Network::Client * | client | ) |
Definition at line 226 of file textcmd.cpp.
References gamestate, Pol::Core::Cursors::ident_cursor, Pol::Core::TargetCursor::send_object_cursor(), send_sysmessage(), and Pol::Core::GameState::target_cursors.
Referenced by process_command().
void Pol::Core::textcmd_integ_chr | ( | Network::Client * | ) |
Definition at line 509 of file textcmd.cpp.
References check_character_integrity().
Referenced by process_command().
void Pol::Core::textcmd_integ_item | ( | Network::Client * | client | ) |
Definition at line 500 of file textcmd.cpp.
References check_character_integrity(), check_item_integrity(), and send_sysmessage().
Referenced by process_command().
void Pol::Core::textcmd_list_crit_scripts | ( | Network::Client * | ) |
Definition at line 432 of file textcmd.cpp.
References list_crit_scripts().
Referenced by process_command().
void Pol::Core::textcmd_list_scripts | ( | Network::Client * | ) |
Definition at line 427 of file textcmd.cpp.
References list_crit_scripts(), and list_scripts().
Referenced by process_command().
void Pol::Core::textcmd_listarmor | ( | Network::Client * | client | ) |
Definition at line 232 of file textcmd.cpp.
References Pol::Network::Client::chr, and Pol::Mobile::Character::showarmor().
Referenced by process_command().
void Pol::Core::textcmd_log_profile | ( | Network::Client * | client | ) |
Definition at line 447 of file textcmd.cpp.
References log_all_script_cycle_counts(), and send_sysmessage().
Referenced by process_command().
void Pol::Core::textcmd_log_profile_clear | ( | Network::Client * | client | ) |
Definition at line 453 of file textcmd.cpp.
References log_all_script_cycle_counts(), and send_sysmessage().
Referenced by process_command().
void Pol::Core::textcmd_orphans | ( | Network::Client * | client | ) |
Definition at line 414 of file textcmd.cpp.
References list_scripts(), OSTRINGSTREAM, OSTRINGSTREAM_STR, send_sysmessage(), stateManager, Pol::Core::UObjCount::unreaped_orphans, Pol::Core::UObjCount::uobj_count_echrref, and Pol::Core::StateManager::uobjcount.
Referenced by process_command().
void Pol::Core::textcmd_procs | ( | Network::Client * | client | ) |
Definition at line 436 of file textcmd.cpp.
References Pol::Clib::decint(), Pol::Core::ScriptScheduler::getHoldlist(), Pol::Core::ScriptScheduler::getRunlist(), scriptScheduler, and send_sysmessage().
Referenced by process_command().
void Pol::Core::textcmd_repdata | ( | Network::Client * | client | ) |
Definition at line 312 of file textcmd.cpp.
References gamestate, Pol::Core::Cursors::repdata_cursor, Pol::Core::TargetCursor::send_object_cursor(), send_sysmessage(), and Pol::Core::GameState::target_cursors.
Referenced by process_command().
void Pol::Core::textcmd_resendchars | ( | Network::Client * | client | ) |
Definition at line 201 of file textcmd.cpp.
References Pol::Network::Client::chr, and Pol::Core::WorldIterator< Filter >::InVisualRange().
Referenced by process_command().
void Pol::Core::textcmd_shutdown | ( | Network::Client * | ) |
Definition at line 208 of file textcmd.cpp.
References Pol::Clib::exit_signalled.
Referenced by process_command().
void Pol::Core::textcmd_singlezone_integ_item | ( | Network::Client * | client | ) |
Definition at line 488 of file textcmd.cpp.
References check_item_integrity(), check_single_zone_item_integrity(), Pol::Network::Client::chr, Pol::Core::ULWObject::realm, send_sysmessage(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and zone_convert().
Referenced by process_command().
void Pol::Core::textcmd_startlog | ( | Network::Client * | client | ) |
Definition at line 341 of file textcmd.cpp.
References Pol::Network::Client::_fpLog_lock, Pol::Network::Client::acct, Pol::Mobile::Character::can_plogany(), Pol::Network::Client::chr, Pol::Network::Client::fpLog, gamestate, Pol::Accounts::Account::name(), OPEN_FLEXLOG, Pol::Core::TargetCursor::send_object_cursor(), send_sysmessage(), Pol::Core::Cursors::startlog_cursor, and Pol::Core::GameState::target_cursors.
Referenced by process_command(), and send_inrange_multis().
void Pol::Core::textcmd_stoplog | ( | Network::Client * | client | ) |
Definition at line 389 of file textcmd.cpp.
References Pol::Network::Client::_fpLog_lock, Pol::Mobile::Character::can_plogany(), Pol::Network::Client::chr, CLOSE_FLEXLOG, FLEXLOG, Pol::Network::Client::fpLog, gamestate, Pol::Clib::localtime(), Pol::Core::TargetCursor::send_object_cursor(), send_sysmessage(), Pol::Core::Cursors::stoplog_cursor, and Pol::Core::GameState::target_cursors.
Referenced by process_command(), and send_inrange_multis().
void Pol::Core::textcmd_threads | ( | Network::Client * | client | ) |
Definition at line 465 of file textcmd.cpp.
References Pol::threadhelp::child_threads, Pol::Clib::decint(), and send_sysmessage().
Referenced by process_command().
const char * Pol::Core::TextTypeToString | ( | u8 | texttype | ) |
Definition at line 33 of file listenpt.cpp.
References TEXTTYPE_EMOTE, TEXTTYPE_WHISPER, and TEXTTYPE_YELL.
Referenced by Pol::Mobile::NPC::on_ghost_pc_spoke(), Pol::Mobile::NPC::on_pc_spoke(), and sayto_listening_points().
void Pol::Core::threadstatus_thread | ( | void | ) |
Definition at line 697 of file pol.cpp.
References Pol::Network::Client::acct, Pol::Core::PolSig::active_client_thread_checkpoint, Pol::Network::AddressToString(), catch_signals_thread(), Pol::Core::PolSig::check_attack_after_move_function_checkpoint, Pol::Core::StateManager::checkin_clock_times_out_at, Pol::Network::Client::checkpoint, Pol::threadhelp::child_threads, Pol::Core::NetworkManager::clients, Pol::Core::NetworkManager::clientTransmit, Pol::threadhelp::ThreadMap::CopyContents(), ERROR_PRINT, Pol::Bscript::escript_instr_cycles, Pol::Clib::exit_signalled, INFO_PRINT, Pol::Network::Client::ipaddr, locker, Pol::Clib::ExceptionParser::logAllStackTraces(), Pol::Accounts::Account::name(), networkManager, pol_sleep_ms(), polclock(), Pol::Core::StateManager::polclock_paused_at, POLCLOCKS_PER_SEC, Pol::Core::StateManager::polsig, reload_configuration(), Pol::Core::PolSig::report_status_signalled, Pol::Core::PolSig::scripts_thread_checkpoint, Pol::Clib::scripts_thread_script, Pol::Clib::scripts_thread_scriptPC, send_pulse(), signal_catch_thread(), Pol::Core::NetworkManager::sql_service, stateManager, Pol::Plib::systemstate, Pol::Core::PolSig::tasks_thread_checkpoint, Pol::threadhelp::threadmap, and wake_tasks_thread().
Referenced by start_threads().
std::string Pol::Core::tile_desc | ( | unsigned short | tilenum | ) |
Definition at line 73 of file polfile2.cpp.
References Pol::Core::Tile::desc, Pol::Plib::systemstate, and Pol::Plib::SystemState::tile.
Referenced by Pol::Items::Item::description(), Pol::Items::Item::merchant_description(), and Pol::Items::Item::name().
u32 Pol::Core::tile_flags | ( | unsigned short | tilenum | ) |
Definition at line 49 of file polfile2.cpp.
References Pol::Core::Tile::flags, Pol::Plib::systemstate, and Pol::Plib::SystemState::tile.
Referenced by Pol::Module::_create_item_in_container(), Pol::Items::ItemDesc::default_movable(), Pol::Items::Item::default_movable(), Pol::Items::Item::description(), Pol::Mobile::Character::equippable(), Pol::Module::UOExecutorModule::mf_AddAmount(), Pol::Module::UOExecutorModule::mf_CreateItemAtLocation(), Pol::Realms::Realm::readdynamics(), Pol::Multi::MultiDef::readobjects(), Pol::Multi::UHouse::readobjects(), Pol::Multi::MultiDef::readshapes(), Pol::Multi::UHouse::readshapes(), Pol::Items::Item::stackable(), and Pol::Realms::Realm::static_item_blocks_los().
u32 Pol::Core::tile_uoflags | ( | unsigned short | tilenum | ) |
Definition at line 61 of file polfile2.cpp.
References Pol::Plib::systemstate, Pol::Plib::SystemState::tile, and Pol::Core::Tile::uoflags.
Referenced by Pol::Module::UOExecutorModule::mf_ListItemsNearLocationWithFlag(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationWithFlag(), Pol::UoTool::print_statics(), read_objinfo(), and readstatics().
char Pol::Core::tileheight | ( | unsigned short | tilenum | ) |
Definition at line 34 of file polfile2.cpp.
References Pol::Plib::FLAG::GRADUAL, Pol::Core::Tile::height, Pol::Plib::systemstate, and Pol::Plib::SystemState::tile.
Referenced by Pol::Multi::CustomHouseDesign::AddOrReplace(), Pol::Multi::UBoat::create_components(), Pol::Realms::Realm::dropheight(), Pol::Multi::CustomHouseDesign::Erase(), Pol::Module::UOExecutorModule::mf_ListMultisInBox(), newstat_dont_add(), Pol::UoTool::print_statics(), read_objinfo(), Pol::Multi::UHouse::readobjects(), Pol::Core::UObject::readProperties(), Pol::Multi::MultiDef::readshapes(), Pol::Multi::UHouse::readshapes(), Pol::Multi::CustomHouseDesign::ReplaceDirtFloor(), Pol::Items::Item::setgraphic(), and Pol::Core::UObject::UObject().
unsigned char Pol::Core::tilelayer | ( | unsigned short | tilenum | ) |
Definition at line 22 of file polfile2.cpp.
References Pol::Core::Tile::layer, Pol::Plib::systemstate, and Pol::Plib::SystemState::tile.
Referenced by ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Items::Item::create(), equip_from_template(), equip_loaded_item(), Pol::Mobile::Character::equippable(), Pol::Module::UOExecutorModule::mf_EquipItem(), read_objinfo(), Pol::Items::Item::setgraphic(), and Pol::Items::Item::setlayer().
u16 Pol::Core::tileweight | ( | unsigned short | tilenum | ) |
Definition at line 85 of file polfile2.cpp.
References Pol::Plib::systemstate, Pol::Plib::SystemState::tile, and Pol::Core::Tile::weight.
Referenced by Pol::Items::ItemDesc::ItemDesc(), and read_objinfo().
std::string Pol::Core::timeoutstr | ( | polclock_t | at | ) |
Definition at line 238 of file textcmd.cpp.
References Pol::Clib::decint(), polclock(), and POLCLOCKS_PER_SEC.
Referenced by Pol::Core::RepSystem::show_repdata().
|
inline |
Definition at line 38 of file polclock.h.
Referenced by Pol::Core::RepSystem::repsys_task().
int Pol::Core::translate | ( | const std::string & | name, |
TRANSLATION * | table | ||
) |
Definition at line 33 of file npctmpl.cpp.
References ERROR_PRINT, Pol::Core::TRANSLATION::name, and Pol::Core::TRANSLATION::value.
Referenced by send_action_to_inrange().
void Pol::Core::transmit_to_inrange | ( | const UObject * | center, |
const void * | msg, | ||
unsigned | msglen | ||
) |
Definition at line 1511 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::NetworkManager::clientTransmit, Pol::Core::WorldIterator< Filter >::InVisualRange(), and networkManager.
Referenced by say_above(), say_above_cl(), say_above_cl_affix(), send_wornitem_to_inrange(), and update_wornitem_to_inrange().
void Pol::Core::transmit_to_others_inrange | ( | Character * | center, |
const void * | msg, | ||
unsigned | msglen | ||
) |
Definition at line 1518 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Core::NetworkManager::clientTransmit, Pol::Core::WorldIterator< Filter >::InVisualRange(), and networkManager.
Referenced by send_update_hits_to_inrange().
|
inline |
Definition at line 67 of file action.h.
References ACTION__HIGHEST.
Referenced by Pol::Items::remove_action(), str_to_action(), and Pol::Core::USpell::USpell().
void Pol::Core::undo_get_item | ( | Mobile::Character * | chr, |
Items::Item * | item | ||
) |
Definition at line 260 of file getitem.cpp.
References Pol::Core::UContainer::add(), Pol::Core::UContainer::add_at_random_location(), add_item_to_world(), Pol::Mobile::Character::backpack(), Pol::Core::UContainer::can_add(), Pol::Core::UContainer::can_add_to_slot(), Pol::Core::UContainer::can_insert_add_item(), Pol::Items::Item::check_equip_script(), Pol::Items::Item::check_equiptest_scripts(), Pol::Items::Item::container, Pol::Mobile::Character::equip(), Pol::Mobile::Character::equippable(), Pol::Mobile::Character::GOTTEN_ITEM_EQUIPPED_ON_SELF, Pol::Mobile::Character::GOTTEN_ITEM_IN_CONTAINER, Pol::Mobile::Character::gotten_item_source, Pol::Core::UContainer::is_legal_posn(), Pol::Items::Item::layer, move_item(), Pol::Core::UContainer::MT_PLAYER, Pol::Core::UContainer::on_insert_add_item(), Pol::Core::ULWObject::orphan(), Pol::Core::ULWObject::realm, register_with_supporting_multi(), Pol::Items::Item::restart_decay_timer(), send_item_to_inrange(), send_wornitem_to_inrange(), Pol::Core::UObject::set_dirty(), Pol::Items::Item::slot_index(), update_item_to_inrange(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Mobile::Character::clear_gotten_item(), drop_item(), drop_item_v2(), and equip_item().
void Pol::Core::UnicodeSpeechHandler | ( | Network::Client * | client, |
PKTIN_AD * | msgin | ||
) |
Definition at line 432 of file speech.cpp.
References Pol::Core::ExportedFunction::call(), cfBEu16, Pol::Network::Client::chr, ctBEu16, gamestate, Get12BitNumber(), GetNextUTF8(), make_mobileref(), Pol::Core::PKTIN_AD::msglen, SendUnicodeSpeech(), SPEECH_MAX_LEN, Pol::Core::SystemHooks::speechmul_hook, Pol::Core::GameState::system_hooks, Pol::Core::PKTIN_AD::type, and Pol::Core::PKTIN_AD::wtext.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
int Pol::Core::unload_all_scripts | ( | ) |
Definition at line 148 of file scrstore.cpp.
References Pol::Items::preload_test_scripts(), scriptScheduler, and Pol::Core::ScriptScheduler::scrstore.
Referenced by Pol::Module::OSExecutorModule::mf_unload_scripts().
void Pol::Core::unload_data | ( | ) |
Definition at line 273 of file loadunld.cpp.
References Pol::Mobile::unload_armor_zones(), Pol::Items::unload_itemdesc(), unload_party(), and unload_repsys_cfg().
Referenced by Pol::Core::GameState::deinitialize().
void Pol::Core::unload_party | ( | ) |
Definition at line 258 of file party.cpp.
References gamestate, Pol::Core::GameState::parties, and unload_party_hooks().
Referenced by unload_data().
void Pol::Core::unload_party_hooks | ( | ) |
Definition at line 190 of file party.cpp.
References Pol::Core::Party_Cfg::CanAddToParty, Pol::Core::Party_Cfg::CanLeaveParty, Pol::Core::Party_Cfg::CanRemoveMember, Pol::Core::Party_Cfg::ChangePrivateChat, Pol::Core::Party_Cfg::ChangePublicChat, Pol::Core::Party_Cfg::Hooks, Pol::Core::Party_Cfg::OnAddToParty, Pol::Core::Party_Cfg::OnDecline, Pol::Core::Party_Cfg::OnDisband, Pol::Core::Party_Cfg::OnLeaveParty, Pol::Core::Party_Cfg::OnLootPermChange, Pol::Core::Party_Cfg::OnPartyCreate, Pol::Core::Party_Cfg::OnPrivateChat, Pol::Core::Party_Cfg::OnPublicChat, Pol::Core::SettingsManager::party_cfg, and settingsManager.
Referenced by unload_party().
void Pol::Core::unload_repsys_cfg | ( | ) |
Definition at line 135 of file repsys.cpp.
References unload_repsys_cfg_hooks().
Referenced by unload_data().
void Pol::Core::unload_repsys_cfg_hooks | ( | ) |
Definition at line 106 of file repsys.cpp.
References Pol::Core::RepSys_Cfg::HighLightColor, Pol::Core::RepSys_Cfg::Hooks, Pol::Core::RepSys_Cfg::NameColor, Pol::Core::RepSys_Cfg::OnAttack, Pol::Core::RepSys_Cfg::OnDamage, Pol::Core::RepSys_Cfg::OnHelp, Pol::Core::SettingsManager::repsys_cfg, and settingsManager.
Referenced by unload_repsys_cfg().
int Pol::Core::unload_script | ( | const std::string & | name_in | ) |
Definition at line 113 of file scrstore.cpp.
References INFO_PRINT, Pol::Items::preload_test_scripts(), scriptScheduler, and Pol::Core::ScriptScheduler::scrstore.
Referenced by Pol::Module::OSExecutorModule::mf_unload_scripts().
int Pol::Core::UnloadConfigFile | ( | const std::string & | filename | ) |
Definition at line 344 of file cfgrepos.cpp.
References Pol::Core::ConfigurationBuffer::cfgfiles, configurationbuffer, DEBUGLOG, LEAKLOG, and Pol::Core::ConfigurationBuffer::oldcfgfiles.
Referenced by Pol::Module::ConfigFileExecutorModule::mf_AppendConfigFileElem(), and Pol::Module::ConfigFileExecutorModule::mf_UnloadConfigFile().
void Pol::Core::uo_client_listener_thread | ( | void * | arg | ) |
Definition at line 102 of file uolisten.cpp.
References client_io_thread(), Pol::Core::UoClientListener::encryption, Pol::Crypt::_CryptInfo::eType, Pol::Clib::exit_signalled, Pol::Clib::SocketListener::GetConnection(), INFO_PRINT, Pol::Clib::Socket::nonblocking, Pol::Core::UoClientListener::port, Pol::Clib::Socket::reuseaddr, Pol::Clib::SocketClientThread::start(), Pol::Clib::SocketClientThread::start_thread(), Pol::Plib::systemstate, Pol::Crypt::_CryptInfo::uiKey1, Pol::Crypt::_CryptInfo::uiKey2, and Pol::Core::UoClientThread::UoClientThread().
Referenced by start_uo_client_listeners().
void Pol::Core::update_all_weatherregions | ( | ) |
Definition at line 1761 of file ufunc.cpp.
References Pol::Core::NetworkManager::clients, and networkManager.
Referenced by Pol::Core::WeatherDef::assign_zones_to_region().
void Pol::Core::update_gameclock | ( | ) |
Saves the current value into the global cprop "gameclock".
Definition at line 45 of file gameclck.cpp.
References gamestate, Pol::Core::GameState::global_properties, OSTRINGSTREAM, OSTRINGSTREAM_STR, and read_gameclock().
Referenced by Pol::Module::UOExecutorModule::mf_SaveWorldState(), and stop_gameclock().
void Pol::Core::update_item_to_inrange | ( | const Item * | item | ) |
Definition at line 737 of file ufunc.cpp.
References Pol::Items::Item::container, find_character(), IsCharacter(), POLLOG_ERROR, send_item_to_inrange(), send_put_in_container_to_inrange(), Pol::Core::ULWObject::serial, and update_wornitem_to_inrange().
Referenced by Pol::Module::_complete_create_item_at_location(), Pol::Module::_create_item_in_container(), Pol::Multi::UHouse::add_component(), add_item_to_stack(), Pol::Multi::UBoat::create_components(), Pol::Mobile::Character::die(), drop_item_on_object(), equip_from_template(), Pol::Module::UOExecutorModule::mf_AddAmount(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Module::oldBuyHandler(), Pol::Module::oldSellHandler(), Pol::Items::Item::on_color_changed(), Pol::Items::Item::on_facing_changed(), Pol::Items::Item::on_invisible_changed(), Pol::Items::Item::on_movable_changed(), Pol::Items::Item::script_method_id(), Pol::Items::Item::setgraphic(), subtract_amount_from_item(), undo_get_item(), and Pol::Module::ItemGivenEvent::~ItemGivenEvent().
void Pol::Core::update_lightregion | ( | Client * | client, |
LightRegion * | |||
) |
Definition at line 1668 of file ufunc.cpp.
References Pol::Mobile::Character::check_light_region_change(), Pol::Network::Client::chr, and Pol::Network::Client::ready.
void Pol::Core::update_rpm | ( | void | ) |
Definition at line 156 of file tasks.cpp.
References Pol::Core::ProfileVars::busy_sysload_cycles, Pol::Bscript::BError::creations(), Pol::Core::StateManager::cycles_per_decay_worldzone, Pol::Core::StateManager::cycles_until_decay_worldzone, Pol::Bscript::escript_instr_cycles, gamestate, get_mobile_count(), GET_PROFILEVAR_PER_MIN, get_toplevel_item_count(), Pol::Realms::Realm::grid_height(), Pol::Realms::Realm::grid_width(), INFO_PRINT, Pol::Core::ProfileVars::last_busy_sysload_cycles, Pol::Core::ProfileVars::last_cpu_total, Pol::Core::ProfileVars::last_cputime, Pol::Core::ProfileVars::last_instructions, Pol::Core::ProfileVars::last_mapcache_hits, Pol::Core::ProfileVars::last_mapcache_misses, Pol::Core::ProfileVars::last_nonbusy_sysload_cycles, Pol::Core::ProfileVars::last_rotations, Pol::Core::ProfileVars::last_rpm, Pol::Core::ProfileVars::last_scpm, Pol::Core::ProfileVars::last_script_passes, Pol::Core::ProfileVars::last_script_passes_activity, Pol::Core::ProfileVars::last_script_passes_noactivity, Pol::Core::ProfileVars::last_sipm, Pol::Core::ProfileVars::last_sleep_cycles, Pol::Core::ProfileVars::last_sppm, Pol::Core::ProfileVars::last_sysload, Pol::Core::ProfileVars::last_sysload_nprocs, Pol::Core::GameState::main_realm, Pol::Core::ProfileVars::mapcache_hits, Pol::Core::ProfileVars::mapcache_misses, Pol::Core::ProfileVars::nonbusy_sysload_cycles, POLLOG, Pol::Core::StateManager::profilevars, Pol::Core::GameState::Realms, ROLL_PROFILECLOCK, Pol::Core::ProfileVars::rotations, Pol::Core::ProfileVars::script_passes, Pol::Core::ProfileVars::script_passes_activity, Pol::Core::ProfileVars::script_passes_noactivity, SET_PROFILEVAR, Pol::Core::ProfileVars::sleep_cycles, stateManager, Pol::Core::ProfileVars::sysload_nprocs, Pol::Plib::systemstate, THREAD_CHECKPOINT, and TICK_PROFILEVAR.
void Pol::Core::update_sysload | ( | ) |
Definition at line 320 of file tasks.cpp.
References Pol::Core::ProfileVars::busy_sysload_cycles, Pol::Core::ScriptScheduler::getRunlist(), Pol::Core::ProfileVars::nonbusy_sysload_cycles, Pol::Core::StateManager::profilevars, scriptScheduler, stateManager, Pol::Core::ProfileVars::sysload_nprocs, and THREAD_CHECKPOINT.
void Pol::Core::update_weatherregion | ( | Client * | client, |
WeatherRegion * | weatherregion | ||
) |
Definition at line 1733 of file ufunc.cpp.
References Pol::Mobile::Character::check_light_region_change(), Pol::Mobile::Character::check_weather_region_change(), Pol::Network::Client::chr, Pol::Network::Client::gd, Pol::Network::Client::ready, and Pol::Network::ClientGameData::weather_region.
Referenced by SetRegionWeatherLevel().
Definition at line 857 of file ufunc.cpp.
References Pol::Core::UObject::color, Pol::Core::ULWObject::graphic, Pol::Items::Item::layer, send_object_cache_to_inrange(), send_remove_object_to_inrange(), Pol::Core::UObject::serial_ext, and transmit_to_inrange().
Referenced by update_item_to_inrange().
void Pol::Core::UpdateCharacterOnDestroyItem | ( | Item * | item | ) |
Definition at line 1927 of file ufunc.cpp.
References Pol::Items::Item::check_unequip_script(), Pol::Items::Item::check_unequiptest_scripts(), Pol::Items::Item::GetCharacterOwner(), Pol::Mobile::Character::is_equipped(), Pol::Items::Item::layer, and send_remove_object_to_inrange().
Referenced by Pol::Module::UOExecutorModule::mf_DestroyItem().
Mobile::Character * Pol::Core::UpdateCharacterWeight | ( | Item * | item | ) |
Definition at line 1916 of file ufunc.cpp.
References Pol::Mobile::Character::client, Pol::Items::Item::GetCharacterOwner(), and send_full_statmsg().
Referenced by Pol::Module::_create_item_in_container(), Pol::Module::UOExecutorModule::mf_AddAmount(), Pol::Module::UOExecutorModule::mf_DestroyItem(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Items::Item::script_method_id(), and subtract_amount_from_item().
Definition at line 126 of file ufunc.cpp.
References Pol::Core::StateManager::charserialnumber, and stateManager.
Referenced by Pol::Mobile::Character::readCommonProperties().
Definition at line 134 of file ufunc.cpp.
References Pol::Core::StateManager::itemserialnumber, and stateManager.
Referenced by Pol::Multi::UMulti::create(), and Pol::Items::Item::create().
|
inline |
Definition at line 20 of file lightlvl.h.
Referenced by Pol::Module::UOExecutorModule::mf_SetRegionLightLevel(), send_light(), and SetRegionLightLevel().
bool Pol::Core::valid_message_length | ( | Network::Client * | client, |
unsigned int | length | ||
) |
Definition at line 376 of file clientthread.cpp.
References Pol::Network::Client::buffer, handle_humongous_packet(), Pol::Network::Client::message_length, and report_weird_packet().
Referenced by process_data().
|
inline |
Definition at line 146 of file spells.h.
References clean_spells(), do_cast(), gamestate, and Pol::Core::GameState::spells.
Referenced by Pol::Module::VitalExecutorModule::mf_ConsumeMana(), Pol::Module::UOExecutorModule::mf_ConsumeReagents(), Pol::Module::UOExecutorModule::mf_GetSpellDifficulty(), Pol::Module::UOExecutorModule::mf_SpeakPowerWords(), and Pol::Module::UOExecutorModule::mf_StartSpellEffect().
bool Pol::Core::validbeard | ( | u16 | BeardStyle | ) |
Definition at line 153 of file create.cpp.
References Pol::Plib::systemstate.
Referenced by Pol::Module::character_race_changer_handler(), ClientCreateChar(), ClientCreateChar70160(), and ClientCreateCharKR().
bool Pol::Core::validface | ( | u16 | FaceStyle | ) |
Definition at line 186 of file create.cpp.
References settingsManager, Pol::Core::SettingsManager::ssopt, and Pol::Core::ServSpecOpt::support_faces.
Referenced by ClientCreateCharKR().
bool Pol::Core::validhair | ( | u16 | HairStyle | ) |
Definition at line 117 of file create.cpp.
References Pol::Plib::systemstate.
Referenced by Pol::Module::character_race_changer_handler(), ClientCreateChar(), ClientCreateChar70160(), and ClientCreateCharKR().
short Pol::Core::validhaircolor | ( | u16 | ) |
Definition at line 62 of file create.cpp.
void Pol::Core::wait_for_ClientTransmit_pulse | ( | unsigned int | millis | ) |
Definition at line 257 of file polsem.cpp.
References calc_abs_timeout().
Referenced by polsem_unlock().
void Pol::Core::wait_for_pulse | ( | unsigned int | millis | ) |
Definition at line 217 of file polsem.cpp.
References calc_abs_timeout().
Referenced by combined_thread(), polsem_unlock(), and scripts_thread().
void Pol::Core::wake_tasks_thread | ( | ) |
Definition at line 230 of file polsem.cpp.
Referenced by client_io_thread(), polsem_unlock(), scripts_thread(), and threadstatus_thread().
void Pol::Core::write_characters | ( | Core::SaveContext & | sc | ) |
Definition at line 857 of file uimport.cpp.
References CLASS_NPC, Pol::Core::UObject::clear_dirty(), Pol::Core::ULWObject::isa(), Pol::Core::ULWObject::ismobile(), Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Core::ULWObject::orphan(), Pol::Core::SaveContext::pcequip, Pol::Core::SaveContext::pcs, Pol::Mobile::Character::printOn(), and Pol::Mobile::Character::printWornItems().
int Pol::Core::write_data | ( | unsigned int & | dirty_writes, |
unsigned int & | clean_writes, | ||
long long & | elapsed_ms | ||
) |
Definition at line 1025 of file uimport.cpp.
References Pol::threadhelp::TaskThreadPool::checked_push(), Pol::Core::UObject::clean_writes, Pol::Core::ObjectHash::ClearDeleted(), commit(), commit_incremental_saves(), Pol::Core::UObject::dirty_writes, Pol::Clib::force_backtrace(), gamestate, Pol::Core::ObjectStorageManager::incremental_save_count, Pol::Core::ObjectStorageManager::incremental_saves_disabled, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, POLLOG_ERROR, Pol::Core::SaveContext::ready(), should_write_data(), Pol::Plib::systemstate, Pol::Core::GameState::task_thread_pool, and Pol::Accounts::write_account_data().
Referenced by Pol::Module::UOExecutorModule::mf_SaveWorldState(), and Pol::xmain_inner().
void Pol::Core::write_dirty_data | ( | Clib::StreamWriter & | sw_data | ) |
Definition at line 132 of file savedata.cpp.
References Pol::Core::ObjectHash::begin(), cfBEu32, Pol::Core::ObjectStorageManager::clean_objects, Pol::Core::ObjectHash::CleanDeleted(), Pol::Core::UObject::clear_dirty(), Pol::Core::ObjectStorageManager::deleted_serials, Pol::Core::UObject::dirty(), Pol::Core::ObjectHash::dirty_deleted_begin(), Pol::Core::ObjectHash::dirty_deleted_end(), Pol::Core::ObjectStorageManager::dirty_objects, Pol::Core::ObjectHash::end(), Pol::Items::find_itemdesc(), ref_ptr< T >::get(), Pol::Core::ObjectStorageManager::modified_serials, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Core::UObject::objtype_, Pol::Core::ULWObject::orphan(), Pol::Core::UObject::printSelfOn(), Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, and write_object_dirty_owners().
Referenced by save_incremental().
void Pol::Core::write_dirty_storage | ( | Clib::StreamWriter & | sw_data | ) |
Definition at line 61 of file savedata.cpp.
References Pol::Core::StorageArea::_items, Pol::Core::StorageArea::_name, Pol::Core::Storage::areas, cfBEu32, Pol::Core::ObjectStorageManager::clean_objects, Pol::Core::UObject::clear_dirty(), Pol::Core::ObjectStorageManager::deleted_serials, Pol::Core::UObject::dirty(), Pol::Core::ObjectStorageManager::dirty_objects, gamestate, Pol::Core::ObjectStorageManager::modified_serials, objStorageManager, Pol::Core::ULWObject::orphan(), pf_endl, Pol::Core::UObject::printSelfOn(), Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, and Pol::Core::GameState::storage.
Referenced by save_incremental().
void Pol::Core::write_global_properties | ( | Clib::StreamWriter & | sw | ) |
Definition at line 808 of file uimport.cpp.
References gamestate, Pol::Core::GameState::global_properties, and pf_endl.
Referenced by save_incremental().
void Pol::Core::write_guilds | ( | Clib::StreamWriter & | sw | ) |
Definition at line 224 of file guilds.cpp.
References gamestate, Pol::Core::GameState::nextguildid, pf_endl, and Pol::Core::Guild::printOn().
void Pol::Core::write_index | ( | std::ostream & | ofs | ) |
Definition at line 182 of file savedata.cpp.
References Pol::Core::ObjectStorageManager::deleted_serials, Pol::Core::ObjectStorageManager::modified_serials, objStorageManager, and pf_endl.
Referenced by save_incremental().
void Pol::Core::write_items | ( | Clib::StreamWriter & | sw_items | ) |
Definition at line 896 of file uimport.cpp.
References CLASS_NPC, gamestate, Pol::Core::ULWObject::isa(), Pol::Core::ULWObject::ismobile(), Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Core::ULWObject::orphan(), Pol::Core::GameState::Realms, and WriteGottenItem().
void Pol::Core::write_multis | ( | Clib::StreamWriter & | ofs | ) |
Definition at line 935 of file uimport.cpp.
References Pol::Multi::UHouse::AcceptHouseCommit(), Pol::Multi::UHouse::as_house(), Pol::Clib::exit_signalled, gamestate, Pol::Multi::UHouse::IsCustom(), Pol::Multi::UHouse::IsWaitingForAccept(), and Pol::Core::GameState::Realms.
void Pol::Core::write_npcs | ( | Core::SaveContext & | sc | ) |
Definition at line 875 of file uimport.cpp.
References CLASS_NPC, Pol::Core::UObject::clear_dirty(), Pol::Core::ULWObject::isa(), Pol::Core::ULWObject::ismobile(), Pol::Core::SaveContext::npcequip, Pol::Core::SaveContext::npcs, Pol::Core::ObjectStorageManager::objecthash, objStorageManager, Pol::Core::ULWObject::orphan(), Pol::Mobile::Character::printOn(), Pol::Mobile::Character::printWornItems(), and Pol::Core::UObject::saveonexit().
void Pol::Core::write_object_dirty_owners | ( | Clib::StreamWriter & | sw_data, |
const UObject * | obj, | ||
bool & | has_nonsaved_owner | ||
) |
Definition at line 102 of file savedata.cpp.
References Pol::Core::ObjectStorageManager::clean_objects, Pol::Core::UObject::clear_dirty(), Pol::Core::UObject::dirty(), Pol::Core::ObjectStorageManager::dirty_objects, Pol::Items::find_itemdesc(), Pol::Core::ObjectStorageManager::modified_serials, objStorageManager, Pol::Core::UObject::objtype_, Pol::Core::ULWObject::orphan(), Pol::Core::UObject::owner(), Pol::Core::UObject::printSelfOn(), Pol::Core::UObject::saveonexit(), and Pol::Core::ULWObject::serial.
Referenced by write_dirty_data().
void Pol::Core::write_party | ( | Clib::StreamWriter & | sw | ) |
Definition at line 868 of file party.cpp.
References gamestate, Pol::Core::Party_Cfg::General, Pol::Core::GameState::parties, Pol::Core::SettingsManager::party_cfg, Pol::Core::Party_Cfg::RemoveMemberOnLogoff, and settingsManager.
int Pol::Core::write_pol_static_files | ( | const std::string & | realm | ) |
Definition at line 50 of file polfile1.cpp.
References Pol::Plib::STATIC_ENTRY::hue, Pol::Plib::STATIC_INDEX::index, INFO_PRINT, Pol::Plib::RealmDescriptor::Load(), newstat_dont_add(), Pol::Plib::STATIC_ENTRY::objtype, readstaticblock(), Pol::Clib::RemoveFile(), Pol::Plib::STATICBLOCK_CHUNK, Pol::Plib::systemstate, Pol::Plib::STATIC_ENTRY::xy, and Pol::Plib::STATIC_ENTRY::z.
Referenced by Pol::UoConvert::UoConvertMain::main(), and Pol::UoTool::UoToolMain::main().
void Pol::Core::write_resources_dat | ( | Clib::StreamWriter & | sw_resource | ) |
Definition at line 480 of file resource.cpp.
References gamestate, and Pol::Core::GameState::resourcedefs.
void Pol::Core::write_shadow_realms | ( | Clib::StreamWriter & | sw | ) |
Definition at line 827 of file uimport.cpp.
References gamestate, pf_endl, and Pol::Core::GameState::Realms.
void Pol::Core::write_system_data | ( | Clib::StreamWriter & | sw | ) |
Definition at line 816 of file uimport.cpp.
References Pol::Clib::ProgramConfig::build_datetime(), GetCurrentCharSerialNumber(), GetCurrentItemSerialNumber(), and pf_endl.
Referenced by save_incremental().
|
inline |
Definition at line 842 of file uimport.cpp.
References Pol::Core::ULWObject::orphan(), Pol::Core::UObject::printOn(), Pol::Core::ULWObject::realm, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by write_items().
Definition at line 13 of file zone.cpp.
References ZONE_SHIFT.
Referenced by Pol::Core::WeatherDef::assign_zones_to_region(), Pol::Core::RegionGroupBase::getregionid(), and Pol::Core::RegionGroupBase::paint_zones().
|
inline |
Definition at line 76 of file uworld.h.
References passert, and Pol::Plib::WGRID_SHIFT.
Referenced by check_character_integrity(), check_single_zone_item_integrity(), find_existing_item(), and textcmd_singlezone_integ_item().
|
inline |
Definition at line 86 of file uworld.h.
References Pol::Realms::Realm::height(), Pol::Plib::WGRID_SHIFT, and Pol::Realms::Realm::width().
Referenced by find_legal_container(), find_legal_item(), find_legal_singleclick_item(), Pol::Multi::multis_exist_in(), Pol::Mobile::NPC::npc_path_blocked(), and Pol::Multi::objects_exist_in().
|
static |
Definition at line 25 of file gameclck.cpp.
std::array< int, 7 > Pol::Core::adjustments = {{0, +1, -1, +2, -2, +3, -3}} |
Definition at line 24 of file ufacing.cpp.
Referenced by Pol::Module::NPCExecutorModule::move_self().
UFACING Pol::Core::away_cvt |
Definition at line 21 of file ufacing.cpp.
Referenced by Pol::Mobile::direction_away().
int Pol::Core::cfg_max_statics_per_block = 1000 |
Definition at line 38 of file uofile02.cpp.
Referenced by Pol::UoConvert::UoConvertMain::main().
bool Pol::Core::cfg_show_illegal_graphic_warning = 1 |
Definition at line 28 of file polfile1.cpp.
Referenced by Pol::UoConvert::UoConvertMain::main().
bool Pol::Core::cfg_show_roof_and_platform_warning = 1 |
Definition at line 20 of file mapfunc.cpp.
Referenced by Pol::UoConvert::UoConvertMain::main(), and Pol::Plib::polflags_from_tileflags().
bool Pol::Core::cfg_use_new_hsa_format = 0 |
Definition at line 40 of file uofile02.cpp.
Referenced by Pol::UoConvert::create_landtiles_cfg(), Pol::UoConvert::create_tiles_cfg(), Pol::UoConvert::UoConvertMain::main(), read_landtiledata(), read_objinfo(), read_tiledata(), and Pol::UoConvert::write_multi().
int Pol::Core::cfg_warning_statics_per_block = 1000 |
Definition at line 39 of file uofile02.cpp.
Referenced by Pol::UoConvert::UoConvertMain::main().
const u8 Pol::Core::CHAR_FLAG1_CANALTER = 0x02 |
Definition at line 103 of file pktdef.h.
Referenced by send_paperdoll().
const u8 Pol::Core::CHAR_FLAG1_FLYING = 0x04 |
Definition at line 102 of file pktdef.h.
Referenced by Pol::Mobile::Character::get_flag1().
const u8 Pol::Core::CHAR_FLAG1_GENDER = 0x02 |
Definition at line 104 of file pktdef.h.
Referenced by Pol::Mobile::Character::get_flag1().
const u8 Pol::Core::CHAR_FLAG1_INVISIBLE = 0x80 |
Definition at line 98 of file pktdef.h.
Referenced by Pol::Mobile::Character::get_flag1().
const u8 Pol::Core::CHAR_FLAG1_POISONED = 0x04 |
Definition at line 101 of file pktdef.h.
Referenced by Pol::Mobile::Character::get_flag1().
const u8 Pol::Core::CHAR_FLAG1_WARMODE = 0x40 |
Definition at line 99 of file pktdef.h.
Referenced by Pol::Mobile::Character::get_flag1().
const u8 Pol::Core::CHAR_FLAG1_YELLOWHEALTH = 0x08 |
Definition at line 100 of file pktdef.h.
Referenced by Pol::Mobile::Character::get_flag1().
const u32 Pol::Core::CHARACTERSERIAL_END = 0x3FFFFFFFLu |
Definition at line 19 of file state.h.
Referenced by Pol::Core::ObjectHash::GetNextUnusedCharSerial().
const u32 Pol::Core::CHARACTERSERIAL_START = 0x00000001Lu |
Definition at line 18 of file state.h.
Referenced by Pol::Core::ObjectHash::GetNextUnusedCharSerial().
pthread_cond_t Pol::Core::clienttransmit_pulse_cond = PTHREAD_COND_INITIALIZER |
Definition at line 150 of file polsem.cpp.
pthread_mutex_t Pol::Core::clienttransmit_pulse_mut = PTHREAD_MUTEX_INITIALIZER |
Definition at line 149 of file polsem.cpp.
const int Pol::Core::CLP_Add_Living = 1005442 |
Definition at line 53 of file party_cfg.h.
Referenced by add_candidate().
const int Pol::Core::CLP_Add_No_Leader |
const int Pol::Core::CLP_Add_Yourself = 1005439 |
Definition at line 50 of file party_cfg.h.
Referenced by add_candidate().
const int Pol::Core::CLP_Added = 1005445 |
Definition at line 55 of file party_cfg.h.
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), handle_accept_invite(), and Pol::Module::PartyExecutorModule::mf_CreateParty().
const int Pol::Core::CLP_Allow_Loot = 1005447 |
Definition at line 58 of file party_cfg.h.
Referenced by handle_loot_perm().
const int Pol::Core::CLP_Already_in_a_Party = 1005441 |
Definition at line 52 of file party_cfg.h.
Referenced by add_candidate().
const int Pol::Core::CLP_Already_Your_Party = 1005440 |
Definition at line 51 of file party_cfg.h.
Referenced by add_candidate().
const int Pol::Core::CLP_Cannot_Remove_Self |
Definition at line 56 of file party_cfg.h.
Referenced by handle_remove_member_cursor().
const int Pol::Core::CLP_Decline = 1008092 |
Definition at line 74 of file party_cfg.h.
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), handle_decline_invite(), and invite_timeout().
const int Pol::Core::CLP_Disbanded = 1005449 |
Definition at line 61 of file party_cfg.h.
Referenced by Pol::Core::Party::disband().
const int Pol::Core::CLP_Ignore_Offer = 1005444 |
Definition at line 54 of file party_cfg.h.
Referenced by add_candidate().
const int Pol::Core::CLP_Invite = 1008089 |
Definition at line 70 of file party_cfg.h.
Referenced by send_invite().
const int Pol::Core::CLP_Invited = 1008090 |
Definition at line 72 of file party_cfg.h.
Referenced by send_invite().
const int Pol::Core::CLP_Joined = 1008094 |
Definition at line 75 of file party_cfg.h.
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), handle_accept_invite(), and Pol::Module::PartyExecutorModule::mf_CreateParty().
const int Pol::Core::CLP_Last_Person = 1005450 |
Definition at line 62 of file party_cfg.h.
Referenced by Pol::Core::Party::send_remove_member().
const int Pol::Core::CLP_Max_Size = 1008095 |
Definition at line 76 of file party_cfg.h.
Referenced by add_candidate().
const int Pol::Core::CLP_No_Invite = 3000222 |
Definition at line 78 of file party_cfg.h.
Referenced by handle_accept_invite(), and handle_decline_invite().
const int Pol::Core::CLP_No_Party = 3000211 |
Definition at line 77 of file party_cfg.h.
Referenced by handle_loot_perm(), handle_member_msg(), handle_party_msg(), and handle_remove().
const int Pol::Core::CLP_Notify_Decline = 1008091 |
Definition at line 73 of file party_cfg.h.
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), handle_decline_invite(), and invite_timeout().
const int Pol::Core::CLP_Player_Rejoined = 1008087 |
Definition at line 69 of file party_cfg.h.
Referenced by on_loggon_party().
const int Pol::Core::CLP_Player_Removed = 1005452 |
Definition at line 64 of file party_cfg.h.
Referenced by on_loggoff_party(), and Pol::Core::Party::send_remove_member().
const int Pol::Core::CLP_Prevent_Loot |
Definition at line 59 of file party_cfg.h.
Referenced by handle_loot_perm().
const int Pol::Core::CLP_Rejoined = 1005437 |
Definition at line 49 of file party_cfg.h.
Referenced by on_loggon_party().
const int Pol::Core::CLP_Removed = 1005451 |
Definition at line 63 of file party_cfg.h.
Referenced by Pol::Module::EPartyRefObjImp::call_method_id(), handle_remove(), and handle_remove_member_cursor().
const int Pol::Core::CLP_Too_Late_Decline |
Definition at line 79 of file party_cfg.h.
Referenced by handle_decline_invite().
const int Pol::Core::CLP_Who_To_Add = 1005454 |
Definition at line 67 of file party_cfg.h.
Referenced by handle_add().
const int Pol::Core::CLP_Who_to_Remove = 1005455 |
Definition at line 68 of file party_cfg.h.
Referenced by handle_remove().
ConfigurationBuffer Pol::Core::configurationbuffer |
Definition at line 13 of file ucfg.cpp.
Referenced by Pol::Module::commit_datastore(), CreateEmptyStoredConfigFile(), Pol::Core::GameState::deinitialize(), FindConfigFile(), Pol::Module::DataFileExecutorModule::GetDataStoreFile(), Pol::Module::HasAppendAccess(), Pol::Module::HasReadAccess(), Pol::Module::HasWriteAccess(), Pol::Module::load_fileaccess_cfg(), Pol::Core::MemoryUsage::log(), Pol::Module::DataFileExecutorModule::mf_CreateDataFile(), Pol::Module::DataFileExecutorModule::mf_ListDataFiles(), Pol::Module::DataFileExecutorModule::mf_OpenDataFile(), Pol::Module::read_datastore_dat(), UnloadConfigFile(), and Pol::Module::write_datastore().
BApplicObjType Pol::Core::debugcontextobjimp_type |
Definition at line 206 of file poldbg.cpp.
const unsigned short Pol::Core::DEFAULT_TEXT_COLOR = 0x3B2 |
Definition at line 97 of file uconst.h.
Referenced by Pol::Mobile::NPC::readNpcProperties().
const unsigned short Pol::Core::DEFAULT_TEXT_FONT = 3 |
Definition at line 96 of file uconst.h.
Referenced by Pol::Mobile::NPC::readNpcProperties().
const unsigned short Pol::Core::DEFAULT_TEXT_REQUIREDCMD = 0 |
const int Pol::Core::DELETE_BY_PLAYER = 0x00 |
Definition at line 58 of file core.h.
Referenced by handle_delete_character().
const int Pol::Core::DELETE_BY_SCRIPT = 0x01 |
Definition at line 59 of file core.h.
Referenced by Pol::Accounts::AccountObjImp::call_method_id().
int Pol::Core::dupe_count |
Definition at line 525 of file uimport.cpp.
Referenced by import().
const int Pol::Core::ENUMERATE_IGNORE_LOCKED = 0x01 |
Definition at line 61 of file core.h.
Referenced by Pol::Core::UContainer::enumerate_contents().
const int Pol::Core::ENUMERATE_ROOT_ONLY = 0x02 |
Definition at line 62 of file core.h.
Referenced by Pol::Core::UContainer::enumerate_contents().
const int Pol::Core::FINDOBJTYPE_IGNORE_LOCKED = 0x01 |
Definition at line 82 of file core.h.
Referenced by Pol::Core::UContainer::find_objtype().
const int Pol::Core::FINDOBJTYPE_ROOT_ONLY = 0x02 |
Definition at line 83 of file core.h.
Referenced by Pol::Core::UContainer::find_objtype().
const int Pol::Core::FINDSUBSTANCE_FIND_ALL = 0x04 |
Definition at line 87 of file core.h.
Referenced by Pol::Core::UContainer::find_sumof_objtype_noninuse(), and Pol::Module::UOExecutorModule::mf_FindSubstance().
const int Pol::Core::FINDSUBSTANCE_IGNORE_LOCKED = 0x01 |
Definition at line 85 of file core.h.
Referenced by Pol::Core::UContainer::find_sumof_objtype_noninuse().
const int Pol::Core::FINDSUBSTANCE_ROOT_ONLY = 0x02 |
Definition at line 86 of file core.h.
Referenced by Pol::Core::UContainer::find_sumof_objtype_noninuse().
const int Pol::Core::FP_IGNORE_DOORS = 0x02 |
Definition at line 70 of file core.h.
Referenced by Pol::Module::UOExecutorModule::mf_FindPath().
const int Pol::Core::FP_IGNORE_MOBILES = 0x01 |
Definition at line 69 of file core.h.
Referenced by Pol::Module::UOExecutorModule::mf_FindPath().
boost_utils::flyweight_initializers Pol::Core::fw_inits |
|
static |
Definition at line 21 of file gameclck.cpp.
Referenced by read_gameclock(), Pol::Mobile::Character::script_method_id(), and start_gameclock().
GameState Pol::Core::gamestate |
Definition at line 74 of file uvars.cpp.
Referenced by add_candidate(), Pol::Testing::add_item(), Pol::Testing::add_multi(), add_realm(), add_task(), Pol::Items::allocate_intrinsic_equipment_serials(), Pol::Mobile::Character::apply_raw_damage_hundredths(), Pol::Mobile::Character::attack(), Pol::Multi::UBoat::boatshape(), Pol::Multi::BoatShapeExists(), calc_scheduler_clocksleft(), Pol::Mobile::Character::calc_vital_stuff(), Pol::Accounts::AccountObjImp::call_method_id(), Pol::Core::Spellbook::can_add(), Pol::Items::Item::can_add_to_self(), Pol::Mobile::Character::can_face(), check_character_integrity(), check_item_integrity(), Pol::Mobile::Character::check_justice_region_change(), Pol::Mobile::Character::check_light_region_change(), Pol::Core::USpell::check_mana(), Pol::Mobile::Character::check_music_region_change(), check_scheduled_tasks(), Pol::Mobile::Character::check_skill(), Pol::Mobile::Character::check_undamaged(), Pol::Mobile::Character::check_weather_region_change(), Pol::Mobile::Character::CheckPushthrough(), Pol::Mobile::Character::choose_armor(), Pol::Mobile::clean_attributes(), Pol::Multi::clean_boatshapes(), clean_resources(), clean_skills(), clean_spells(), clean_vitals(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), config_web_server(), Pol::Core::USpell::consume_mana(), Pol::Core::USpellScroll::convert_objtype_to_spellnum(), count_resource_tiles(), Pol::Core::ResourceDef::counttiles(), Pol::Items::ItemDesc::create(), Pol::Items::Item::create(), Pol::Accounts::create_new_account(), create_npc_template(), Pol::Items::CreateItemDescriptor(), Pol::Multi::UHouse::CustomHousesQuit(), decay_items(), decay_single_thread(), decay_thread_shadow(), decay_worldzone(), decode_page(), defined_realm(), Pol::Accounts::delete_account(), deregister_from_speech_events(), Pol::Mobile::Character::dexterity(), Pol::Mobile::Character::die(), disband_party(), do_cast(), drop_item_on_mobile(), Pol::Accounts::duplicate_account(), Pol::Mobile::Character::equippable(), Pol::Core::ConsoleCommand::exec_console_cmd(), ext_stats_in(), Pol::Accounts::find_account(), find_cmdlevel(), Pol::Core::ConsoleCommand::find_console_command(), find_giveitem_container(), Pol::Items::find_intrinsic_equipment(), Pol::Items::find_itemdesc(), Pol::Core::Menu::find_menu(), find_npc_template(), find_realm(), find_resource_def(), Pol::Mobile::Attribute::FindAttribute(), FindCmdLevelByAlias(), FindExportScript(), Pol::Core::Guild::FindGuild(), FindNpcTemplate(), Pol::Core::Guild::FindOrCreateGuild(), FindVital(), get_harvest_difficulty(), Pol::Core::StorageAreasImp::get_member(), get_mobile_count(), Pol::Items::get_objtype_byname(), get_region_string(), Pol::Mobile::Character::get_script_member_id(), get_textcmd_help(), get_toplevel_item_count(), GetCommandsInPackage(), GetListenPoints(), getObjtypeParam(), GetUOSkill(), Pol::Core::Guild::Guild(), handle_add(), handle_get_tip(), handle_open_spellbook(), handle_remove(), handle_target_cursor(), harvest_resource(), Pol::Items::has_itemdesc(), Pol::Items::Item::has_only_default_cprops(), Pol::Mobile::Character::heal_damage_hundredths(), hook(), http_func(), http_thread(), implicit_package_cmds_cfg(), Pol::Network::ClientInterface::Initialize(), Pol::Items::insert_intrinsic_equipment(), Pol::Mobile::Character::intelligence(), Pol::Mobile::NPC::intrinsic_weapon(), Pol::Mobile::Character::intrinsic_weapon(), Pol::Items::ItemDesc::ItemDesc(), landtile_flags(), landtile_uoflags(), Pol::Mobile::layer_to_zone(), load_anim_xlate_cfg(), Pol::Mobile::load_armor_zones(), Pol::Mobile::load_attribute_entry(), Pol::Mobile::load_attributes_cfg(), load_circle_data(), load_cmdlevels(), Pol::Core::ConsoleCommand::load_console_commands(), load_intrinsic_weapons(), load_landtile_cfg(), load_landtile_entry(), load_mime_config(), load_realms(), load_skill_entry(), load_system_hooks(), load_tips(), load_uoskills_cfg(), load_vital_entry(), load_vitals_cfg(), Pol::Core::MemoryUsage::log(), Pol::Testing::map_test(), Pol::Module::AttributeExecutorModule::mf_AlterAttributeTemporaryMod(), Pol::Module::UOExecutorModule::mf_AssignRectToWeatherRegion(), Pol::Module::VitalExecutorModule::mf_ConsumeMana(), Pol::Module::UOExecutorModule::mf_ConsumeReagents(), Pol::Module::GuildExecutorModule::mf_CreateGuild(), Pol::Module::PartyExecutorModule::mf_CreateParty(), Pol::Module::StorageExecutorModule::mf_CreateStorageArea(), Pol::Module::GuildExecutorModule::mf_DestroyGuild(), Pol::Module::UOExecutorModule::mf_EraseGlobalProperty(), Pol::Module::GuildExecutorModule::mf_FindGuild(), Pol::Module::StorageExecutorModule::mf_FindStorageArea(), Pol::Module::PolSystemExecutorModule::mf_GetCmdLevelName(), Pol::Module::UOExecutorModule::mf_GetGlobalProperty(), Pol::Module::UOExecutorModule::mf_GetGlobalPropertyNames(), Pol::Module::UOExecutorModule::mf_GetRegionLightLevelAtLocation(), Pol::Module::UOExecutorModule::mf_GetRegionName(), Pol::Module::UOExecutorModule::mf_GetRegionNameAtLocation(), Pol::Module::UOExecutorModule::mf_GetSpellDifficulty(), Pol::Module::UOExecutorModule::mf_ListAccounts(), Pol::Module::GuildExecutorModule::mf_ListGuilds(), Pol::Module::PolSystemExecutorModule::mf_ListTextCommands(), Pol::Module::PolSystemExecutorModule::mf_Realms(), Pol::Module::AttributeExecutorModule::mf_SetAttributeBaseValue(), Pol::Module::AttributeExecutorModule::mf_SetAttributeTemporaryMod(), Pol::Module::UOExecutorModule::mf_SetGlobalProperty(), Pol::Module::UOExecutorModule::mf_SetRegionLightLevel(), Pol::Module::UOExecutorModule::mf_SetRegionWeatherLevel(), Pol::Module::UOExecutorModule::mf_SpeakPowerWords(), Pol::Module::UOExecutorModule::mf_StartSpellEffect(), Pol::Module::UOExecutorModule::mf_Target(), Pol::Module::UOExecutorModule::mf_TargetCoordinates(), Pol::Module::UOExecutorModule::mf_TargetMultiPlacement(), Pol::Mobile::Character::move(), nocast_here(), Pol::Core::StorageAreasImp::OperSubscript(), optimize_zones(), place_item_in_secure_trade_container(), Pol::Mobile::Character::printProperties(), process_command(), Pol::Accounts::read_account_data(), Pol::Multi::read_boat_cfg(), read_guilds_dat(), read_item(), Pol::Items::read_itemdesc_file(), read_justice_zones(), read_light_zones(), Pol::Core::Menu::read_menus(), read_multi(), read_music_zones(), read_nocast_zones(), read_npc_templates(), read_party_dat(), Pol::Core::PolConfig::read_pol_config(), read_resource_cfg(), read_stacking_cfg(), read_starting_locations(), read_storage_dat(), read_weather_zones(), reap_thread(), Pol::Mobile::NPC::refresh_ar(), Pol::Mobile::Character::refresh_ar(), regen_resources(), regen_stats(), Pol::Core::RegionGroupBase::RegionGroupBase(), register_command(), register_for_speech_events(), register_guilds(), register_party_members(), register_spell(), remove_realm(), Pol::Accounts::reread_account(), Pol::Mobile::Character::resurrect(), sayto_listening_points(), Pol::Multi::UBoat::scripted_create(), send_action_to_inrange(), send_map_difs(), send_spellbook_contents(), send_start(), Pol::Mobile::Character::set_caps_to_default(), Pol::Mobile::Character::set_script_member_id(), Pol::Mobile::Character::set_vitals_to_maximum(), Pol::Mobile::Character::set_warmode(), SetRegionLightLevel(), should_switch_realm(), Pol::Mobile::Character::showarmor(), slurp(), start_client_char(), start_gameclock(), start_tasks(), start_textcmd_script(), start_threads(), Pol::Core::StorageAreasIterator::step(), Pol::Mobile::Character::strength(), Pol::Mobile::Character::strong_enough_to_equip(), Pol::Core::TargetCursor::TargetCursor(), textcmd_ident(), textcmd_repdata(), textcmd_startlog(), textcmd_stoplog(), Pol::Multi::UBoat::UBoat(), Pol::Mobile::Character::unhide(), UnicodeSpeechHandler(), Pol::Mobile::unload_armor_zones(), Pol::Items::unload_itemdesc(), unload_party(), Pol::Core::SystemHooks::unload_system_hooks(), update_gameclock(), update_rpm(), Pol::Core::USpell::USpell(), VALID_SPELL_ID(), Pol::Core::WeatherDef::WeatherDef(), Pol::Accounts::write_account_data(), write_data(), write_dirty_storage(), write_global_properties(), write_guilds(), write_items(), write_multis(), Pol::Items::write_objtypes_txt(), write_party(), write_resources_dat(), write_shadow_realms(), Pol::Accounts::Account::writeto(), Pol::xmain_inner(), Pol::xmain_outer(), Pol::Mobile::zone_name_to_zone(), and Pol::Mobile::zone_to_zone_name().
pthread_attr_t Pol::Core::http_attr |
Definition at line 772 of file polwww.cpp.
HWND Pol::Core::hwnd |
Definition at line 99 of file polservice.cpp.
USTRUCT_IDX Pol::Core::idxrec |
Definition at line 34 of file uofile02.cpp.
Referenced by Pol::UoTool::checkmultis(), Pol::UoConvert::create_multis_cfg(), readwater(), and staticsmax().
int Pol::Core::import_count |
Definition at line 524 of file uimport.cpp.
Referenced by import().
const int Pol::Core::INSERT_ADD_ITEM = 0x01 |
Definition at line 55 of file core.h.
Referenced by Pol::Core::UContainer::can_insert_add_item(), and Pol::Core::UContainer::on_insert_add_item().
const int Pol::Core::INSERT_INCREASE_STACK = 0x02 |
Definition at line 56 of file core.h.
Referenced by Pol::Core::UContainer::can_insert_increase_stack(), and Pol::Core::UContainer::on_insert_increase_stack().
const int Pol::Core::ITEMS_IGNORE_MULTIS = 0x02 |
Definition at line 65 of file core.h.
Referenced by Pol::Module::UOExecutorModule::mf_ListStaticsAtLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsInBox(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationOfType(), and Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationWithFlag().
const int Pol::Core::ITEMS_IGNORE_STATICS = 0x01 |
Definition at line 64 of file core.h.
Referenced by Pol::Module::UOExecutorModule::mf_ListStaticsAtLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsInBox(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationOfType(), and Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationWithFlag().
const u32 Pol::Core::ITEMSERIAL_END = 0x7FffFFffLu |
Definition at line 21 of file state.h.
Referenced by Pol::Core::ObjectHash::GetNextUnusedItemSerial().
const u32 Pol::Core::ITEMSERIAL_START = 0x40000000Lu |
Definition at line 20 of file state.h.
Referenced by Pol::Core::ObjectHash::GetNextUnusedItemSerial().
const int Pol::Core::JOURNAL_PRINT_NAME = 0x00 |
Definition at line 89 of file core.h.
Referenced by private_say_above(), and say_above().
const int Pol::Core::JOURNAL_PRINT_YOU_SEE = 0x01 |
Definition at line 90 of file core.h.
Referenced by private_say_above(), and say_above().
SVR_KEYDESC Pol::Core::keydesc |
Definition at line 14 of file ctable.cpp.
Referenced by Pol::Network::Client::transmit_encrypted().
const unsigned Pol::Core::LANDTILE_COUNT = 0x4000 |
Definition at line 27 of file clidata.h.
Referenced by landtile_flags(), landtile_uoflags(), and load_landtile_entry().
unsigned int Pol::Core::landtile_flags_arr[N_LANDTILEDATA] |
Definition at line 35 of file uofile01.cpp.
unsigned int Pol::Core::last_block = ~0u |
Definition at line 33 of file uofile02.cpp.
size_t Pol::Core::last_blocks_free = 0 |
Definition at line 23 of file allocd.cpp.
Referenced by PrintAllocationData().
size_t Pol::Core::last_blocks_used = 0 |
Definition at line 21 of file allocd.cpp.
Referenced by PrintAllocationData().
size_t Pol::Core::last_bytes_free = 0 |
Definition at line 24 of file allocd.cpp.
size_t Pol::Core::last_bytes_used = 0 |
Definition at line 22 of file allocd.cpp.
|
static |
Definition at line 23 of file gameclck.cpp.
Referenced by read_gameclock().
const int Pol::Core::LIST_IGNORE_Z = 0x40000000L |
Definition at line 67 of file core.h.
Referenced by Pol::Module::UOExecutorModule::internal_InBoxAreaChecks(), Pol::Module::UOExecutorModule::mf_ListItemsAtLocation(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocation(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocationOfType(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocationWithFlag(), Pol::Module::UOExecutorModule::mf_ListMobilesInBox(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocation(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocationEx(), Pol::Module::UOExecutorModule::mf_ListMultisInBox(), Pol::Module::UOExecutorModule::mf_ListObjectsInBox(), Pol::Module::UOExecutorModule::mf_ListStaticsAtLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsInBox(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationOfType(), and Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationWithFlag().
const int Pol::Core::LISTENPT_HEAR_GHOSTS = 0x01 |
Definition at line 48 of file listenpt.h.
Referenced by sayto_listening_points().
const int Pol::Core::LISTENPT_HEAR_TOKENS = 0x02 |
Definition at line 49 of file listenpt.h.
Referenced by sayto_listening_points().
const int Pol::Core::LISTENPT_NO_SPEECH = 0x04 |
Definition at line 50 of file listenpt.h.
Referenced by sayto_listening_points().
size_t Pol::Core::locker |
Definition at line 27 of file polsem.cpp.
Referenced by polsem_lock(), and threadstatus_thread().
const int Pol::Core::LOG_DATETIME = 0x01 |
Definition at line 80 of file core.h.
Referenced by Pol::Module::FileAccessExecutorModule::mf_LogToFile().
pthread_t Pol::Core::main_pthread |
Definition at line 45 of file polsig.cpp.
FILE * Pol::Core::mapdif_file = nullptr |
Definition at line 30 of file uofile00.cpp.
Referenced by rawmapfullread().
FILE * Pol::Core::mapdifl_file = nullptr |
Definition at line 29 of file uofile00.cpp.
Referenced by read_map_difs().
FILE * Pol::Core::mapfile = nullptr |
Definition at line 21 of file uofile00.cpp.
Referenced by Pol::Plib::InMemoryMapServer::InMemoryMapServer(), and rawmapfullread().
const unsigned Pol::Core::MAX_LIGHTLEVEL = 30 |
Definition at line 18 of file lightlvl.h.
const unsigned Pol::Core::MIN_LIGHTLEVEL = 0 |
Definition at line 17 of file lightlvl.h.
MoveDelta Pol::Core::move_delta |
Definition at line 16 of file ufacing.cpp.
Referenced by Pol::Mobile::NPC::anchor_allows_move(), Pol::Mobile::Character::CheckPushthrough(), Pol::Mobile::NPC::could_move(), Pol::Mobile::Character::CustomHousingMove(), Pol::Mobile::Character::getpos_ifmove(), Pol::Module::UOExecutorModule::mf_CanWalk(), Pol::Multi::UBoat::move(), Pol::Mobile::Character::move(), move_item(), Pol::Multi::UBoat::move_travellers(), and Pol::Mobile::NPC::npc_path_blocked().
const int Pol::Core::MOVEITEM_FORCELOCATION = 0x40000000L |
Definition at line 52 of file core.h.
Referenced by Pol::Multi::CustomHousesSelectFloor(), Pol::Multi::CustomHouseStopEditing(), Pol::Module::UOExecutorModule::internal_MoveCharacter(), Pol::Module::UOExecutorModule::internal_MoveItem(), Pol::Module::UOExecutorModule::mf_SendHousingTool(), move_character_to(), Pol::Multi::move_to_ground(), and Pol::Multi::UBoat::move_xy().
const int Pol::Core::MOVEITEM_IGNOREMOVABLE = 0x20000000L |
Definition at line 51 of file core.h.
Referenced by Pol::Module::UOExecutorModule::internal_MoveItem().
const unsigned Pol::Core::N_LANDTILEDATA = 0x4000 |
Definition at line 34 of file uofile01.cpp.
Referenced by read_landtiledata().
NOTIFYICONDATA Pol::Core::ndata |
Definition at line 100 of file polservice.cpp.
NetworkManager Pol::Core::networkManager |
Definition at line 28 of file network.cpp.
Referenced by acct_check(), Pol::Module::SQLExecutorModule::background_connect(), Pol::Module::SQLExecutorModule::background_query(), Pol::Module::SQLExecutorModule::background_select(), broadcast(), Pol::Core::BPacket::call_method_id(), cancel_all_trades(), char_select(), check_incoming_data(), Pol::Network::clean_packethooks(), client_io_thread(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Network::ClientTransmitThread(), Pol::Core::UoClientThread::create(), Pol::Core::MessageTypeFilter::createMessageFilter(), Pol::Mobile::Character::custom_script_method(), Pol::Multi::CustomHousesSendFull(), Pol::Core::GameState::deinitialize(), Pol::Network::Client::Disconnect(), Pol::Network::PacketRegistry::find_handler(), Pol::Network::PacketRegistry::get_callback(), Pol::Network::get_packethook(), Pol::Module::GetCoreVariable(), Pol::Module::GetIoStats(), Pol::Module::GetPktStatusObj(), Pol::Module::GetQueuedIoStats(), getSkillIdParam(), Pol::Network::PacketRegistry::handle_extended_cmd(), handle_skill_lock(), handle_use_skill(), Pol::Network::init_sockets_library(), Pol::Network::UOClientInterface::Initialize(), Pol::Network::initialize_client_interfaces(), Pol::Network::is_banned_ip(), Pol::Network::PacketRegistry::is_defined(), Pol::Network::load_auxservice_entry(), load_general_entry(), load_listener_entry(), load_protocol_entry(), Pol::Core::MemoryUsage::log(), loginserver_login(), Pol::Module::UOExecutorModule::mf_EnumerateOnlineCharacters(), Pol::Module::OSExecutorModule::mf_HTTPRequest(), Pol::Module::OSExecutorModule::mf_OpenConnection(), Pol::Module::UOExecutorModule::mf_SendOverallSeason(), Pol::Network::PacketRegistry::msglen(), Pol::Network::PacketRegistry::msglen_v2(), Pol::Core::Party::on_mana_changed(), Pol::Core::Party::on_stam_changed(), process_data(), Pol::Network::read_bannedips_config(), read_gameservers(), Pol::Network::PktHelper::ReAddPacket(), Pol::Network::Client::recv_remaining(), Pol::Network::Client::recv_remaining_nocrypt(), Pol::Network::PktHelper::RequestPacket(), restart_all_clients(), Pol::Network::AuxService::run(), Pol::Network::search_name(), select_server(), Pol::Network::PktHelper::PacketOut< T >::Send(), send_attributes_normalized(), send_full_statmsg(), send_mana_level(), send_owncreate(), Pol::Network::Client::send_pause(), send_put_in_container_to_inrange(), Pol::Network::Client::send_queued_data(), send_short_statmsg(), send_skillmsg(), send_stamina_level(), send_stat_locks(), send_update_hits_to_inrange(), SendUnicodeSpeech(), server_applies(), Pol::Network::PacketRegistry::set_extended_handler(), Pol::Network::PacketRegistry::set_handler(), Pol::Network::set_ip_address(), Pol::Network::set_lan_address(), SetRegionLightLevel(), SetRegionWeatherLevel(), sql_service_thread_stub(), Pol::Network::start_aux_services(), start_uo_client_listeners(), Pol::Network::ClientInterface::tell_vital_changed(), textcmd_constat(), threadstatus_thread(), Pol::Network::AuxClientThread::transmit(), Pol::Network::Client::transmit(), Pol::Network::transmit(), transmit_to_inrange(), transmit_to_others_inrange(), Pol::Network::Client::unregister(), update_all_weatherregions(), Pol::xmain_inner(), and Pol::Network::Client::xmit().
ObjectStorageManager Pol::Core::objStorageManager |
Definition at line 13 of file object_storage.cpp.
Referenced by Pol::Testing::add_npc(), Pol::Items::allocate_intrinsic_equipment_serials(), Pol::Core::GameState::cleanup_vars(), clear_save_index(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Multi::UMulti::create(), Pol::Items::Item::create(), createchar2(), defer_item_insertion(), Pol::Core::GameState::deinitialize(), display_leftover_objects(), get_save_index(), GetNewItemSerialNumber(), GetNextSerialNumber(), insert_deferred_items(), load_incremental_indexes(), Pol::Core::StorageArea::load_item(), Pol::Core::MemoryUsage::log(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), Pol::Module::UOExecutorModule::mf_ListOfflineMobilesInRealm(), read_character(), read_data(), read_global_item(), read_incremental_saves(), read_multi(), read_npc(), reap_thread(), register_deleted_serials(), Pol::Items::register_intrinsic_equipment(), save_incremental(), Pol::Multi::UHouse::scripted_create(), Pol::Multi::UBoat::scripted_create(), system_find_item(), system_find_mobile(), system_find_multi(), system_find_object(), write_characters(), write_data(), write_dirty_data(), write_dirty_storage(), write_index(), write_items(), write_npcs(), write_object_dirty_owners(), and Pol::xmain_inner().
|
static |
Definition at line 213 of file uimport.cpp.
const unsigned Pol::Core::POLCLASS_ARMOR = 15 |
Definition at line 27 of file polclass.h.
Referenced by Pol::Items::UArmor::script_isa().
const unsigned Pol::Core::POLCLASS_BOAT = 12 |
Definition at line 24 of file polclass.h.
Referenced by Pol::Module::UOExecutorModule::mf_MoveObjectToLocation(), and Pol::Multi::UBoat::script_isa().
const unsigned Pol::Core::POLCLASS_CONTAINER = 6 |
Definition at line 18 of file polclass.h.
Referenced by Pol::Mobile::Character::attack(), find_legal_container(), Pol::Mobile::Character::find_wornitem(), Pol::Module::UOExecutorModule::mf_CloseWindow(), Pol::Module::UOExecutorModule::mf_MoveObjectToLocation(), and Pol::Core::UContainer::script_isa().
const unsigned Pol::Core::POLCLASS_CORPSE = 7 |
Definition at line 19 of file polclass.h.
Referenced by Pol::Core::UCorpse::script_isa().
const unsigned Pol::Core::POLCLASS_DOOR = 8 |
Definition at line 20 of file polclass.h.
Referenced by Pol::Core::UDoor::script_isa().
const unsigned Pol::Core::POLCLASS_EQUIPMENT = 14 |
Definition at line 26 of file polclass.h.
Referenced by Pol::Items::Equipment::script_isa().
const unsigned Pol::Core::POLCLASS_HOUSE = 13 |
Definition at line 25 of file polclass.h.
Referenced by Pol::Multi::UHouse::script_isa().
const unsigned Pol::Core::POLCLASS_ITEM = 2 |
Definition at line 14 of file polclass.h.
Referenced by Pol::Module::UOExecutorModule::mf_MoveObjectToLocation(), and Pol::Items::Item::script_isa().
const unsigned Pol::Core::POLCLASS_LOCKABLE = 5 |
Definition at line 17 of file polclass.h.
Referenced by Pol::Core::ULockable::script_isa().
const unsigned Pol::Core::POLCLASS_MAP = 10 |
Definition at line 22 of file polclass.h.
Referenced by Pol::Core::Map::script_isa().
const unsigned Pol::Core::POLCLASS_MOBILE = 3 |
Definition at line 15 of file polclass.h.
Referenced by Pol::Core::TargetCursor::handle_target_cursor(), Pol::Module::UOExecutorModule::mf_CloseWindow(), Pol::Module::UOExecutorModule::mf_MoveObjectToLocation(), and Pol::Mobile::Character::script_isa().
const unsigned Pol::Core::POLCLASS_MULTI = 11 |
Definition at line 23 of file polclass.h.
Referenced by Pol::Module::UOExecutorModule::mf_CreateItemCopyAtLocation(), Pol::Module::UOExecutorModule::mf_MoveObjectToLocation(), and Pol::Multi::UMulti::script_isa().
const unsigned Pol::Core::POLCLASS_NPC = 4 |
Definition at line 16 of file polclass.h.
Referenced by Pol::Core::TargetCursor::handle_target_cursor(), Pol::Mobile::Character::move(), Pol::Mobile::NPC::script_isa(), and Pol::Mobile::Character::set_opponent().
const unsigned Pol::Core::POLCLASS_OBJECT = 1 |
Definition at line 13 of file polclass.h.
Referenced by Pol::Core::UObject::script_isa().
const unsigned Pol::Core::POLCLASS_SPELLBOOK = 9 |
Definition at line 21 of file polclass.h.
Referenced by add_loaded_item(), Pol::Core::USpellScroll::get_senditem_amount(), handle_open_spellbook(), knows_spell(), Pol::Core::Spellbook::script_isa(), and Pol::Mobile::Character::spellbook().
const unsigned Pol::Core::POLCLASS_WEAPON = 16 |
Definition at line 28 of file polclass.h.
Referenced by Pol::Items::UWeapon::script_isa().
const unsigned Pol::Core::POLCLOCK_DIV = ( CLOCKS_PER_SEC / POLCLOCKS_PER_SEC ) |
Definition at line 30 of file polclock.h.
Referenced by polclock().
const polclock_t Pol::Core::POLCLOCKS_PER_SEC = 100 |
Definition at line 29 of file polclock.h.
Referenced by check_blocked(), client_io_thread(), Pol::Mobile::Character::GetAggressorTo(), Pol::Module::GetCoreVariable(), Pol::Mobile::Character::GetLawFullyDamaged(), Pol::Mobile::Character::make_aggressor_to(), Pol::Mobile::Character::make_criminal(), Pol::Mobile::Character::make_lawfullydamaged_to(), Pol::Module::OSExecutorModule::mf_performance_diff(), Pol::Core::RepSystem::on_pc_attacks_pc(), Pol::Core::RepSystem::on_pc_damages_pc(), polclock_checkin(), Pol::Core::RepSystem::repsys_task(), Pol::Mobile::Character::schedule_attack(), Pol::Mobile::Character::script_method_id(), Pol::Mobile::Character::set_party_invite_timeout(), Pol::Core::PeriodicTask::set_secs(), Pol::Module::OSExecutorModule::SleepFor(), Pol::Module::OSExecutorModule::SleepForMs(), threadstatus_thread(), timeoutstr(), and Pol::Module::OSExecutorModule::wait_for_event().
const char* Pol::Core::poldbg_base_members[] |
Definition at line 49 of file poldbg.cpp.
const char* Pol::Core::poldbg_itemref_members[] |
Definition at line 53 of file poldbg.cpp.
const char* Pol::Core::poldbg_mobileref_members[] |
Definition at line 82 of file poldbg.cpp.
pthread_mutex_t Pol::Core::polsem |
Definition at line 142 of file polsem.cpp.
Referenced by polsem_lock(), and polsem_unlock().
pthread_mutexattr_t Pol::Core::polsem_attr |
Definition at line 141 of file polsem.cpp.
pthread_mutex_t Pol::Core::polsemdbg_mut = PTHREAD_MUTEX_INITIALIZER |
Definition at line 161 of file polsem.cpp.
pthread_cond_t Pol::Core::pulse_cond = PTHREAD_COND_INITIALIZER |
Definition at line 147 of file polsem.cpp.
pthread_mutex_t Pol::Core::pulse_mut = PTHREAD_MUTEX_INITIALIZER |
Definition at line 146 of file polsem.cpp.
|
static |
Definition at line 33 of file uofile08.cpp.
|
static |
Definition at line 34 of file uofile08.cpp.
|
static |
Definition at line 50 of file uofile02.cpp.
|
static |
Definition at line 51 of file uofile02.cpp.
const int Pol::Core::RESURRECT_FORCELOCATION = 0x01 |
Definition at line 53 of file core.h.
Referenced by Pol::Module::UOExecutorModule::mf_Resurrect().
const int Pol::Core::SAVE_FULL = 0x00 |
Definition at line 77 of file core.h.
Referenced by Pol::Core::PolConfig::read_pol_config(), and Pol::xmain_inner().
const int Pol::Core::SAVE_INCREMENTAL = 0x01 |
Definition at line 78 of file core.h.
Referenced by Pol::Module::UOExecutorModule::mf_SaveWorldState(), and Pol::Core::PolConfig::read_pol_config().
Bscript::BApplicObjType Pol::Core::scriptexobjimp_type |
Definition at line 41 of file exscrobj.cpp.
ScriptScheduler Pol::Core::scriptScheduler |
Definition at line 17 of file script_internals.cpp.
Referenced by calc_script_clocksleft(), Pol::Module::PolCore::call_method(), check_blocked(), Pol::Core::GameState::cleanup_scripts(), clear_script_profile_counters(), Pol::Core::DebugContext::cmd_pidlist(), Pol::Core::DebugContext::cmd_scriptins(), Pol::Core::DebugContext::cmd_scriptlist(), Pol::Core::DebugContext::cmd_scriptprofile(), Pol::Core::DebugContext::cmd_scriptsrc(), Pol::Core::DebugContext::cmd_setscript(), find_script(), find_script2(), find_uoexec(), Pol::Core::ScriptScheduler::free_pid(), Pol::Module::freepid(), Pol::Module::GetAllScriptList(), Pol::Module::GetCoreVariable(), Pol::Module::getnewpid(), Pol::Module::GetRunningScriptList(), Pol::Module::GetScriptProfiles(), list_crit_scripts(), list_scripts(), Pol::Core::MemoryUsage::log(), log_all_script_cycle_counts(), Pol::Module::OSExecutorModule::mf_performance_diff(), Pol::Module::OSExecutorModule::revive(), Pol::Module::OSExecutorModule::revive_debugged(), run_ready(), schedule_executor(), script_loaded(), start_script(), step_scripts(), textcmd_procs(), unload_all_scripts(), unload_script(), and update_sysload().
const int Pol::Core::SENDDIALOGMENU_FORCE_OLD = 0x01 |
Definition at line 75 of file core.h.
Referenced by Pol::Module::UOExecutorModule::mf_SendGumpMenu().
SettingsManager Pol::Core::settingsManager |
Definition at line 14 of file settings.cpp.
Referenced by Pol::Core::Party::add_candidate(), add_candidate(), Pol::Core::Party::add_member(), Pol::Mobile::Character::apply_damage(), Pol::Mobile::NPC::armor_absorb_damage(), Pol::Mobile::Character::attack(), Pol::Module::buyhandler(), Pol::Module::EPartyRefObjImp::call_method_id(), Pol::Mobile::Character::can_access(), Pol::Core::Party::can_add(), Pol::Core::UContainer::can_add_bulk(), Pol::Core::UContainer::can_add_to_slot(), Pol::Mobile::Character::can_face(), Pol::Mobile::Character::carrying_capacity(), Pol::Mobile::Character::Character(), Pol::Mobile::Character::check_attack_after_move(), check_config(), Pol::Mobile::Character::check_light_region_change(), Pol::Network::Client::Client(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), Pol::Items::ItemDesc::create(), Pol::Items::Item::create(), Pol::Multi::UBoat::create_components(), Pol::Items::create_intrinsic_shield(), Pol::Items::create_intrinsic_weapon(), create_nametags(), Pol::Mobile::Character::create_trade_container(), Pol::Mobile::Character::die(), Pol::Core::Party::disband(), Pol::Mobile::Character::do_imhit_effects(), Pol::Core::Spellbook::double_click(), doubleclick(), Pol::Realms::Realm::dropheight(), Pol::Mobile::Character::equippable(), ext_stats_in(), Pol::Mobile::Character::face(), Pol::Multi::UBoat::fixInvalidGraphic(), format_description(), Pol::Multi::get_component_objtype(), Pol::Mobile::Character::get_flag1(), getObjtypeParam(), handle_accept_invite(), Pol::Mobile::handle_attack(), handle_client_version(), handle_decline_invite(), handle_loot_perm(), handle_member_msg(), handle_mode_set(), handle_party_msg(), handle_processed_speech(), handle_remove(), handle_remove_member_cursor(), handle_skill_lock(), handle_walk(), Pol::Core::RepSystem::hilite_color_idx(), Pol::Mobile::NPC::hilite_color_idx(), in_say_range(), in_whisper_range(), in_yell_range(), 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(), invite_timeout(), Pol::Mobile::Character::is_attackable(), Pol::Core::AStarBlockers::IsBlocking(), Pol::Core::UOPathState::IsGoal(), load_intrinsic_weapons(), load_movecost(), load_party_cfg(), load_party_cfg_general(), load_party_cfg_hooks(), load_repsys_cfg_general(), load_repsys_cfg_hooks(), load_repsys_cfg_namecoloring(), Pol::Core::MemoryUsage::log(), Pol::Realms::Realm::lowest_standheight(), Pol::Mobile::Character::make_aggressor_to(), Pol::Mobile::Character::make_criminal(), Pol::Mobile::Character::make_lawfullydamaged_to(), Pol::Module::UOExecutorModule::mf_AddMenuItem(), Pol::Module::PolSystemExecutorModule::mf_AddRealm(), Pol::Module::VitalExecutorModule::mf_ApplyDamage(), Pol::Module::VitalExecutorModule::mf_ApplyRawDamage(), Pol::Module::PartyExecutorModule::mf_CreateParty(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::UOExecutorModule::mf_GetRegionLightLevelAtLocation(), Pol::Module::PartyExecutorModule::mf_SendPartyMsg(), Pol::Module::PartyExecutorModule::mf_SendPrivatePartyMsg(), Pol::Mobile::Character::move(), movecost(), Pol::Core::RepSystem::name_color(), Pol::Mobile::NPC::name_color(), Pol::Mobile::NPC::npc_path_blocked(), Pol::Multi::BoatShape::objtype_is_component(), Pol::Mobile::NPC::on_ghost_pc_spoke(), on_loggoff_party(), Pol::Core::RepSystem::on_pc_attacks_pc(), Pol::Core::RepSystem::on_pc_damages_pc(), Pol::Core::RepSystem::on_pc_helps_pc(), Pol::Mobile::NPC::on_pc_spoke(), open_trade_window(), process_data(), Pol::Core::CombatConfig::read_combat_config(), read_extobj(), read_party_dat(), read_pol_dat(), Pol::Core::ServSpecOpt::read_servspecopt(), read_system_vars(), Pol::Mobile::Character::readAttributesAndVitals(), Pol::Mobile::Character::readCommonProperties(), Pol::Multi::UBoat::readProperties(), Pol::Items::Item::readProperties(), Pol::Mobile::Character::realm_changed(), regen_stats(), Pol::Mobile::NPC::repsys_on_attack(), Pol::Mobile::Character::repsys_on_attack(), Pol::Mobile::NPC::repsys_on_damage(), Pol::Mobile::Character::repsys_on_damage(), Pol::Mobile::NPC::repsys_on_help(), Pol::Mobile::Character::repsys_on_help(), Pol::Multi::UBoat::reread_components(), run_start_scripts(), Pol::Module::NPCExecutorModule::say(), sayto_listening_points(), Pol::Module::NPCExecutorModule::SayUC(), Pol::Module::sellhandler(), Pol::Network::ObjRevisionPkt::Send(), send_feature_enable(), send_full_statmsg(), Pol::Core::Party::send_member_msg_private(), Pol::Core::Party::send_member_msg_public(), send_object_cache(), send_object_cache_to_inrange(), send_owncreate(), send_paperdoll(), send_skillmsg(), send_start(), Pol::Network::send_uo_skill(), SendUnicodeSpeech(), Pol::Mobile::Character::set_party_invite_timeout(), Pol::Items::Item::setcolor(), SetRegionLightLevel(), singleclick(), Pol::Items::Item::slot_index(), Pol::Core::ServSpecOpt::ssopt_parse_totalstats(), Pol::Realms::Realm::standheight(), start_client_char(), start_threads(), Pol::Multi::UBoat::transform_components(), unload_party_hooks(), unload_repsys_cfg_hooks(), Pol::Items::validate_intrinsic_shield_template(), validface(), write_party(), Pol::xmain_inner(), and Pol::Core::UOExecutor::~UOExecutor().
FILE * Pol::Core::sidxfile = nullptr |
Definition at line 22 of file uofile00.cpp.
Referenced by rawstaticfullread(), readwater(), and staticsmax().
int Pol::Core::srec_count |
Definition at line 36 of file uofile02.cpp.
Referenced by rawstaticfullread().
USTRUCT_STATIC Pol::Core::srecs[MAX_STATICS_PER_BLOCK] |
Definition at line 35 of file uofile02.cpp.
FILE * Pol::Core::stadif_file = nullptr |
Definition at line 28 of file uofile00.cpp.
Referenced by rawstaticfullread().
FILE * Pol::Core::stadifi_file = nullptr |
Definition at line 27 of file uofile00.cpp.
Referenced by rawstaticfullread().
StaticDifBlockIndex Pol::Core::stadifl |
Definition at line 43 of file uofile02.cpp.
FILE * Pol::Core::stadifl_file = nullptr |
Definition at line 26 of file uofile00.cpp.
Referenced by read_static_diffs().
StateManager Pol::Core::stateManager |
Definition at line 8 of file state.cpp.
Referenced by add_loaded_item(), Pol::Core::UContainer::can_add_bulk(), catch_signals_thread(), Pol::Mobile::Character::Character(), check_blocked(), checkpoint(), combined_thread(), console_thread(), decay_items(), decay_single_thread(), decay_worldzone(), Pol::Core::UObject::destroy(), display_leftover_objects(), Pol::Module::ECharacterRefObjImp::ECharacterRefObjImp(), equip_loaded_item(), Pol::Core::ConsoleCommand::exec_console_cmd(), Pol::Module::GetCoreVariable(), GetCurrentCharSerialNumber(), GetCurrentItemSerialNumber(), GetNewItemSerialNumber(), GetNextSerialNumber(), handle_HUP(), handle_SIGUSR1(), Pol::Items::Item::Item(), Pol::Core::MemoryUsage::log(), log_all_script_cycle_counts(), Pol::Module::OSExecutorModule::mf_system_rpm(), Pol::Mobile::NPC::NPC(), pause_polclock(), polclock_checkin(), read_data(), read_system_vars(), Pol::Mobile::Character::readAttributesAndVitals(), Pol::Items::register_intrinsic_equipment(), restart_polclock(), Pol::Core::ScriptScheduler::run_ready(), scripts_thread(), SetCurrentCharSerialNumber(), SetCurrentItemSerialNumber(), setup_update_rpm(), textcmd_orphans(), threadstatus_thread(), Pol::Multi::UMulti::UMulti(), Pol::Core::UObject::UObject(), update_rpm(), update_sysload(), UseCharSerialNumber(), UseItemSerialNumber(), Pol::xmain_inner(), Pol::xmain_outer(), Pol::Mobile::Character::~Character(), Pol::Module::ECharacterRefObjImp::~ECharacterRefObjImp(), Pol::Items::Item::~Item(), Pol::Mobile::NPC::~NPC(), Pol::Multi::UMulti::~UMulti(), and Pol::Core::UObject::~UObject().
FILE * Pol::Core::statfile = nullptr |
Definition at line 23 of file uofile00.cpp.
Referenced by rawstaticfullread(), and readwater().
bool Pol::Core::static_debug_on = false |
Definition at line 29 of file uofile02.cpp.
Referenced by Pol::Realms::Realm::dropheight(), Pol::Realms::Realm::lowest_standheight(), standheight(), and Pol::Realms::Realm::standheight().
const unsigned Pol::Core::SYSFIND_SEARCH_OFFLINE_MOBILES = 1 |
Definition at line 31 of file fnsearch.h.
Referenced by Pol::Module::UOExecutorModule::mf_SystemFindObjectBySerial().
const unsigned Pol::Core::SYSFIND_SKIP_WORLD = 4 |
Definition at line 33 of file fnsearch.h.
Referenced by read_npcequip_dat(), read_npcs_dat(), read_pcequip_dat(), and read_pcs_dat().
pthread_cond_t Pol::Core::task_pulse_cond = PTHREAD_COND_INITIALIZER |
Definition at line 153 of file polsem.cpp.
pthread_mutex_t Pol::Core::task_pulse_mut = PTHREAD_MUTEX_INITIALIZER |
Definition at line 152 of file polsem.cpp.
pthread_attr_t Pol::Core::thread_attr |
Definition at line 163 of file polsem.cpp.
bool Pol::Core::thread_started |
Definition at line 158 of file polsem.cpp.
pthread_mutex_t Pol::Core::threadstart_mut = PTHREAD_MUTEX_INITIALIZER |
Definition at line 155 of file polsem.cpp.
pthread_cond_t Pol::Core::threadstart_pulse_cond = PTHREAD_COND_INITIALIZER |
Definition at line 157 of file polsem.cpp.
pthread_mutex_t Pol::Core::threadstart_pulse_mut = PTHREAD_MUTEX_INITIALIZER |
Definition at line 156 of file polsem.cpp.
TileData* Pol::Core::tiledata |
Definition at line 32 of file uofile01.cpp.
Referenced by clear_tiledata().
FILE * Pol::Core::tilefile = nullptr |
Definition at line 25 of file uofile00.cpp.
Referenced by readlandtile(), and readtile().
u8 Pol::Core::tmp_flag1 |
Definition at line 15 of file tmpvars.cpp.
Referenced by textcmd_flag1().
u8 Pol::Core::tmp_flag2 |
Definition at line 16 of file tmpvars.cpp.
Referenced by textcmd_flag2().
std::set<UObject*> Pol::Core::unreaped_orphan_instances |
Definition at line 42 of file uobject.cpp.
unsigned short Pol::Core::uo_map_height = 4096 |
Definition at line 90 of file uofile00.cpp.
Referenced by Pol::UoConvert::create_map(), Pol::UoConvert::create_maptile(), Pol::UoTool::defragstatics(), Pol::UoConvert::get_lowestadjacentz(), Pol::UoConvert::UoConvertMain::main(), Pol::UoConvert::ProcessSolidBlock(), rawmapfullread(), rawstaticfullread(), readstaticblock(), and safe_getmapinfo().
unsigned short Pol::Core::uo_map_width = 6144 |
Definition at line 89 of file uofile00.cpp.
Referenced by Pol::UoConvert::create_map(), Pol::UoConvert::create_maptile(), Pol::UoTool::defragstatics(), Pol::UoConvert::get_lowestadjacentz(), Pol::UoConvert::UoConvertMain::main(), Pol::UoConvert::ProcessSolidBlock(), rawmapfullread(), rawstaticfullread(), readstaticblock(), and safe_getmapinfo().
int Pol::Core::uo_mapid = 0 |
Definition at line 85 of file uofile00.cpp.
Referenced by Pol::UoConvert::create_map(), Pol::UoTool::defragstatics(), Pol::UoConvert::UoConvertMain::main(), open_map_file(), rawmapfullread(), and Pol::Plib::MapWriter::WriteConfigFile().
bool Pol::Core::uo_readuop = true |
Definition at line 87 of file uofile00.cpp.
Referenced by Pol::UoConvert::create_map(), and Pol::UoConvert::UoConvertMain::main().
int Pol::Core::uo_usedif = 0 |
Definition at line 86 of file uofile00.cpp.
Referenced by Pol::UoConvert::create_map(), Pol::UoTool::defragstatics(), Pol::UoConvert::UoConvertMain::main(), and Pol::Plib::MapWriter::WriteConfigFile().
std::ifstream Pol::Core::uopmapfile |
Definition at line 32 of file uofile00.cpp.
Referenced by open_uopmap_file(), and rawmapfullread().
const unsigned Pol::Core::VALID_ITEM_COLOR_MASK = 0x0FFF |
Definition at line 76 of file uconst.h.
Referenced by equip_from_template(), and Pol::Module::handle_selcolor().
const int Pol::Core::VENDOR_BUYABLE_CONTAINER_FILTER = 0x02 |
Definition at line 73 of file core.h.
Referenced by Pol::Module::UOExecutorModule::mf_SendSellWindow().
const int Pol::Core::VENDOR_SEND_AOS_TOOLTIP = 0x01 |
Definition at line 72 of file core.h.
Referenced by Pol::Module::UOExecutorModule::mf_SendBuyWindow(), and Pol::Module::UOExecutorModule::mf_SendSellWindow().
FILE * Pol::Core::verfile = nullptr |
Definition at line 24 of file uofile00.cpp.
Referenced by Pol::UoConvert::create_multis_cfg(), Pol::UoTool::print_verdata_info(), read_veridx(), readlandtile(), readtile(), and seekto_newer_version().
VerdataIndexes Pol::Core::vidx[32] |
Definition at line 67 of file uofile01.cpp.
const unsigned int Pol::Core::vidx_count = 32 |
Definition at line 68 of file uofile01.cpp.
const unsigned int Pol::Core::VITAL_HIGHEST_MAX_HUNDREDTHS = 10000000L |
Definition at line 60 of file vital.h.
Referenced by Pol::Mobile::Character::calc_single_vital().
const int Pol::Core::VITAL_HIGHEST_REGENRATE = 30000 |
Definition at line 52 of file vital.h.
Referenced by Pol::Mobile::Character::calc_single_vital().
const unsigned int Pol::Core::VITAL_LOWEST_MAX_HUNDREDTHS = 100L |
Definition at line 59 of file vital.h.
Referenced by Pol::Mobile::Character::calc_single_vital().
const int Pol::Core::VITAL_LOWEST_REGENRATE = -30000 |
Definition at line 51 of file vital.h.
Referenced by Pol::Mobile::Character::calc_single_vital().
const unsigned int Pol::Core::VITAL_MAX_HUNDREDTHS = 10000000L |
Definition at line 57 of file vital.h.
Referenced by Pol::Module::VitalExecutorModule::mf_ConsumeVital(), and Pol::Module::VitalExecutorModule::mf_SetVital().
const unsigned Pol::Core::VITAL_MAX_VALUE = 100000L |
Definition at line 55 of file vital.h.
Referenced by Pol::Mobile::Character::readAttributesAndVitals().
std::set<unsigned int> Pol::Core::water |
Definition at line 18 of file uofile04.cpp.
Referenced by Pol::UoTool::print_statics().
unsigned Pol::Core::WM_TASKBARCREATED |
Definition at line 98 of file polservice.cpp.
TRANSLATION Pol::Core::xlate_align[] |
Definition at line 52 of file npctmpl.cpp.
const short Pol::Core::ZCOORD_MAX = +127 |
Definition at line 16 of file poltype.h.
Referenced by Pol::Module::UOExecutorModule::internal_InBoxAreaChecks(), Pol::Module::UOExecutorModule::mf_CreateItemAtLocation(), Pol::Module::UOExecutorModule::mf_CreateItemCopyAtLocation(), Pol::Module::UOExecutorModule::mf_CreateMultiAtLocation(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::UOExecutorModule::mf_MoveObjectToLocation(), Pol::Multi::UBoat::script_method_id(), Pol::Realms::Realm::valid(), and Pol::UoTool::z_histogram().
const short Pol::Core::ZCOORD_MIN = -128 |
Definition at line 15 of file poltype.h.
Referenced by Pol::Realms::Realm::dropheight(), groundheight(), Pol::Realms::Realm::groundheight(), Pol::Module::UOExecutorModule::internal_InBoxAreaChecks(), Pol::Module::UOExecutorModule::mf_CreateItemAtLocation(), Pol::Module::UOExecutorModule::mf_CreateItemCopyAtLocation(), Pol::Module::UOExecutorModule::mf_CreateMultiAtLocation(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::UOExecutorModule::mf_MoveObjectToLocation(), Pol::Multi::UBoat::script_method_id(), Pol::Realms::Realm::valid(), and Pol::UoTool::z_histogram().
const unsigned Pol::Core::ZONE_SHIFT = 2 |
Definition at line 19 of file zone.h.
Referenced by XyToZone().
const unsigned Pol::Core::ZONE_SIZE = 4 |
Definition at line 18 of file zone.h.
Referenced by Pol::Core::WeatherDef::copy_default_regions(), Pol::Core::RegionGroupBase::estimateSize(), Pol::Core::WeatherDef::estimateSize(), Pol::Core::RegionGroupBase::RegionGroupBase(), Pol::Core::WeatherDef::WeatherDef(), Pol::Core::RegionGroupBase::~RegionGroupBase(), and Pol::Core::WeatherDef::~WeatherDef().