Pol  Revision:e50bd96
Pol::Module Namespace Reference

Classes

class  AttributeExecutorModule
 
class  BasicExecutorModule
 
class  BasicIoExecutorModule
 
class  BIntHash
 
class  BoundingBoxObjImp
 
class  ClilocExecutorModule
 
class  ConfigFileExecutorModule
 
class  DamageEvent
 
class  DataElemRefObjImp
 
class  DataFileContents
 
class  DataFileElement
 
class  DataFileElemObj
 
class  DataFileExecutorModule
 
class  DataFileRefObjImp
 
class  DataStoreFile
 
class  DisengageEvent
 
class  ECharacterEquipObjImp
 
class  ECharacterRefObjImp
 
class  EClientRefObjImp
 
class  EConfigElemRefObjImp
 
class  EConfigFileRefObjImp
 
class  EGuildRefObjImp
 Guild Object Properties: guild.guildid : integer guild.members : array of offline mobilerefs guild.allyguilds : array of allied guilds guild.enemyguilds : array of enemy guilds. More...
 
class  EItemRefObjImp
 
class  EMenuObjImp
 
class  EMultiRefObjImp
 
class  EngageEvent
 
class  EOfflineCharacterRefObjImp
 
class  EPartyRefObjImp
 
class  EUBoatRefObjImp
 
class  FileAccess
 
class  FileAccessExecutorModule
 
class  GuildExecutorModule
 
class  HttpExecutorModule
 
class  initer
 
class  ItemGivenEvent
 
class  MathExecutorModule
 
class  NPCExecutorModule
 
class  OSExecutorModule
 
class  PackageObjImp
 
class  PackagePtrHolder
 
class  PartyExecutorModule
 
class  PolCore
 
class  PolSystemExecutorModule
 
class  SourcedEvent
 
class  SpeechEvent
 
class  SQLExecutorModule
 
class  StorageExecutorModule
 
class  UBoatExecutorModule
 
class  UnicodeExecutorModule
 
class  UnicodeSpeechEvent
 
class  UOExecutorModule
 
class  UtilExecutorModule
 
class  VitalExecutorModule
 

Typedefs

typedef weak_ptr< Network::ClientClientPtrHolder
 
typedef Bscript::BApplicObj< DataFileElemObjDataElemRefObjImpBase
 
typedef ref_ptr< DataFileContentsDataFileContentsRef
 
typedef ref_ptr< DataFileElementDataFileElementRef
 
typedef Bscript::BApplicObj< DataFileContentsRefDataFileRefObjImpBase
 
typedef Bscript::BApplicObj< ref_ptr< Core::StoredConfigElem > > EConfigElemRefObjImpBase
 
typedef Bscript::BApplicObj< ref_ptr< Core::StoredConfigFile > > EConfigFileRefObjImpBase
 
typedef Bscript::BApplicObj< PackagePtrHolderPackageObjImpBase
 
typedef Plib::AStarSearch< UOPathStateUOSearch
 

Functions

BObjectImp_complete_create_item_at_location (Item *item, unsigned short x, unsigned short y, short z, Realms::Realm *realm)
 
BObjectImp_create_item_in_container (UContainer *cont, const ItemDesc *descriptor, unsigned short amount, bool force_stacking, UOExecutorModule *uoemod)
 
void add_script (ObjArray *arr, UOExecutor *uoexec, const char *)
 
void append_objtypes (ObjArray *objarr, Menu *menu)
 
void buyhandler (Client *client, PKTBI_3B *msg)
 
unsigned int calculate_cost (Character *, UContainer *for_sale, UContainer *bought, PKTBI_3B *msg)
 
void character_race_changer_handler (Network::Client *client, Core::PKTBI_BF *msg)
 
void clear_gumphandler (Client *client, UOExecutorModule *uoemod)
 
void commit_datastore ()
 
ExecutorModuleCreateFileAccessExecutorModule (Executor &exec)
 
BObjectImpCreatePartyRefObjImp (Core::Party *party)
 
size_t curlWriteCallback (void *contents, size_t size, size_t nmemb, void *userp)
 
unsigned char decode_xdigit (unsigned char ch)
 
void freepid (unsigned int pid)
 
BObjectImpGetAllScriptList ()
 
BObjectImpGetCoreVariable (const char *corevar)
 
bool getGuildParam (Executor &exec, unsigned param, Core::Guild *&guild, BError *&err)
 
BObjectImpGetIoStats ()
 
BObjectImpGetIoStatsObj (const IOStats &stats)
 
unsigned int getnewpid (Core::UOExecutor *uoexec)
 
