Pol  Revision:7b0b906
Pol::Plib Namespace Reference

Classes

class  AStarSearch
 
class  ClientFeatures
 
class  FileMapServer
 
class  FixedSizeAllocator
 
struct  FLAG
 
class  FlagExpansion
 
class  InMemoryMapServer
 
struct  MAPBLOCK
 
struct  MAPCELL
 
class  MapServer
 
struct  MapShape
 
class  MapShapeList
 
struct  MAPTILE_BLOCK
 
struct  MAPTILE_CELL
 
class  MapTileServer
 
class  MapWriter
 
class  Package
 
class  PackageList
 
class  RawMap
 
class  RealmDescriptor
 
struct  SOLIDS_DATA
 
struct  SOLIDS_ELEM
 
struct  SOLIDX1_ELEM
 
struct  SOLIDX2_ELEM
 
struct  STATIC_ENTRY
 
struct  STATIC_INDEX
 
class  StaticEntryList
 
class  StaticServer
 
class  SystemState
 
class  UOExpansion
 

Typedefs

typedef std::vector< Package * > Packages
 
typedef std::map< std::string, Package *, Clib::ci_cmp_predPackagesByName
 

Enumerations

enum  A9Feature : u32 {
  A9Feature::Unk1 = 0x01, A9Feature::ConfigReqLogout = 0x02, A9Feature::SingleCharacter = 0x04, A9Feature::ContextMenus = 0x08,
  A9Feature::LimitSlots = 0x10, A9Feature::AOS = 0x20, A9Feature::Has6thSlot = 0x40, A9Feature::SamuraiNinja = 0x80,
  A9Feature::ElvenRace = 0x100, A9Feature::Unk2 = 0x200, A9Feature::UO3DClientType = 0x400, A9Feature::Unk3 = 0x800,
  A9Feature::Has7thSlot = 0x1000, A9Feature::Unk4 = 0x2000, A9Feature::NewMovement = 0x4000, A9Feature::UnlockNewFeluccaAreas = 0x8000
}
 
enum  B9Feature : u32 {
  B9Feature::T2A = 0x01, B9Feature::Renaissance = 0x02, B9Feature::ThirdDawn = 0x04, B9Feature::LBR = 0x08,
  B9Feature::AOS = 0x10, B9Feature::Has6thSlot = 0x20, B9Feature::SE = 0x40, B9Feature::ML = 0x80,
  B9Feature::Splash8thAge = 0x100, B9Feature::CrystalShadowTiles = 0x200, B9Feature::Splash9thAge = 0x200, B9Feature::Splash10thAge = 0x400,
  B9Feature::IncreasedStorage = 0x800, B9Feature::Has7thSlot = 0x1000, B9Feature::KRFaces = 0x2000, B9Feature::TrialAcct = 0x4000,
  B9Feature::LiveAcct = 0x8000, B9Feature::SA = 0x10000, B9Feature::HSA = 0x20000, B9Feature::GothicTiles = 0x40000,
  B9Feature::RusticTiles = 0x80000
}
 
enum  ExpansionVersion : u8 {
  ExpansionVersion::T2A, ExpansionVersion::LBR, ExpansionVersion::AOS, ExpansionVersion::SE,
  ExpansionVersion::ML, ExpansionVersion::KR, ExpansionVersion::SA, ExpansionVersion::HSA,
  ExpansionVersion::LastVersion = HSA
}
 

Functions

void check_deps_for_package (const Package *pkg)
 
void check_package_deps ()
 
bool check_version2 (const std::string &version_have, const std::string &version_need)
 
void compare_versions (const std::string &verleft, const std::string &verright, bool &isgreater, bool &isequal)
 
Packagefind_package (const std::string &pkgname)
 
std::string flagdescs ()
 
bool flags_clear (u32 value, u32 flags)
 
bool flags_set (u32 value, u32 flags)
 
std::string flagstr (unsigned int flags)
 
const char * getExpansionName (ExpansionVersion x)
 
std::string GetPackageCfgPath (const Package *pkg, const std::string &filename)
 
void load_all_cfgs (const char *cfgname, const char *taglist, void(*loadentry)(const Package *, Clib::ConfigElem &))
 
