|
Pol
Revision:cb584c9
|
Typedefs | |
| typedef weak_ptr< Network::Client > | ClientPtrHolder |
| typedef Bscript::BApplicObj< DataFileElemObj > | DataElemRefObjImpBase |
| typedef ref_ptr< DataFileContents > | DataFileContentsRef |
| typedef ref_ptr< DataFileElement > | DataFileElementRef |
| typedef Bscript::BApplicObj< DataFileContentsRef > | DataFileRefObjImpBase |
| typedef Bscript::BApplicObj< ref_ptr< Core::StoredConfigElem > > | EConfigElemRefObjImpBase |
| typedef Bscript::BApplicObj< ref_ptr< Core::StoredConfigFile > > | EConfigFileRefObjImpBase |
| typedef Bscript::BApplicObj< PackagePtrHolder > | PackageObjImpBase |
| typedef Plib::AStarSearch< UOPathState > | UOSearch |
Definition at line 216 of file uoscrobj.h.
Definition at line 110 of file datastoreimp.h.
Definition at line 76 of file datastoreimp.h.
Definition at line 40 of file datastoreimp.h.
Definition at line 79 of file datastoreimp.h.
Definition at line 73 of file polsystemmod.cpp.
| BObjectImp* Pol::Module::_complete_create_item_at_location | ( | Item * | item, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| short | z, | ||
| Realms::Realm * | realm | ||
| ) |
Definition at line 1088 of file uomod.cpp.
References Pol::Core::add_item_to_world(), Pol::Core::UObject::destroy(), Pol::Items::find_itemdesc(), Pol::Bscript::BObjectImp::isTrue(), Pol::Core::UObject::objtype_, Pol::Core::ULWObject::realm, Pol::Core::register_with_supporting_multi(), Pol::Core::run_script_to_completion(), Pol::Core::update_item_to_inrange(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Module::UOExecutorModule::mf_CreateItemAtLocation(), and Pol::Module::UOExecutorModule::mf_CreateItemCopyAtLocation().
| BObjectImp * Pol::Module::_create_item_in_container | ( | UContainer * | cont, |
| const ItemDesc * | descriptor, | ||
| unsigned short | amount, | ||
| bool | force_stacking, | ||
| UOExecutorModule * | uoemod | ||
| ) |
Definition at line 339 of file uomod.cpp.
References Pol::Core::UContainer::add_at_random_location(), Pol::Core::UContainer::begin(), Pol::Core::UContainer::can_add(), Pol::Items::Item::can_add_to_self(), Pol::Core::UContainer::can_add_to_slot(), Pol::Core::UContainer::can_insert_add_item(), Pol::Core::UContainer::can_insert_increase_stack(), Pol::Items::ItemDesc::color, Pol::Core::UObject::color, Pol::Module::UOExecutorModule::controller_, Pol::Items::Item::create(), Pol::Items::ItemDesc::create_script, Pol::Core::UObject::destroy(), Pol::Core::ScriptDef::empty(), Pol::Core::UContainer::end(), GET_ITEM_PTR, Pol::Items::Item::getamount(), Pol::Items::Item::GetCharacterOwner(), Pol::Items::ItemDesc::graphic, Pol::Items::Item::has_only_default_cprops(), Pol::Items::ItemDesc::insured, Pol::Items::Item::insured(), Pol::Items::Item::inuse(), Pol::Module::UOExecutorModule::is_reserved_to_me(), Pol::Bscript::BObjectImp::isTrue(), Pol::Core::UContainer::MT_CORE_CREATED, Pol::Items::Item::newbie(), Pol::Items::ItemDesc::objtype, Pol::Core::UObject::objtype_, Pol::Core::UContainer::on_insert_add_item(), Pol::Core::UContainer::on_insert_increase_stack(), Pol::Core::ULWObject::orphan(), Pol::Core::ULWObject::realm, Pol::Core::run_script_to_completion(), Pol::Items::Item::setamount(), Pol::Items::Item::slot_index(), Pol::Plib::FLAG::STACKABLE, Pol::Core::tile_flags(), Pol::Core::update_item_to_inrange(), and Pol::Core::UpdateCharacterWeight().
Referenced by Pol::Module::UOExecutorModule::mf_CreateItemInBackpack(), Pol::Module::UOExecutorModule::mf_CreateItemInContainer(), Pol::Module::UOExecutorModule::mf_CreateItemInInventory(), Pol::Module::UOExecutorModule::mf_SendSellWindow(), and oldSellHandler().
| void Pol::Module::add_script | ( | ObjArray * | arr, |
| UOExecutor * | uoexec, | ||
| const char * | |||
| ) |
Definition at line 1711 of file uomod2.cpp.
References Pol::Bscript::ObjArray::addElement().
Referenced by GetAllScriptList(), and GetRunningScriptList().
Definition at line 1646 of file uomod.cpp.
References Pol::Bscript::ObjArray::addElement(), Pol::Core::Menu::find_menu(), Pol::Core::Menu::menuitems_, Pol::Core::MenuItem::objtype_, and Pol::Core::MenuItem::submenu_id.
Referenced by Pol::Module::UOExecutorModule::mf_GetMenuObjTypes().
Definition at line 548 of file uomod2.cpp.
References Pol::Mobile::Character::backpack(), cfBEu16, cfBEu32, Pol::Network::Client::chr, ref_ptr< T >::clear(), Pol::Core::EVID_MERCHANT_SOLD, Pol::Core::UContainer::find(), Pol::Network::Client::gd, ref_ptr< T >::get(), Pol::Items::Item::getamount(), Pol::Core::PKTBI_3B::item_serial, Pol::Core::PKTBI_3B::items, Pol::Items::Item::make_ref(), Pol::Core::PKTBI_3B::msglen, Pol::Core::PKTBI_3B::number_bought, oldBuyHandler(), Pol::Core::ULWObject::orphan(), Pol::Core::ServSpecOpt::scripted_merchant_handlers, send_clear_vendorwindow(), Pol::Mobile::NPC::send_event(), Pol::Core::UObject::serial_ext, Pol::Core::settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::PKTBI_3B::status, Pol::Core::PKTBI_3B::STATUS_NOTHING_BOUGHT, Pol::Network::ClientGameData::vendor, Pol::Network::ClientGameData::vendor_bought, Pol::Network::ClientGameData::vendor_for_sale, and Pol::Core::PKTBI_3B::vendor_serial.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
| unsigned int Pol::Module::calculate_cost | ( | Character * | , |
| UContainer * | for_sale, | ||
| UContainer * | bought, | ||
| PKTBI_3B * | msg | ||
| ) |
Definition at line 331 of file uomod2.cpp.
References cfBEu16, cfBEu32, Pol::Core::UContainer::find(), Pol::Core::PKTBI_3B::item_serial, Pol::Core::PKTBI_3B::items, Pol::Core::PKTBI_3B::msglen, Pol::Core::PKTBI_3B::number_bought, and Pol::Items::Item::sellprice().
Referenced by oldBuyHandler().
| void Pol::Module::character_race_changer_handler | ( | Network::Client * | client, |
| Core::PKTBI_BF * | msg | ||
| ) |
Definition at line 2565 of file uomod2.cpp.
References Pol::Core::PKTBI_BF_2A_RESULT::BeardHue, Pol::Core::PKTBI_BF_2A_RESULT::BeardId, Pol::Core::PKTBI_BF_2A_RESULT::BodyHue, cfBEu16, Pol::Core::PKTBI_BF::characterracechanger, Pol::Network::Client::chr, Pol::Core::UObject::color, Pol::Items::Item::create(), ctBEu16, Pol::Core::destroy_item(), Pol::Mobile::Character::equip(), Pol::Core::PKTBI_BF_2A_RESULT::HairHue, Pol::Core::PKTBI_BF_2A_RESULT::HairId, Pol::Items::Item::layer, Pol::Core::LAYER_BEARD, Pol::Core::LAYER_HAIR, Pol::Mobile::Character::layer_is_equipped(), Pol::Core::PKTBI_BF::msglen, Pol::Mobile::Character::on_color_changed(), Pol::Core::ULWObject::realm, Pol::Core::PKTBI_BF_RACE_CHANGER_RESULT::result, Pol::Core::send_wornitem_to_inrange(), Pol::Core::UObject::setcolor(), Pol::Mobile::Character::truecolor, Pol::Core::validbeard(), Pol::Core::validhair(), and Pol::Mobile::Character::wornitem().
Referenced by Pol::Core::handle_msg_BF().
| void Pol::Module::clear_gumphandler | ( | Client * | client, |
| UOExecutorModule * | uoemod | ||
| ) |
Definition at line 1339 of file uomod2.cpp.
References Pol::Network::Client::gd, Pol::Module::UOExecutorModule::gump_chr, Pol::Core::UOExecutor::os_module, Pol::Network::ClientGameData::remove_gumpmods(), Pol::Module::OSExecutorModule::revive(), and Pol::Module::UOExecutorModule::uoexec.
Referenced by gumpbutton_handler(), and Pol::Module::UOExecutorModule::mf_CloseGump().
| void Pol::Module::commit_datastore | ( | ) |
Definition at line 744 of file datastore.cpp.
References ref_ptr< T >::clear(), Pol::Core::configurationbuffer, Pol::Core::ConfigurationBuffer::datastore, Pol::Module::DataStoreFile::delversion, Pol::Module::DataStoreFile::dfcontents, Pol::Module::DataStoreFile::filename(), ref_ptr< T >::get(), Pol::Module::DataStoreFile::oldversion, Pol::Clib::RemoveFile(), Pol::Module::DataStoreFile::unload, and Pol::Module::DataStoreFile::version.
| Bscript::ExecutorModule * Pol::Module::CreateFileAccessExecutorModule | ( | Executor & | exec | ) |
Definition at line 299 of file filemod.cpp.
References Pol::Module::FileAccessExecutorModule::FileAccessExecutorModule().
Referenced by Pol::Core::add_common_exmods().
| Bscript::BObjectImp * Pol::Module::CreatePartyRefObjImp | ( | Core::Party * | party | ) |
Definition at line 119 of file partymod.cpp.
References Pol::Module::EPartyRefObjImp::EPartyRefObjImp().
Referenced by Pol::Core::add_candidate(), Pol::Core::Party::disband(), Pol::Mobile::Character::get_script_member_id(), and Pol::Module::PartyExecutorModule::mf_CreateParty().
| size_t Pol::Module::curlWriteCallback | ( | void * | contents, |
| size_t | size, | ||
| size_t | nmemb, | ||
| void * | userp | ||
| ) |
Definition at line 658 of file osmod.cpp.
Referenced by Pol::Module::OSExecutorModule::mf_HTTPRequest().
| unsigned char Pol::Module::decode_xdigit | ( | unsigned char | ch | ) |
Definition at line 3937 of file uomod.cpp.
Referenced by Pol::Module::UOExecutorModule::mf_SendPacket().
| void Pol::Module::freepid | ( | unsigned int | pid | ) |
Definition at line 97 of file osmod.cpp.
References Pol::Core::ScriptScheduler::free_pid(), and Pol::Core::scriptScheduler.
Referenced by Pol::Module::OSExecutorModule::~OSExecutorModule().
| BObjectImp* Pol::Module::GetAllScriptList | ( | ) |
Definition at line 1734 of file uomod2.cpp.
References add_script(), Pol::Core::ScriptScheduler::getHoldlist(), Pol::Core::ScriptScheduler::getNoTimeoutHoldlist(), Pol::Core::ScriptScheduler::getRanlist(), Pol::Core::ScriptScheduler::getRunlist(), and Pol::Core::scriptScheduler.
Referenced by GetCoreVariable().
| BObjectImp* Pol::Module::GetCoreVariable | ( | const char * | corevar | ) |
Definition at line 1860 of file uomod2.cpp.
References Pol::Clib::ProgramConfig::build_datetime(), Pol::Core::PolStats::bytes_received, Pol::Core::PolStats::bytes_sent, Pol::Core::get_mobile_count(), GET_PROFILEVAR_PER_MIN, Pol::Core::get_toplevel_item_count(), GetAllScriptList(), Pol::Clib::getCurrentMemoryUsage(), GetIoStats(), GetPackageList(), GetPktStatusObj(), GetQueuedIoStats(), GetRunningScriptList(), GetScriptProfiles(), Pol::Core::ProfileVars::last_sipm, Pol::Core::ProfileVars::last_sysload, Pol::Core::ProfileVars::last_sysload_nprocs, LONG_COREVAR, Pol::Core::networkManager, Pol::Core::polclock(), Pol::Core::POLCLOCKS_PER_SEC, Pol::Core::NetworkManager::polstats, Pol::Core::ScriptScheduler::priority_divide, Pol::Core::StateManager::profilevars, Pol::Core::scriptScheduler, and Pol::Core::stateManager.
Referenced by Pol::Module::PolCore::get_member().
| bool Pol::Module::getGuildParam | ( | Executor & | exec, |
| unsigned | param, | ||
| Core::Guild *& | guild, | ||
| BError *& | err | ||
| ) |
Definition at line 141 of file guildmod.cpp.
References Pol::Core::Guild::disbanded(), ref_ptr< T >::get(), Pol::Bscript::Executor::getApplicObjParam(), Pol::Bscript::Executor::hasParams(), and Pol::Bscript::BApplicObj< T >::value().
Referenced by Pol::Module::EGuildRefObjImp::call_method_id(), and Pol::Module::GuildExecutorModule::mf_DestroyGuild().
| BObjectImp* Pol::Module::GetIoStats | ( | ) |
Definition at line 1822 of file uomod2.cpp.
References GetIoStatsObj(), and Pol::Core::networkManager.
Referenced by GetCoreVariable().
| BObjectImp* Pol::Module::GetIoStatsObj | ( | const IOStats & | stats | ) |
Definition at line 1793 of file uomod2.cpp.
References Pol::Bscript::ObjArray::addElement(), Pol::Network::IOStats::Packet::bytes, Pol::Network::IOStats::Packet::count, Pol::Network::IOStats::received, and Pol::Network::IOStats::sent.
Referenced by GetIoStats(), and GetQueuedIoStats().
| unsigned int Pol::Module::getnewpid | ( | Core::UOExecutor * | uoexec | ) |
Definition at line 93 of file osmod.cpp.
References Pol::Core::ScriptScheduler::get_new_pid(), and Pol::Core::scriptScheduler.
| BObjectImp* Pol::Module::GetPackageList | ( | ) |
Definition at line 1699 of file uomod2.cpp.
References Pol::Plib::Package::name(), Pol::Plib::SystemState::packages, and Pol::Plib::systemstate.
Referenced by GetCoreVariable().
| bool Pol::Module::getPartyParam | ( | Executor & | exec, |
| unsigned | param, | ||
| Core::Party *& | party, | ||
| BError *& | err | ||
| ) |
Definition at line 359 of file partymod.cpp.
References ref_ptr< T >::get(), Pol::Bscript::Executor::getApplicObjParam(), Pol::Bscript::Executor::hasParams(), Pol::Core::Party::leader(), Pol::Core::system_find_mobile(), and Pol::Bscript::BApplicObj< T >::value().
Referenced by Pol::Module::PartyExecutorModule::mf_DisbandParty(), Pol::Module::PartyExecutorModule::mf_SendPartyMsg(), and Pol::Module::PartyExecutorModule::mf_SendPrivatePartyMsg().
| BObjectImp* Pol::Module::GetPktStatusObj | ( | ) |
Definition at line 1832 of file uomod2.cpp.
References Pol::Core::networkManager, and Pol::Core::NetworkManager::packetsSingleton.
Referenced by GetCoreVariable().
| BObjectImp* Pol::Module::GetQueuedIoStats | ( | ) |
Definition at line 1827 of file uomod2.cpp.
References GetIoStatsObj(), and Pol::Core::networkManager.
Referenced by GetCoreVariable().
| BObjectImp* Pol::Module::GetRunningScriptList | ( | ) |
Definition at line 1716 of file uomod2.cpp.
References add_script(), Pol::Core::ScriptScheduler::getRanlist(), Pol::Core::ScriptScheduler::getRunlist(), and Pol::Core::scriptScheduler.
Referenced by GetCoreVariable().
| BObjectImp* Pol::Module::GetScriptProfiles | ( | ) |
Definition at line 1762 of file uomod2.cpp.
References Pol::Bscript::EScriptProgram::instr_cycles, Pol::Bscript::EScriptProgram::invocations, Pol::Bscript::EScriptProgram::name, Pol::Core::scriptScheduler, and Pol::Core::ScriptScheduler::scrstore.
Referenced by GetCoreVariable().
| bool Pol::Module::getStoredConfigElemParam | ( | Bscript::ExecutorModule & | exmod, |
| unsigned | param, | ||
| Core::StoredConfigElem *& | celem | ||
| ) |
Definition at line 732 of file cfgmod.cpp.
References Pol::Bscript::ExecutorModule::exec, Pol::Bscript::Executor::getApplicObjParam(), and Pol::Bscript::BApplicObj< T >::value().
Referenced by Pol::Module::ConfigFileExecutorModule::mf_GetConfigInt(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigIntArray(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigReal(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigString(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigStringArray(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigStringDictionary(), and Pol::Module::ConfigFileExecutorModule::mf_ListConfigElemProps().
| bool Pol::Module::getStoredConfigFileParam | ( | Bscript::ExecutorModule & | exmod, |
| unsigned | param, | ||
| Core::StoredConfigFile *& | cfile | ||
| ) |
Definition at line 714 of file cfgmod.cpp.
References Pol::Bscript::ExecutorModule::exec, Pol::Bscript::Executor::getApplicObjParam(), and Pol::Bscript::BApplicObj< T >::value().
Referenced by Pol::Module::UOExecutorModule::mf_ApplyConstraint(), Pol::Module::ConfigFileExecutorModule::mf_FindConfigElement(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigIntKeys(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigMaxIntKey(), and Pol::Module::ConfigFileExecutorModule::mf_GetConfigStringKeys().
Definition at line 1421 of file uomod2.cpp.
References Pol::Network::Client::acct, Pol::Core::PKTIN_B1::HEADER::buttonid, cfBEu16, cfBEu32, Pol::Network::Client::chr, clear_gumphandler(), Pol::Core::PKTIN_B1::INTS_HEADER::count, Pol::Core::PKTIN_B1::STRINGS_HEADER::count, Pol::Core::PKTIN_B1::STRING_ENTRY::data, data, Pol::Clib::decint(), Pol::Core::PKTIN_B1::HEADER::dialogid, ERROR_PRINT, Pol::Network::ClientGameData::find_gumpmod(), Pol::Core::find_script(), Pol::Network::Client::gd, ref_ptr< T >::get(), Pol::Core::PKTIN_B1::STRING_ENTRY::length, Pol::Core::PKTIN_B1::HEADER::msglen, Pol::Accounts::Account::name(), Pol::Core::UObject::name(), POLLOG_INFO, Pol::Core::ULWObject::serial, Pol::Core::PKTIN_B1::HEADER::serial, Pol::Core::UObject::serial_ext, Pol::Mobile::Character::start_script(), Pol::Plib::systemstate, Pol::Core::PKTIN_B1::STRING_ENTRY::tag, Pol::Module::UOExecutorModule::uoexec, Pol::Core::PKTIN_B1::INT_ENTRY::value, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 884 of file uomod.cpp.
References Pol::Bscript::BStruct::addMember(), cfBEu16, cfBEu32, Pol::Mobile::Character::client, Pol::Realms::Realm::find_supporting_multi(), Pol::Network::Client::gd, Pol::Core::PKTBI_6C::graphic, Pol::Multi::UMulti::make_ref(), Pol::Core::UObject::make_ref(), Pol::Realms::Realm::name(), Pol::Core::UOExecutor::os_module, Pol::Core::ULWObject::realm, Pol::Module::OSExecutorModule::revive(), Pol::Core::PKTBI_6C::selected_serial, Pol::Core::system_find_object(), Pol::Module::UOExecutorModule::target_cursor_chr, Pol::Network::ClientGameData::target_cursor_uoemod, Pol::Core::UObject::target_tag(), Pol::Module::UOExecutorModule::uoexec, Pol::Bscript::Executor::ValueStack, Pol::Core::PKTBI_6C::x, Pol::Core::PKTBI_6C::y, and Pol::Core::PKTBI_6C::z.
Definition at line 2095 of file uomod2.cpp.
References Pol::Core::PKTBI_2C::choice, Pol::Network::Client::chr, Pol::Network::Client::gd, INFO_PRINT, Pol::Core::UOExecutor::os_module, Pol::Module::UOExecutorModule::resurrect_chr, Pol::Network::ClientGameData::resurrect_uoemod, Pol::Module::OSExecutorModule::revive(), Pol::Module::UOExecutorModule::uoexec, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 765 of file uomod.cpp.
References Pol::Mobile::Character::client, Pol::Network::Client::gd, Pol::Mobile::Character::inform_engaged(), Pol::Core::ULWObject::ismobile(), Pol::Core::UObject::make_ref(), Pol::Core::UOExecutor::os_module, Pol::Mobile::Character::repsys_on_attack(), Pol::Mobile::Character::repsys_on_help(), Pol::Module::OSExecutorModule::revive(), Pol::Module::UOExecutorModule::target_cursor_chr, Pol::Network::ClientGameData::target_cursor_uoemod, Pol::Module::UOExecutorModule::target_options, Pol::Module::UOExecutorModule::uoexec, and Pol::Bscript::Executor::ValueStack.
Definition at line 2140 of file uomod2.cpp.
References Pol::Network::Client::acct, cfBEu16, Pol::Network::Client::chr, Pol::Network::Client::gd, Pol::Core::PKTBI_95::graphic_or_color, Pol::Network::Client::instance_, Pol::Accounts::Account::name(), Pol::Core::UOExecutor::os_module, POLLOG_ERROR, Pol::Module::OSExecutorModule::revive(), Pol::Module::UOExecutorModule::selcolor_chr, Pol::Network::ClientGameData::selcolor_uoemod, Pol::Module::UOExecutorModule::uoexec, Pol::Core::VALID_ITEM_COLOR_MASK, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 1623 of file uomod2.cpp.
References Pol::Mobile::Character::acct, cfBEu16, Pol::Network::Client::chr, Pol::Core::PKTIN_AC::data, data, Pol::Core::PKTIN_AC::datalen, ERROR_PRINT, Pol::Network::Client::gd, Pol::Core::UObject::name(), Pol::Core::UOExecutor::os_module, Pol::Core::PKTIN_AC::retcode, Pol::Core::PKTIN_AC::RETCODE_OKAY, Pol::Module::OSExecutorModule::revive(), Pol::Module::UOExecutorModule::textentry_chr, Pol::Network::ClientGameData::textentry_uoemod, Pol::Module::UOExecutorModule::uoexec, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
| bool Pol::Module::HasAppendAccess | ( | const Plib::Package * | pkg, |
| const Plib::Package * | filepackage, | ||
| const std::string & | path | ||
| ) |
Definition at line 280 of file filemod.cpp.
References Pol::Core::configurationbuffer.
Referenced by Pol::Module::FileAccessExecutorModule::mf_AppendToFile(), and Pol::Module::FileAccessExecutorModule::mf_LogToFile().
| bool Pol::Module::HasReadAccess | ( | const Plib::Package * | pkg, |
| const Plib::Package * | filepackage, | ||
| const std::string & | path | ||
| ) |
Definition at line 254 of file filemod.cpp.
References Pol::Core::configurationbuffer.
Referenced by Pol::Module::FileAccessExecutorModule::mf_OpenBinaryFile(), Pol::Module::FileAccessExecutorModule::mf_OpenXMLFile(), and Pol::Module::FileAccessExecutorModule::mf_ReadFile().
| bool Pol::Module::HasWriteAccess | ( | const Plib::Package * | pkg, |
| const Plib::Package * | filepackage, | ||
| const std::string & | path | ||
| ) |
Definition at line 267 of file filemod.cpp.
References Pol::Core::configurationbuffer.
Referenced by Pol::Core::BXMLfile::call_method_id(), Pol::Module::FileAccessExecutorModule::mf_OpenBinaryFile(), and Pol::Module::FileAccessExecutorModule::mf_WriteFile().
|
inlinestatic |
Definition at line 39 of file basicmod.cpp.
Referenced by Pol::Module::BasicExecutorModule::mf_DecodeBase64().
|
static |
Definition at line 333 of file uomod.cpp.
References Pol::Plib::systemstate, and UOBJ_ITEM__LOWEST.
Referenced by Pol::Module::UOExecutorModule::mf_CreateItemAtLocation(), Pol::Module::UOExecutorModule::mf_CreateItemInBackpack(), Pol::Module::UOExecutorModule::mf_CreateItemInContainer(), and Pol::Module::UOExecutorModule::mf_CreateItemInInventory().
| bool Pol::Module::legal_scp_filename | ( | const char * | filename | ) |
Definition at line 261 of file cfgmod.cpp.
Referenced by Pol::Module::ConfigFileExecutorModule::mf_LoadTusScpFile().
| void Pol::Module::load_fileaccess_cfg | ( | ) |
Definition at line 695 of file filemod.cpp.
References Pol::Core::configurationbuffer, Pol::Core::ConfigurationBuffer::file_access_rules, Pol::Clib::FileExists(), and Pol::Clib::ConfigFile::read().
Referenced by Pol::Core::load_data(), Pol::Core::reload_configuration(), and Pol::Clib::RunEclMain::runeclScript().
| BObjectImp* Pol::Module::MakeMapCacheImp | ( | ) |
Definition at line 2022 of file uomod2.cpp.
| void Pol::Module::menu_selection_made | ( | Network::Client * | client, |
| Core::MenuItem * | mi, | ||
| Core::PKTIN_7D * | msg | ||
| ) |
Definition at line 1544 of file uomod.cpp.
References Pol::Bscript::BStruct::addMember(), cfBEu16, Pol::Core::PKTIN_7D::choice, Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Core::MenuItem::color_, Pol::Network::Client::gd, Pol::Core::MenuItem::graphic_, Pol::Module::UOExecutorModule::menu_selection_chr, Pol::Network::ClientGameData::menu_selection_uoemod, Pol::Core::MenuItem::objtype_, Pol::Core::UOExecutor::os_module, Pol::Module::OSExecutorModule::revive(), Pol::Module::UOExecutorModule::uoexec, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Module::UOExecutorModule::mf_SelectMenuItem().
Definition at line 354 of file uomod2.cpp.
References Pol::Core::UContainer::add(), Pol::Core::UContainer::add_at_random_location(), Pol::Items::Item::add_to_self(), Pol::Items::Item::amount_to_remove_is_partial(), Pol::Mobile::Character::backpack(), calculate_cost(), Pol::Core::UContainer::can_add(), Pol::Core::UContainer::can_insert_add_item(), Pol::Core::UContainer::can_insert_increase_stack(), cfBEu16, cfBEu32, Pol::Network::Client::chr, ref_ptr< T >::clear(), Pol::Core::EVID_MERCHANT_SOLD, Pol::Core::UContainer::find(), Pol::Core::UContainer::find_addable_stack(), Pol::Network::Client::gd, ref_ptr< T >::get(), Pol::Items::Item::getamount(), Pol::Mobile::Character::gold_carried(), Pol::Core::PKTBI_3B::item_serial, Pol::Core::PKTBI_3B::items, Pol::Core::PKTBI_3B::msglen, Pol::Core::UContainer::MT_CORE_MOVED, Pol::Core::PKTBI_3B::number_bought, Pol::Core::UContainer::on_insert_add_item(), Pol::Core::UContainer::on_insert_increase_stack(), Pol::Core::ULWObject::orphan(), Pol::Core::UContainer::remove(), Pol::Items::Item::remove_part_of_stack(), Pol::Items::Item::sellprice(), send_clear_vendorwindow(), Pol::Mobile::NPC::send_event(), Pol::Core::UObject::serial_ext, Pol::Mobile::Character::spend_gold(), Pol::Items::Item::stackable(), Pol::Core::PKTBI_3B::status, Pol::Core::PKTBI_3B::STATUS_NOTHING_BOUGHT, Pol::Core::update_item_to_inrange(), Pol::Network::ClientGameData::vendor, Pol::Network::ClientGameData::vendor_bought, Pol::Network::ClientGameData::vendor_for_sale, and Pol::Core::PKTBI_3B::vendor_serial.
Referenced by buyhandler().
Definition at line 777 of file uomod2.cpp.
References _create_item_in_container(), Pol::Core::UContainer::add(), Pol::Items::Item::add_to_self(), Pol::Core::PKTIN_9F::amount, Pol::Items::Item::amount_to_remove_is_partial(), Pol::Mobile::Character::backpack(), Pol::Core::UContainer::can_add(), cfBEu16, cfBEu32, Pol::Network::Client::chr, ref_ptr< T >::clear(), Pol::Core::EVID_MERCHANT_BOUGHT, Pol::Items::find_itemdesc(), Pol::Core::UContainer::find_toplevel(), Pol::Network::Client::gd, ref_ptr< T >::get(), Pol::Core::UContainer::get_random_location(), Pol::Items::Item::getamount(), Pol::Items::Item::getbuyprice(), Pol::Items::Item::inuse(), Pol::Core::PKTIN_9F::items, Pol::Items::Item::newbie(), Pol::Core::PKTIN_9F::num_items, Pol::Core::ULWObject::orphan(), Pol::Network::Client::pause(), Pol::Core::UContainer::remove(), Pol::Network::Client::restart(), Pol::Clib::sanitize_upperlimit(), send_clear_vendorwindow(), Pol::Mobile::NPC::send_event(), Pol::Core::send_full_statmsg(), Pol::Core::PKTIN_9F::serial, Pol::Core::UObject::serial_ext, Pol::Items::Item::slice_stacked_item(), UOBJ_GOLD_COIN, Pol::Core::update_item_to_inrange(), Pol::Network::ClientGameData::vendor, Pol::Network::ClientGameData::vendor_bought, Pol::Core::PKTIN_9F::vendor_serial, Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by sellhandler().
Definition at line 2434 of file uomod2.cpp.
References Pol::Core::PKTBI_93::author, Pol::Items::Item::call_custom_method(), cfBEu32, Pol::Network::Client::chr, Pol::Core::find_legal_item(), POLLOG, Pol::Core::ULWObject::serial, Pol::Core::PKTBI_93::serial, strip_ctrl_chars(), and Pol::Core::PKTBI_93::title.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
| void Pol::Module::popup_menu_selection_made | ( | Network::Client * | client, |
| u32 | serial, | ||
| u16 | id | ||
| ) |
Definition at line 2614 of file uomod2.cpp.
References Pol::Network::Client::acct, Pol::Network::Client::chr, Pol::Mobile::Character::client, Pol::Network::Client::gd, Pol::Accounts::Account::name(), Pol::Core::UObject::name(), Pol::Core::UOExecutor::os_module, passert_always_r, POLLOG_INFO, Pol::Module::UOExecutorModule::popup_menu_selection_above, Pol::Module::UOExecutorModule::popup_menu_selection_chr, Pol::Network::ClientGameData::popup_menu_selection_uoemod, Pol::Module::OSExecutorModule::revive(), Pol::Core::ULWObject::serial, Pol::Module::UOExecutorModule::uoexec, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Module::UOExecutorModule::mf_SendPopUpMenu().
Definition at line 2333 of file uomod2.cpp.
References Pol::Core::PKTBI_66::book_serial, Pol::Items::Item::call_custom_method(), cfBEu16, cfBEu32, Pol::Network::Client::chr, Pol::Core::find_legal_item(), Pol::Bscript::BObjectImp::getStringRep(), Pol::Core::PKTBI_66::lines, Pol::Core::PKTBI_66::msglen, Pol::Bscript::BObjectImp::OTLong, Pol::Core::PKTBI_66::page, POLLOG, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::ULWObject::serial, Pol::Core::UObject::serial_ext, Pol::Core::PKTBI_66::text, and Pol::Bscript::BLong::value().
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
| void Pol::Module::read_datastore_dat | ( | ) |
Definition at line 702 of file datastore.cpp.
References Pol::Plib::SystemState::config, Pol::Core::configurationbuffer, Pol::Core::ConfigurationBuffer::datastore, Pol::Module::DataStoreFile::descriptor, Pol::Clib::FileExists(), Pol::Clib::ConfigFile::read(), Pol::Plib::systemstate, and Pol::Core::PolConfig::world_data_path.
Referenced by Pol::Core::read_data().
| picojson::value Pol::Module::recurseE2J | ( | BObjectImp * | v | ) |
Definition at line 580 of file basicmod.cpp.
References Pol::Bscript::BDictionary::contents(), Pol::Bscript::BStruct::contents(), Pol::Bscript::BObjectImp::getStringRep(), Pol::Bscript::BObjectImp::isa(), Pol::Bscript::BObjectImp::OTArray, Pol::Bscript::BObjectImp::OTBoolean, Pol::Bscript::BObjectImp::OTDictionary, Pol::Bscript::BObjectImp::OTDouble, Pol::Bscript::BObjectImp::OTLong, Pol::Bscript::BObjectImp::OTString, Pol::Bscript::BObjectImp::OTStruct, and Pol::Bscript::ObjArray::ref_arr.
Referenced by Pol::Module::BasicExecutorModule::mf_PackJSON().
| Bscript::BObjectImp* Pol::Module::recurseJ2E | ( | const picojson::value & | v | ) |
Definition at line 646 of file basicmod.cpp.
References Pol::Bscript::UninitObject::create().
Referenced by Pol::Module::BasicExecutorModule::mf_UnpackJSON().
| void Pol::Module::replace_properties | ( | Clib::ConfigElem & | elem, |
| BStruct * | custom | ||
| ) |
Definition at line 1227 of file uomod.cpp.
References Pol::Clib::ConfigElem::add_prop(), Pol::Clib::ConfigElem::clear_prop(), Pol::Bscript::BDictionary::contents(), Pol::Bscript::BStruct::contents(), Pol::Bscript::BObjectImp::getStringRep(), Pol::Bscript::BObjectImp::isa(), name, Pol::Bscript::BObjectImp::OTDictionary, and Pol::Bscript::BObjectImp::typeOf().
Referenced by Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate().
Definition at line 890 of file uomod2.cpp.
References Pol::Core::PKTIN_9F::amount, Pol::Mobile::Character::backpack(), cfBEu16, cfBEu32, Pol::Network::Client::chr, ref_ptr< T >::clear(), Pol::Core::EVID_MERCHANT_BOUGHT, Pol::Core::UContainer::find_toplevel(), Pol::Network::Client::gd, ref_ptr< T >::get(), Pol::Items::Item::getamount(), Pol::Items::Item::inuse(), Pol::Core::PKTIN_9F::items, Pol::Items::Item::make_ref(), Pol::Items::Item::newbie(), Pol::Core::PKTIN_9F::num_items, oldSellHandler(), Pol::Core::ULWObject::orphan(), Pol::Clib::sanitize_upperlimit(), Pol::Core::ServSpecOpt::scripted_merchant_handlers, send_clear_vendorwindow(), Pol::Mobile::NPC::send_event(), Pol::Core::PKTIN_9F::serial, Pol::Core::UObject::serial_ext, Pol::Core::settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Network::ClientGameData::vendor, Pol::Network::ClientGameData::vendor_bought, and Pol::Core::PKTIN_9F::vendor_serial.
Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().
Definition at line 323 of file uomod2.cpp.
References Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, and Pol::Core::PKTBI_3B::STATUS_NOTHING_BOUGHT.
Referenced by buyhandler(), oldBuyHandler(), oldSellHandler(), and sellhandler().
| bool Pol::Module::send_vendorsell | ( | Client * | client, |
| NPC * | merchant, | ||
| UContainer * | sellfrom, | ||
| UContainer * | buyable, | ||
| bool | send_aos_tooltip | ||
| ) |
Definition at line 620 of file uomod2.cpp.
References Pol::Core::UContainer::begin(), Pol::Core::CLASS_CONTAINER, Pol::Core::UObject::color, Pol::Core::UContainer::count(), Pol::Core::UContainer::end(), GET_ITEM_PTR, Pol::Items::Item::getamount(), Pol::Items::Item::getbuyprice(), Pol::Core::ULWObject::graphic, Pol::Core::ULWObject::isa(), Pol::Items::Item::merchant_description(), Pol::Items::Item::newbie(), Pol::Core::UObject::objtype_, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::SendAOSTooltip(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Module::UOExecutorModule::mf_SendSellWindow().
| bool Pol::Module::send_vendorwindow_contents | ( | Network::Client * | client, |
| Core::UContainer * | for_sale, | ||
| bool | send_aos_tooltip | ||
| ) |
Definition at line 173 of file uomod2.cpp.
References Pol::Core::UContainer::count(), Pol::Items::Item::merchant_description(), Pol::Items::Item::sellprice(), Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::SendAOSTooltip(), and Pol::Core::UObject::serial_ext.
Referenced by Pol::Module::UOExecutorModule::mf_SendBuyWindow().
| BStruct* Pol::Module::SetupRealmDetails | ( | Realms::Realm * | realm | ) |
Definition at line 304 of file polsystemmod.cpp.
References Pol::Realms::Realm::getUOMapID(), Pol::Realms::Realm::height(), Pol::Realms::Realm::mobile_count(), Pol::Realms::Realm::multi_count(), Pol::Realms::Realm::offline_mobile_count(), Pol::Realms::Realm::season(), Pol::Realms::Realm::toplevel_item_count(), and Pol::Realms::Realm::width().
Referenced by Pol::Module::PolSystemExecutorModule::mf_Realms().
| char Pol::Module::strip_ctrl_chars | ( | char | c | ) |
Definition at line 2426 of file uomod2.cpp.
Referenced by open_book_handler().
| void Pol::Module::true_extricate | ( | Item * | item | ) |
Definition at line 3416 of file uomod.cpp.
References Pol::Items::Item::container, Pol::Items::Item::extricate(), Pol::Core::remove_item_from_world(), and Pol::Core::send_remove_object_to_inrange().
Referenced by Pol::Module::UOExecutorModule::mf_EquipItem(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), and Pol::Module::UOExecutorModule::mf_MoveItemToSecureTradeWin().
| void Pol::Module::write_datastore | ( | Clib::StreamWriter & | sw | ) |
Definition at line 719 of file datastore.cpp.
References Pol::Core::configurationbuffer, Pol::Core::ConfigurationBuffer::datastore, Pol::Module::DataStoreFile::delversion, Pol::Module::DataStoreFile::dfcontents, ref_ptr< T >::get(), Pol::Module::DataStoreFile::oldversion, Pol::Module::DataStoreFile::printOn(), Pol::Module::DataStoreFile::save(), and Pol::Module::DataStoreFile::version.
| initer Pol::Module::_initer |
Definition at line 73 of file mathmod.cpp.
|
static |
Definition at line 33 of file basicmod.cpp.
| BApplicObjType Pol::Module::bounding_box_type |
Definition at line 100 of file npcmod.cpp.
Referenced by Pol::Module::NPCExecutorModule::IsLegalMove(), and Pol::Module::NPCExecutorModule::move().
| Bscript::BApplicObjType Pol::Module::cfgelem_type |
Definition at line 61 of file cfgmod.cpp.
| Bscript::BApplicObjType Pol::Module::cfgfile_type |
Definition at line 60 of file cfgmod.cpp.
|
static |
Definition at line 61 of file mathmod.cpp.
|
static |
Definition at line 60 of file mathmod.cpp.
| Bscript::BApplicObjType Pol::Module::datafileelem_type |
Definition at line 59 of file datastore.cpp.
| Bscript::BApplicObjType Pol::Module::datafileref_type |
Datastore.
datastore files are stored in config.world_data_path + ds/fname.txt config.world_data_path + ds/{pkgname}/fname.txt
Definition at line 58 of file datastore.cpp.
| const int Pol::Module::DF_KEYTYPE_INTEGER = 0x01 |
Definition at line 43 of file datastoreimp.h.
Referenced by Pol::Module::DataFileRefObjImp::call_method_id(), and Pol::Module::DataFileContents::load().
| Bscript::BApplicObjType Pol::Module::echaracterequipobjimp_type |
Definition at line 127 of file uoscrobj.cpp.
| Bscript::BApplicObjType Pol::Module::echaracterrefobjimp_type |
Definition at line 126 of file uoscrobj.cpp.
Referenced by Pol::Core::getCharacterOrClientParam(), Pol::Core::getCharacterParam(), Pol::Module::ECharacterRefObjImp::operator<(), and Pol::Module::ECharacterRefObjImp::operator==().
| Bscript::BApplicObjType Pol::Module::eclientrefobjimp_type |
Definition at line 130 of file uoscrobj.cpp.
Referenced by Pol::Core::getCharacterOrClientParam(), and Pol::Module::EClientRefObjImp::operator==().
| Bscript::BApplicObjType Pol::Module::eitemrefobjimp_type |
Definition at line 125 of file uoscrobj.cpp.
Referenced by Pol::Core::getItemParam(), Pol::Core::getUBoatParam(), Pol::Module::ECharacterRefObjImp::operator<(), Pol::Module::EItemRefObjImp::operator<(), Pol::Module::EItemRefObjImp::operator==(), and Pol::Multi::UHouse::script_method_id().
| Bscript::BApplicObjType Pol::Module::emultirefobjimp_type |
Definition at line 124 of file uoscrobj.cpp.
Referenced by Pol::Core::getMultiParam(), and Pol::Module::EMultiRefObjImp::operator==().
| Bscript::BApplicObjType Pol::Module::euboatrefobjimp_type |
Definition at line 123 of file uoscrobj.cpp.
Referenced by Pol::Core::getMultiParam(), Pol::Core::getUBoatParam(), and Pol::Module::EUBoatRefObjImp::operator==().
| BApplicObjType Pol::Module::guild_type |
Definition at line 88 of file guildmod.cpp.
Referenced by Pol::Module::EGuildRefObjImp::operator==().
| u16 Pol::Module::gwtext |
Definition at line 140 of file unimod.cpp.
Referenced by Pol::Module::UnicodeExecutorModule::mf_BroadcastUC(), Pol::Module::UnicodeExecutorModule::mf_PrintTextAboveUC(), Pol::Module::UnicodeExecutorModule::mf_PrivateTextAboveUC(), Pol::Module::UnicodeExecutorModule::mf_RequestInputUC(), Pol::Module::PartyExecutorModule::mf_SendPartyMsg(), Pol::Module::PartyExecutorModule::mf_SendPrivatePartyMsg(), Pol::Module::UnicodeExecutorModule::mf_SendSysMessageUC(), and Pol::Module::NPCExecutorModule::SayUC().
| const unsigned Pol::Module::LMBLEX_FLAG_CONCEALED = 0x8 |
Definition at line 2596 of file uomod.cpp.
Referenced by Pol::Module::UOExecutorModule::mf_ListMobilesNearLocationEx().
| const unsigned Pol::Module::LMBLEX_FLAG_DEAD = 0x04 |
Definition at line 2595 of file uomod.cpp.
Referenced by Pol::Module::UOExecutorModule::mf_ListMobilesNearLocationEx().
| const unsigned Pol::Module::LMBLEX_FLAG_HIDDEN = 0x02 |
Definition at line 2594 of file uomod.cpp.
Referenced by Pol::Module::UOExecutorModule::mf_ListMobilesNearLocationEx().
| const unsigned Pol::Module::LMBLEX_FLAG_NORMAL = 0x01 |
Definition at line 2593 of file uomod.cpp.
Referenced by Pol::Module::UOExecutorModule::mf_ListMobilesNearLocationEx().
| const unsigned Pol::Module::LMBLEX_FLAG_NPC_ONLY = 0x20 |
Definition at line 2598 of file uomod.cpp.
Referenced by Pol::Module::UOExecutorModule::mf_ListMobilesNearLocationEx().
| const unsigned Pol::Module::LMBLEX_FLAG_PLAYERS_ONLY = 0x10 |
Definition at line 2597 of file uomod.cpp.
Referenced by Pol::Module::UOExecutorModule::mf_ListMobilesNearLocationEx().
| Bscript::BApplicObjType Pol::Module::menu_type |
Definition at line 129 of file uoscrobj.cpp.
Referenced by Pol::Module::UOExecutorModule::getDynamicMenuParam(), and Pol::Module::UOExecutorModule::getStaticOrDynamicMenuParam().
| Bscript::BApplicObjType Pol::Module::packageobjimp_type |
Definition at line 71 of file polsystemmod.cpp.
| BApplicObjType Pol::Module::party_type |
Definition at line 73 of file partymod.cpp.
Referenced by Pol::Module::EPartyRefObjImp::operator==().
| const int Pol::Module::SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES = 4 |
| Bscript::BApplicObjType Pol::Module::storage_area_type |
Definition at line 128 of file uoscrobj.cpp.
Referenced by Pol::Module::StorageExecutorModule::mf_CreateRootItemInStorageArea(), Pol::Module::StorageExecutorModule::mf_CreateStorageArea(), Pol::Module::StorageExecutorModule::mf_DestroyRootItemInStorageArea(), Pol::Module::StorageExecutorModule::mf_FindRootItemInStorageArea(), and Pol::Module::StorageExecutorModule::mf_FindStorageArea().
| const int Pol::Module::TGTOPT_CHECK_LOS = 0x0001 |
Definition at line 760 of file uomod.cpp.
Referenced by Pol::Module::UOExecutorModule::mf_Target().