BObjectImpGetPackageList ()
 
bool getPartyParam (Executor &exec, unsigned param, Core::Party *&party, BError *&err)
 
BObjectImpGetPktStatusObj ()
 
BObjectImpGetQueuedIoStats ()
 
BObjectImpGetRunningScriptList ()
 
BObjectImpGetScriptProfiles ()
 
bool getStoredConfigElemParam (Bscript::ExecutorModule &exmod, unsigned param, Core::StoredConfigElem *&celem)
 
bool getStoredConfigFileParam (Bscript::ExecutorModule &exmod, unsigned param, Core::StoredConfigFile *&cfile)
 
void gumpbutton_handler (Client *client, PKTIN_B1 *msg)
 
void handle_coord_cursor (Character *chr, PKTBI_6C *msg)
 
void handle_resurrect_menu (Client *client, PKTBI_2C *msg)
 
void handle_script_cursor (Character *chr, UObject *obj)
 
void handle_selcolor (Client *client, PKTBI_95 *msg)
 
void handle_textentry (Client *client, PKTIN_AC *msg)
 
bool HasAppendAccess (const Plib::Package *pkg, const Plib::Package *filepackage, const std::string &path)
 
bool HasReadAccess (const Plib::Package *pkg, const Plib::Package *filepackage, const std::string &path)
 
bool HasWriteAccess (const Plib::Package *pkg, const Plib::Package *filepackage, const std::string &path)
 
static bool item_create_params_ok (u32 objtype, int amount)
 
bool legal_scp_filename (const char *filename)
 
void load_fileaccess_cfg ()
 
BObjectImpMakeMapCacheImp ()
 
void menu_selection_made (Network::Client *client, MenuItem *mi, PKTIN_7D *msg)
 
void oldBuyHandler (Client *client, PKTBI_3B *msg)
 
void oldSellHandler (Client *client, PKTIN_9F *msg)
 
void open_book_handler (Client *client, PKTBI_93 *msg)
 
void popup_menu_selection_made (Network::Client *client, u32 serial, u16 id)
 
void read_book_page_handler (Client *client, PKTBI_66 *msg)
 
void read_datastore_dat ()
 
picojson::value recurseE2J (BObjectImp *v)
 
Bscript::BObjectImprecurseJ2E (const picojson::value &v)
 
void replace_properties (Clib::ConfigElem &elem, BStruct *custom)
 
void sellhandler (Client *client, PKTIN_9F *msg)
 
void send_clear_vendorwindow (Client *client, Character *vendor)
 
bool send_vendorsell (Client *client, NPC *merchant, UContainer *sellfrom, UContainer *buyable, bool send_aos_tooltip)
 
bool send_vendorwindow_contents (Network::Client *client, Core::UContainer *for_sale, bool send_aos_tooltip)
 
BStructSetupRealmDetails (Realms::Realm *realm)
 
char strip_ctrl_chars (char c)
 
void true_extricate (Item *item)
 
void write_datastore (Clib::StreamWriter &sw)
 

Variables

initer _initer
 
BApplicObjType bounding_box_type
 
Bscript::BApplicObjType cfgelem_type
 
Bscript::BApplicObjType cfgfile_type
 
static double const_e
 
static double const_pi
 
Bscript::BApplicObjType datafileelem_type
 
Bscript::BApplicObjType datafileref_type
 Datastore. More...
 
const int DF_KEYTYPE_INTEGER = 0x01
 
BApplicObjType echaracterequipobjimp_type
 
BApplicObjType echaracterrefobjimp_type
 
BApplicObjType eclientrefobjimp_type
 
BApplicObjType eitemrefobjimp_type
 
BApplicObjType emultirefobjimp_type
 
BApplicObjType euboatrefobjimp_type
 
BApplicObjType guild_type
 
u16 gwtext [(SPEECH_MAX_LEN+1)]
 
const int LH_FLAG_INCLUDE_HIDDEN = 2
 
const int LH_FLAG_LOS = 1
 
const unsigned LMBLEX_FLAG_CONCEALED = 0x8
 
const unsigned LMBLEX_FLAG_DEAD = 0x04
 
const unsigned LMBLEX_FLAG_HIDDEN = 0x02
 
const unsigned LMBLEX_FLAG_NORMAL = 0x01
 
const unsigned LMBLEX_FLAG_NPC_ONLY = 0x20
 
const unsigned LMBLEX_FLAG_PLAYERS_ONLY = 0x10
 
BApplicObjType menu_type
 
Bscript::BApplicObjType packageobjimp_type
 
BApplicObjType party_type
 