void load_package (const std::string &pkg_dir, Clib::ConfigElem &elem, bool quiet)
 
void load_packaged_cfgs (const char *cfgname, const char *taglist, void(*loadentry)(const Package *, Clib::ConfigElem &))
 
void load_packages (const std::string &basedir, bool quiet)
 
void load_packages (bool quiet)
 
bool pkgdef_split (const std::string &spec, const Package *inpkg, const Package **outpkg, std::string *path)
 
u32 polflags_from_landtileflags (unsigned short tile, u32 lt_flags)
 
u32 polflags_from_tileflags (unsigned short tile, u32 uoflags, bool use_no_shoot, bool LOS_through_windows)
 
unsigned int readflags (Clib::ConfigElem &elem)
 
void remove_package (Package *pkg)
 
void replace_packages ()
 
void test_check_version ()
 

Variables

B9Feature ExpansionFlags [numExpansions]
 
char * ExpansionNames [numExpansions] = {"T2A", "LBR", "AOS", "SE", "ML", "KR", "SA", "HSA"}
 
const unsigned MAPBLOCK_CELLMASK = 0x3F
 
const unsigned MAPBLOCK_CHUNK = 64
 
const unsigned MAPBLOCK_SHIFT = 6
 
const unsigned MAPTILE_CELLMASK = 0x3f
 
const unsigned MAPTILE_CHUNK = 64
 
const unsigned MAPTILE_SHIFT = 6
 
unsigned int num_map_patches = 0
 
unsigned int num_static_patches = 0
 
const int numExpansions = static_cast<int>( ExpansionVersion::LastVersion ) + 1
 
const unsigned SOLIDX2_FILLER_SIZE = 4
 
const unsigned STATICBLOCK_CHUNK = 8
 
const unsigned STATICBLOCK_SHIFT = 3
 
const unsigned STATICCELL_MASK = 0x7
 
SystemState systemstate
 
const unsigned WGRID_SHIFT = 6
 
const unsigned WGRID_SIZE = 64
 

Detailed Description

Plib namespace is for pol-related functions and classes, like reading a map file or keeping track of realms

Typedef Documentation

typedef std::vector<Package*> Pol::Plib::Packages

Definition at line 25 of file systemstate.h.

typedef std::map<std::string, Package*, Clib::ci_cmp_pred> Pol::Plib::PackagesByName

Definition at line 28 of file systemstate.h.

Enumeration Type Documentation

enum Pol::Plib::A9Feature : u32
strong
Enumerator
Unk1 
ConfigReqLogout 
SingleCharacter 
ContextMenus 
LimitSlots 
AOS 
Has6thSlot 
SamuraiNinja 
ElvenRace 
Unk2 
UO3DClientType 
Unk3 
Has7thSlot 
Unk4 
NewMovement 
UnlockNewFeluccaAreas 

Definition at line 43 of file uoexpansion.h.

enum Pol::Plib::B9Feature : u32
strong
Enumerator
T2A 
Renaissance 
ThirdDawn 
LBR 
AOS 
Has6thSlot 
SE 
ML 
Splash8thAge 
CrystalShadowTiles 
Splash9thAge 
Splash10thAge 
IncreasedStorage 
Has7thSlot 
KRFaces 
TrialAcct 
LiveAcct 
SA 
HSA 
GothicTiles 
RusticTiles 

Definition at line 11 of file uoexpansion.h.

Enumerator
T2A 
LBR 
AOS 
SE 
ML 
KR 
SA 
HSA 
LastVersion 

Definition at line 71 of file uoexpansion.h.

Function Documentation

void Pol::Plib::check_deps_for_package ( const Package pkg)
void Pol::Plib::check_package_deps ( )
bool Pol::Plib::check_version2 ( const std::string &  version_have,
const std::string &  version_need 
)

Definition at line 104 of file pkg.cpp.

References compare_versions().

Referenced by Pol::Plib::Package::check_dependencies(), and test_check_version().

void Pol::Plib::compare_versions ( const std::string &  verleft,
const std::string &  verright,
bool &  isgreater,
bool &  isequal 
)