const int SCRIPTOPT_AUXSVC_ASSUME_STRING = 5
 
const int SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES = 4
 
const int SCRIPTOPT_DEBUG = 2
 
const int SCRIPTOPT_NO_INTERRUPT = 1
 
const int SCRIPTOPT_NO_RUNAWAY = 3
 
BApplicObjType storage_area_type
 
const int TGTOPT_CHECK_LOS = 0x0001
 
const int TGTOPT_HARMFUL = 0x0002
 
const int TGTOPT_HELPFUL = 0x0004
 

Typedef Documentation

Definition at line 193 of file uoscrobj.h.

Definition at line 5037 of file uomod.cpp.

Function Documentation

BObjectImp * Pol::Module::_create_item_in_container ( UContainer cont,
const ItemDesc descriptor,
unsigned short  amount,
bool  force_stacking,
UOExecutorModule uoemod 
)

Definition at line 343 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().

+ Here is the call graph for this function:

void Pol::Module::add_script ( ObjArray arr,
UOExecutor uoexec,
const char *   
)

Definition at line 1721 of file uomod2.cpp.

References Pol::Bscript::ObjArray::addElement().

Referenced by GetAllScriptList(), and GetRunningScriptList().

+ Here is the call graph for this function:

void Pol::Module::append_objtypes ( ObjArray objarr,
Menu menu 
)
unsigned int Pol::Module::calculate_cost ( Character ,
UContainer for_sale,
UContainer bought,
PKTBI_3B msg 
)
Bscript::ExecutorModule * Pol::Module::CreateFileAccessExecutorModule ( Executor exec)

Definition at line 309 of file filemod.cpp.

References Pol::Module::FileAccessExecutorModule::FileAccessExecutorModule().

Referenced by Pol::Core::add_common_exmods().

+ Here is the call graph for this function:

Bscript::BObjectImp * Pol::Module::CreatePartyRefObjImp ( Core::Party party)
size_t Pol::Module::curlWriteCallback ( void *  contents,
size_t  size,
size_t  nmemb,
void *  userp 
)

Definition at line 667 of file osmod.cpp.

Referenced by Pol::Module::OSExecutorModule::mf_HTTPRequest().

unsigned char Pol::Module::decode_xdigit ( unsigned char  ch)

Definition at line 3949 of file uomod.cpp.

Referenced by Pol::Module::UOExecutorModule::mf_SendPacket().

void Pol::Module::freepid ( unsigned int  pid)

Definition at line 106 of file osmod.cpp.

References Pol::Core::ScriptScheduler::free_pid(), and Pol::Core::scriptScheduler.

Referenced by Pol::Module::OSExecutorModule::~OSExecutorModule().

+ Here is the call graph for this function:

bool Pol::Module::getGuildParam ( Executor exec,
unsigned  param,
Core::Guild *&  guild,
BError *&  err 
)
BObjectImp* Pol::Module::GetIoStats ( )

Definition at line 1837 of file uomod2.cpp.

References GetIoStatsObj(), and Pol::Core::networkManager.

Referenced by GetCoreVariable().

+ Here is the call graph for this function:

BObjectImp* Pol::Module::GetIoStatsObj ( const IOStats stats)
unsigned int Pol::Module::getnewpid ( Core::UOExecutor uoexec)

Definition at line 102 of file osmod.cpp.

References Pol::Core::ScriptScheduler::get_new_pid(), and Pol::Core::scriptScheduler.

+ Here is the call graph for this function:

BObjectImp* Pol::Module::GetPackageList ( )

Definition at line 1709 of file uomod2.cpp.

References Pol::Plib::Package::name(), Pol::Plib::SystemState::packages, and Pol::Plib::systemstate.

Referenced by GetCoreVariable().

+ Here is the call graph for this function:

BObjectImp* Pol::Module::GetPktStatusObj ( )

Definition at line 1847 of file uomod2.cpp.

References Pol::Core::networkManager, and Pol::Core::NetworkManager::packetsSingleton.

Referenced by GetCoreVariable().

BObjectImp* Pol::Module::GetQueuedIoStats ( )

Definition at line 1842 of file uomod2.cpp.

References GetIoStatsObj(), and Pol::Core::networkManager.

Referenced by GetCoreVariable().

+ Here is the call graph for this function:

BObjectImp* Pol::Module::GetRunningScriptList ( )

Definition at line 1726 of file uomod2.cpp.

References add_script(), Pol::Core::ScriptScheduler::getRanlist(), Pol::Core::ScriptScheduler::getRunlist(), and Pol::Core::scriptScheduler.

Referenced by GetCoreVariable().

+ Here is the call graph for this function:

bool Pol::Module::HasAppendAccess ( const Plib::Package pkg,
const Plib::Package filepackage,
const std::string &  path 
)
bool Pol::Module::HasReadAccess ( const Plib::Package pkg,
const Plib::Package filepackage,
const std::string &  path 
)
bool Pol::Module::HasWriteAccess ( const Plib::Package pkg,
const Plib::Package filepackage,
const std::string &  path 
)
bool Pol::Module::legal_scp_filename ( const char *  filename)
void Pol::Module::load_fileaccess_cfg ( )
BObjectImp* Pol::Module::MakeMapCacheImp ( )

Definition at line 2039 of file uomod2.cpp.

void Pol::Module::oldBuyHandler ( Client client,
PKTBI_3B msg 
)

Definition at line 362 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().

+ Here is the call graph for this function:

Bscript::BObjectImp* Pol::Module::recurseJ2E ( const picojson::value &  v)

Definition at line 634 of file basicmod.cpp.

References Pol::Bscript::UninitObject::create().

Referenced by Pol::Module::BasicExecutorModule::mf_UnpackJSON().

+ Here is the call graph for this function:

void Pol::Module::send_clear_vendorwindow ( Client client,
Character vendor 
)
bool Pol::Module::send_vendorwindow_contents ( Network::Client client,
Core::UContainer for_sale,
bool  send_aos_tooltip 
)
char Pol::Module::strip_ctrl_chars ( char  c)

Definition at line 2441 of file uomod2.cpp.

Referenced by open_book_handler().

Variable Documentation

initer Pol::Module::_initer

Definition at line 74 of file mathmod.cpp.

BApplicObjType Pol::Module::bounding_box_type
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.

double Pol::Module::const_e
static

Definition at line 62 of file mathmod.cpp.

double Pol::Module::const_pi
static

Definition at line 61 of file mathmod.cpp.

Bscript::BApplicObjType Pol::Module::datafileelem_type

Definition at line 61 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 60 of file datastore.cpp.

const int Pol::Module::DF_KEYTYPE_INTEGER = 0x01
Bscript::BApplicObjType Pol::Module::echaracterequipobjimp_type

Definition at line 114 of file uoscrobj.cpp.

Bscript::BApplicObjType Pol::Module::eclientrefobjimp_type
Bscript::BApplicObjType Pol::Module::emultirefobjimp_type
Bscript::BApplicObjType Pol::Module::euboatrefobjimp_type
BApplicObjType Pol::Module::guild_type

Definition at line 98 of file guildmod.cpp.

Referenced by Pol::Module::EGuildRefObjImp::operator==().

const int Pol::Module::LH_FLAG_INCLUDE_HIDDEN = 2

Definition at line 2784 of file uomod.cpp.

const int Pol::Module::LH_FLAG_LOS = 1

Definition at line 2783 of file uomod.cpp.

const unsigned Pol::Module::LMBLEX_FLAG_CONCEALED = 0x8
const unsigned Pol::Module::LMBLEX_FLAG_DEAD = 0x04
const unsigned Pol::Module::LMBLEX_FLAG_HIDDEN = 0x02
const unsigned Pol::Module::LMBLEX_FLAG_NORMAL = 0x01
const unsigned Pol::Module::LMBLEX_FLAG_NPC_ONLY = 0x20
const unsigned Pol::Module::LMBLEX_FLAG_PLAYERS_ONLY = 0x10
Bscript::BApplicObjType Pol::Module::packageobjimp_type

Definition at line 73 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_AUXSVC_ASSUME_STRING = 5

Definition at line 892 of file osmod.cpp.

const int Pol::Module::SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES = 4

Definition at line 891 of file osmod.cpp.

const int Pol::Module::SCRIPTOPT_DEBUG = 2

Definition at line 889 of file osmod.cpp.

const int Pol::Module::SCRIPTOPT_NO_INTERRUPT = 1

Definition at line 888 of file osmod.cpp.

const int Pol::Module::SCRIPTOPT_NO_RUNAWAY = 3

Definition at line 890 of file osmod.cpp.

const int Pol::Module::TGTOPT_CHECK_LOS = 0x0001

Definition at line 761 of file uomod.cpp.

Referenced by Pol::Module::UOExecutorModule::mf_Target().

const int Pol::Module::TGTOPT_HARMFUL = 0x0002

Definition at line 762 of file uomod.cpp.

const int Pol::Module::TGTOPT_HELPFUL = 0x0004

Definition at line 763 of file uomod.cpp.