Definition at line 66 of file pkg.cpp.

Referenced by check_version2(), and load_package().

std::string Pol::Plib::flagdescs ( )

Definition at line 53 of file mapfunc.cpp.

Referenced by Pol::Clib::PolToolMain::mapdump().

bool Pol::Plib::flags_clear ( u32  value,
u32  flags 
)

Definition at line 66 of file mapfunc.cpp.

Referenced by polflags_from_tileflags().

bool Pol::Plib::flags_set ( u32  value,
u32  flags 
)

Definition at line 61 of file mapfunc.cpp.

Referenced by polflags_from_tileflags().

std::string Pol::Plib::flagstr ( unsigned int  flags)

Definition at line 24 of file mapfunc.cpp.

References Pol::Core::MOVABLE.

Referenced by Pol::Clib::PolToolMain::mapdump().

const char * Pol::Plib::getExpansionName ( ExpansionVersion  x)

Definition at line 12 of file uoexpansion.cpp.

References LastVersion.

void Pol::Plib::load_all_cfgs ( const char *  cfgname,
const char *  taglist,
void(*)(const Package *, Clib::ConfigElem &)  loadentry 
)
void Pol::Plib::load_packages ( const std::string &  basedir,
bool  quiet 
)
unsigned int Pol::Plib::readflags ( Clib::ConfigElem elem)
void Pol::Plib::remove_package ( Package pkg)
void Pol::Plib::replace_packages ( )
void Pol::Plib::test_check_version ( )

Definition at line 112 of file pkg.cpp.

References check_version2(), and passert.

Referenced by load_packages().

Variable Documentation

B9Feature Pol::Plib::ExpansionFlags[numExpansions]
Initial value:
B9Feature::SE, B9Feature::ML, B9Feature::KRFaces,
const u16 HSA
Definition: client.h:82
const u16 ML
Definition: client.h:77
const u16 SE
Definition: client.h:76
const u16 AOS
Definition: client.h:75
const u16 T2A
Definition: client.h:73
const u16 SA
Definition: client.h:80
const u16 LBR
Definition: client.h:74

Definition at line 8 of file uoexpansion.cpp.

char* Pol::Plib::ExpansionNames[numExpansions] = {"T2A", "LBR", "AOS", "SE", "ML", "KR", "SA", "HSA"}

Definition at line 7 of file uoexpansion.cpp.

const unsigned Pol::Plib::MAPBLOCK_CELLMASK = 0x3F
const unsigned Pol::Plib::MAPBLOCK_CHUNK = 64

Definition at line 18 of file mapblock.h.

Referenced by Pol::Plib::MapWriter::total_blocks().

const unsigned Pol::Plib::MAPTILE_CELLMASK = 0x3f
const unsigned Pol::Plib::MAPTILE_CHUNK = 64
const unsigned Pol::Plib::MAPTILE_SHIFT = 6
unsigned int Pol::Plib::num_map_patches = 0

Definition at line 28 of file uofile08.cpp.

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

unsigned int Pol::Plib::num_static_patches = 0

Definition at line 25 of file uofile02.cpp.

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

const int Pol::Plib::numExpansions = static_cast<int>( ExpansionVersion::LastVersion ) + 1

Definition at line 84 of file uoexpansion.h.

const unsigned Pol::Plib::SOLIDX2_FILLER_SIZE = 4
const unsigned Pol::Plib::STATICBLOCK_CHUNK = 8
const unsigned Pol::Plib::STATICBLOCK_SHIFT = 3
const unsigned Pol::Plib::STATICCELL_MASK = 0x7
SystemState Pol::Plib::systemstate

Definition at line 12 of file systemstate.cpp.

Referenced by Pol::Accounts::Account::Account(), Pol::Multi::CustomHouseDesign::AddMultiAtOffset(), Pol::Items::ArmorDesc::ArmorDesc(), Pol::ECompile::AutoCompile(), Pol::Core::call_chr_scripts(), Pol::Accounts::AccountObjImp::call_method_id(), Pol::Core::USpell::cast(), Pol::Core::char_select(), Pol::Mobile::Character::charindex(), Pol::Core::check_config(), Pol::Core::check_incoming_data(), check_package_deps(), Pol::Items::Item::check_test_scripts(), Pol::Core::checkpoint(), Pol::Core::GameState::cleanup_vars(), Pol::Core::client_io_thread(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Core::commit(), Pol::Core::commit_incremental(), Pol::Core::config_web_server(), Pol::Core::UoClientThread::create(), Pol::Items::Item::create(), Pol::Core::create_debug_context(), Pol::Accounts::create_new_account(), Pol::UoConvert::create_tiles_cfg(), Pol::Core::debug_listen_thread(), Pol::Core::decay_single_thread(), Pol::Core::decay_worldzone(), Pol::Core::GameState::deinitialize(), Pol::Accounts::delete_account(), Pol::Multi::UHouse::destroy_components(), Pol::Core::do_cast(), Pol::Core::Spellbook::double_click(), Pol::Items::Item::double_click(), Pol::Core::doubleclick(), Pol::Accounts::duplicate_account(), Pol::Mobile::Character::equippable(), Pol::Core::PropertyList::eraseprop(), Pol::Core::ConsoleCommand::exec_console_cmd(), Pol::Module::DataStoreFile::filename(), find_package(), Pol::Core::FindConfigFile(), Pol::Core::UObject::fixInvalidGraphic(), Pol::Core::ScriptExObjImp::get_member_id(), Pol::Items::getgraphic(), Pol::Accounts::Account::getnextfreeslot(), Pol::Core::getObjtypeParam(), Pol::Module::GetPackageList(), Pol::Core::PropertyList::getprop(), Pol::Module::gumpbutton_handler(), Pol::Core::handle_char_profile_request(), Pol::Core::handle_delete_character(), Pol::Core::handle_help(), Pol::Core::handle_msg_BF(), Pol::Core::handle_processed_speech(), Pol::Core::handle_unknown_packet(), Pol::Accounts::Account::has_active_characters(), Pol::Core::http_func(), Pol::Core::http_thread(), Pol::Core::import(), Pol::Core::import_new_data(), Pol::Core::ObjectHash::Insert(), Pol::Core::insert_deferred_items(), Pol::Multi::CustomHouseDesign::IsStair(), Pol::Multi::CustomHouseDesign::IsStairBlock(), Pol::Module::item_create_params_ok(), Pol::Items::ItemDesc::ItemDesc(), Pol::Core::NetworkManager::kill_disconnected_clients(), Pol::Mobile::load_armor_zones(), Pol::Core::load_circle_data(), Pol::Core::load_incremental_indexes(), Pol::Items::load_itemdesc(), Pol::Core::load_movecost(), Pol::Items::load_npc_intrinsic_equip(), Pol::Core::load_npc_templates(), load_package(), Pol::Core::load_package_cmdlevels(), load_packaged_cfgs(), Pol::Core::load_realms(), Pol::Core::load_resource_cfg(), Pol::Multi::load_special_storedconfig(), Pol::Core::load_spell_data(), Pol::Core::load_stacking_cfg(), Pol::Core::load_system_hooks(), Pol::Core::load_tile_entry(), Pol::Core::load_tiles_cfg(), Pol::Core::MemoryUsage::log(), Pol::Core::log_all_script_cycle_counts(), Pol::Core::login2(), Pol::Core::loginserver_login(), Pol::UoConvert::UoConvertMain::main(), Pol::UoTool::UoToolMain::main(), Pol::Module::PolSystemExecutorModule::mf_AddRealm(), Pol::Module::DataFileExecutorModule::mf_CreateDataFile(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::PolSystemExecutorModule::mf_ListTextCommands(), Pol::Module::PolSystemExecutorModule::mf_LogCPropProfile(), Pol::Module::PolSystemExecutorModule::mf_Packages(), Pol::Module::UOExecutorModule::mf_UseItem(), Pol::Multi::UBoat::navigable(), Pol::Core::newstat_dont_add(), Pol::Accounts::Account::numchars(), Pol::Core::OnChatButton(), Pol::Core::OnGuildButton(), Pol::Core::OnQuestButton(), Pol::Core::open_map_file(), Pol::Core::open_trade_window(), Pol::Core::open_uo_data_files(), Pol::Core::open_uo_file(), Pol::Core::open_uopmap_file(), Pol::Items::preload_test_scripts(), Pol::UoTool::print_multidata(), Pol::UoTool::print_multihull(), Pol::UoTool::print_sndlist(), Pol::Core::DebugContext::process(), Pol::Core::process_data(), Pol::Core::process_tildecommand(), Pol::Core::PropertyList::PropertyList(), Pol::Core::Storage::read(), Pol::Accounts::read_account_data(), Pol::Core::CombatConfig::read_combat_config(), Pol::Core::read_data(), Pol::Module::read_datastore_dat(), Pol::Core::read_guilds_dat(), Pol::Core::read_incremental_saves(), Pol::Core::read_item(), Pol::Core::read_items_dat(), Pol::Core::Menu::read_menus(), Pol::Core::read_multis_dat(), Pol::Core::read_npc_templates(), Pol::Core::read_npcequip_dat(), Pol::Core::read_npcs_dat(), Pol::Core::read_objects_dat(), Pol::Core::read_objinfo(), Pol::Core::read_party_dat(), Pol::Core::read_pcequip_dat(), Pol::Core::read_pcs_dat(), Pol::Core::PolConfig::read_pol_config(), Pol::Core::read_pol_dat(), Pol::Module::HttpExecutorModule::read_query_string(), Pol::Core::read_resources_dat(), Pol::Core::read_storage_dat(), Pol::Core::read_tiledata(), Pol::Mobile::Character::readCommonProperties(), Pol::Realms::Realm::readdynamics(), Pol::Accounts::Account::readfrom(), Pol::Multi::MultiDef::readshapes(), Pol::Core::readtile(), Pol::Accounts::reload_account_data(), remove_package(), replace_packages(), Pol::Core::rndat(), Pol::Core::UoClientThread::run(), Pol::ECompile::run(), Pol::Core::DebugClientThread::run(), Pol::Core::run_executor_to_completion(), Pol::Mobile::Character::run_hit_script(), Pol::Core::ScriptScheduler::run_ready(), Pol::Core::run_script_to_completion_worker(), Pol::Core::run_start_scripts(), Pol::Clib::RunEclMain::runeclScript(), Pol::Core::save_incremental(), Pol::Core::SaveContext::SaveContext(), Pol::Core::send_feature_enable(), Pol::Core::send_start(), Pol::Core::SendUnicodeSpeech(), Pol::Core::set_watch_vars(), Pol::Items::Item::setgraphic(), Pol::Core::PropertyList::setprop(), Pol::Core::should_write_data(), Pol::Module::OSExecutorModule::signal_event(), Pol::Core::skillrequest(), Pol::Core::slurp(), Pol::Core::start_http_script(), Pol::Module::OSExecutorModule::start_skill_script(), Pol::Core::start_textcmd_script(), Pol::Core::start_threads(), Pol::Core::StartSkillScript(), Pol::Core::threadstatus_thread(), Pol::Core::tile_desc(), Pol::Core::tile_flags(), Pol::Core::tile_uoflags(), Pol::Core::tileheight(), Pol::Core::tilelayer(), Pol::Core::tileweight(), Pol::Core::uo_client_listener_thread(), Pol::Core::update_rpm(), Pol::Core::validbeard(), Pol::Core::validhair(), Pol::Items::Item::walk_on(), Pol::Multi::UHouse::walk_on(), Pol::Accounts::write_account_data(), Pol::Accounts::write_account_data_task(), Pol::Core::write_data(), Pol::Items::write_objtypes_txt(), Pol::Core::write_pol_static_files(), Pol::Accounts::Account::writeto(), Pol::xmain_inner(), Pol::Accounts::Account::~Account(), and Pol::Mobile::Character::~Character().

const unsigned Pol::Plib::WGRID_SHIFT = 6
const unsigned Pol::Plib::WGRID_SIZE = 64

Definition at line 21 of file realmdescriptor.h.

Referenced by Pol::Plib::RealmDescriptor::Load().