Pol
Revision:cb584c9
|
#include <realm.h>
Classes | |
struct | LosCache |
Public Member Functions | |
Realm (const std::string &realm_name, const std::string &realm_path="") | |
Realm (const std::string &realm_name, Realm *realm) | |
~Realm () | |
void | add_mobile (const Mobile::Character &chr, WorldChangeReason reason) |
void | add_multi (const Multi::UMulti &multi) |
void | add_toplevel_item (const Items::Item &item) |
bool | dropheight (unsigned short dropx, unsigned short dropy, short dropz, short chrz, short *newz, Multi::UMulti **pmulti) |
Multi::UMulti * | find_supporting_multi (unsigned short x, unsigned short y, short z) const |
bool | findstatic (unsigned short x, unsigned short y, unsigned short objtype) const |
void | getmapshapes (Plib::MapShapeList &shapes, unsigned short x, unsigned short y, unsigned int anyflags) const |
Plib::MAPTILE_CELL | getmaptile (unsigned short x, unsigned short y) const |
unsigned | getNumMapPatches () const |
unsigned | getNumStaticPatches () const |
void | getstatics (Plib::StaticEntryList &statics, unsigned short x, unsigned short y) const |
unsigned | getUOMapID () const |
unsigned short | grid_height () const |
unsigned short | grid_width () const |
bool | groundheight (unsigned short x, unsigned short y, short *z) const |
bool | has_los (const Core::ULWObject &att, const Core::ULWObject &tgt) const |
unsigned short | height () const |
bool | lowest_standheight (unsigned short x, unsigned short y, short *z) const |
bool | lowest_walkheight (unsigned short x, unsigned short y, short oldz, short *newz, Multi::UMulti **pmulti, Items::Item **pwalkon, bool doors_block, Core::MOVEMODE movemode, short *gradual_boost=nullptr) |
unsigned int | mobile_count () const |
unsigned int | multi_count () const |
const std::string | name () const |
bool | navigable (unsigned short x, unsigned short y, short z, short height) const |
void | notify_entered (Mobile::Character &whoentered) |
void | notify_left (Mobile::Character &wholeft) |
void | notify_moved (Mobile::Character &whomoved) |
void | notify_resurrected (Mobile::Character &whoressed) |
void | notify_unhid (Mobile::Character &whounhid) |
unsigned int | offline_mobile_count () const |
void | readmultis (Plib::MapShapeList &vec, unsigned short x, unsigned short y, unsigned int flags) const |
void | readmultis (Plib::MapShapeList &vec, unsigned short x, unsigned short y, unsigned int flags, MultiList &mvec) const |
void | readmultis (Core::StaticList &vec, unsigned short x, unsigned short y) const |
void | remove_mobile (const Mobile::Character &chr, WorldChangeReason reason) |
void | remove_multi (const Multi::UMulti &multi) |
void | remove_toplevel_item (const Items::Item &item) |
unsigned | season () const |
size_t | sizeEstimate () const |
unsigned int | toplevel_item_count () const |
bool | valid (unsigned short x, unsigned short y, short z) const |
bool | walkheight (unsigned short x, unsigned short y, short oldz, short *newz, Multi::UMulti **pmulti, Items::Item **pwalkon, bool doors_block, Core::MOVEMODE movemode, short *gradual_boost=nullptr) |
bool | walkheight (const Mobile::Character *chr, unsigned short x, unsigned short y, short oldz, short *newz, Multi::UMulti **pmulti, Items::Item **pwalkon, short *gradual_boost=nullptr) |
unsigned short | width () const |
Static Public Member Functions | |
static unsigned int | encode_global_hull (unsigned short ax, unsigned short ay) |
Public Attributes | |
Realm * | baserealm |
std::set< unsigned int > | global_hulls |
bool | is_shadowrealm |
unsigned int | shadowid |
const std::string | shadowname |
Core::Zone ** | zone |
Protected Member Functions | |
Multi::UMulti * | find_supporting_multi (MultiList &mvec, short z) const |
bool | los_blocked (const Core::ULWObject &att, const Core::ULWObject &target, unsigned short x, unsigned short y, short z, LosCache &cache) const |
void | readdynamics (Plib::MapShapeList &vec, unsigned short x, unsigned short y, Core::ItemsVector &walkon_items, bool doors_block) |
bool | static_item_blocks_los (unsigned short x, unsigned short y, short z, LosCache &cache) const |
Static Protected Member Functions | |
static bool | dropheight (Plib::MapShapeList &shapes, short dropz, short chrz, short *newz) |
static bool | dynamic_item_blocks_los (unsigned short x, unsigned short y, short z, LosCache &cache) |
static void | lowest_standheight (Core::MOVEMODE movemode, Plib::MapShapeList &shapes, short oldz, bool *result, short *newz, short *gradual_boost=nullptr) |
static void | standheight (Core::MOVEMODE movemode, Plib::MapShapeList &shapes, short oldz, bool *result, short *newz, short *gradual_boost=nullptr) |
Private Member Functions | |
Realm (const Realm &) | |
Realm & | operator= (const Realm &) |
Private Attributes | |
const Plib::RealmDescriptor | _descriptor |
std::unique_ptr< Plib::MapServer > | _mapserver |
std::unique_ptr< Plib::MapTileServer > | _maptileserver |
unsigned int | _mobile_count |
unsigned int | _multi_count |
unsigned int | _offline_count |
std::unique_ptr< Plib::StaticServer > | _staticserver |
unsigned int | _toplevel_item_count |
|
explicit |
Definition at line 27 of file realm.cpp.
References grid_height(), grid_width(), and zone.
|
explicit |
Definition at line 49 of file realm.cpp.
References grid_height(), grid_width(), and zone.
Pol::Realms::Realm::~Realm | ( | ) |
Definition at line 69 of file realm.cpp.
References grid_width(), and zone.
|
private |
void Pol::Realms::Realm::add_mobile | ( | const Mobile::Character & | chr, |
WorldChangeReason | reason | ||
) |
Definition at line 190 of file realm.cpp.
References _mobile_count, _offline_count, Pol::Mobile::Character::logged_in(), Pol::Realms::Moved, Pol::Realms::PlayerEnter, and Pol::Realms::PlayerLoad.
Referenced by Pol::Core::MoveCharacterWorldPosition(), and Pol::Core::SetCharacterWorldPosition().
|
inline |
Definition at line 215 of file realm.h.
Referenced by Pol::Core::add_multi_to_world(), and Pol::Core::move_multi_in_world().
|
inline |
Definition at line 206 of file realm.h.
Referenced by Pol::Core::add_item_to_world(), and Pol::Core::MoveItemWorldPosition().
bool Pol::Realms::Realm::dropheight | ( | unsigned short | dropx, |
unsigned short | dropy, | ||
short | dropz, | ||
short | chrz, | ||
short * | newz, | ||
Multi::UMulti ** | pmulti | ||
) |
Definition at line 515 of file realmfunc.cpp.
References Pol::Plib::FLAG::DROP_FLAGS.
Referenced by Pol::Core::drop_item_on_ground().
|
staticprotected |
Definition at line 550 of file realmfunc.cpp.
References Pol::Plib::FLAG::ALLOWDROPON, Pol::Plib::FLAG::BLOCKING, INFO_PRINT, Pol::Core::settingsManager, Pol::Core::static_debug_on, Pol::Core::tileheight(), and Pol::Core::ZCOORD_MIN.
|
inlinestatic |
Definition at line 236 of file realm.h.
Referenced by Pol::Multi::UBoat::navigable(), Pol::Multi::UBoat::regself(), and Pol::Multi::UBoat::unregself().
Multi::UMulti * Pol::Realms::Realm::find_supporting_multi | ( | unsigned short | x, |
unsigned short | y, | ||
short | z | ||
) | const |
Definition at line 709 of file realmfunc.cpp.
References Pol::Plib::FLAG::MOVE_FLAGS.
Referenced by Pol::Core::decay_worldzone(), Pol::Core::equip_item(), Pol::Module::handle_coord_cursor(), Pol::Multi::CustomHouseDesign::isEditableItem(), Pol::Module::UOExecutorModule::mf_SendHousingTool(), Pol::Core::register_with_supporting_multi(), Pol::Core::remove_item_from_world(), and Pol::Core::send_objects_newly_inrange_on_boat().
|
protected |
Definition at line 728 of file realmfunc.cpp.
References Pol::Core::ULWObject::z.
bool Pol::Realms::Realm::findstatic | ( | unsigned short | x, |
unsigned short | y, | ||
unsigned short | objtype | ||
) | const |
Definition at line 744 of file realmfunc.cpp.
Referenced by Pol::Core::ResourceDef::findmarker().
void Pol::Realms::Realm::getmapshapes | ( | Plib::MapShapeList & | shapes, |
unsigned short | x, | ||
unsigned short | y, | ||
unsigned int | anyflags | ||
) | const |
Definition at line 780 of file realmfunc.cpp.
Referenced by Pol::Module::UOExecutorModule::mf_GetStandingLayers(), and static_item_blocks_los().
Plib::MAPTILE_CELL Pol::Realms::Realm::getmaptile | ( | unsigned short | x, |
unsigned short | y | ||
) | const |
Definition at line 772 of file realmfunc.cpp.
Referenced by Pol::Core::ResourceDef::findmarker(), Pol::Testing::map_test(), and Pol::Module::UOExecutorModule::mf_GetMapInfo().
|
inline |
|
inline |
void Pol::Realms::Realm::getstatics | ( | Plib::StaticEntryList & | statics, |
unsigned short | x, | ||
unsigned short | y | ||
) | const |
Definition at line 752 of file realmfunc.cpp.
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().
|
inline |
Definition at line 224 of file realm.h.
Referenced by Pol::Core::send_realm_change(), and Pol::Module::SetupRealmDetails().
unsigned short Pol::Realms::Realm::grid_height | ( | ) | const |
Definition at line 109 of file realm.cpp.
References _descriptor, and Pol::Plib::RealmDescriptor::grid_height.
Referenced by Pol::Core::decay_items(), Pol::Core::decay_thread(), Pol::Core::find_missing_char_in_zone(), Realm(), Pol::Core::should_switch_realm(), sizeEstimate(), and Pol::Core::update_rpm().
unsigned short Pol::Realms::Realm::grid_width | ( | ) | const |
Definition at line 105 of file realm.cpp.
References _descriptor, and Pol::Plib::RealmDescriptor::grid_width.
Referenced by Pol::Core::decay_items(), Pol::Core::decay_thread(), Pol::Core::find_missing_char_in_zone(), Realm(), Pol::Core::should_switch_realm(), sizeEstimate(), Pol::Core::update_rpm(), and ~Realm().
bool Pol::Realms::Realm::groundheight | ( | unsigned short | x, |
unsigned short | y, | ||
short * | z | ||
) | const |
Definition at line 760 of file realmfunc.cpp.
References Pol::Plib::FLAG::BLOCKING, GRAPHIC_NODRAW, Pol::Plib::MAPTILE_CELL::landtile, Pol::Core::landtile_flags(), Pol::Plib::MAPTILE_CELL::z, and Pol::Core::ZCOORD_MIN.
Referenced by Pol::Multi::move_to_ground().
|
inline |
Definition at line 245 of file realm.h.
Referenced by Pol::Core::WeatherDef::assign_zones_to_region(), Pol::Core::WeatherDef::copy_default_regions(), Pol::Module::UOExecutorModule::internal_InBoxAreaChecks(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationOfType(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationWithFlag(), Pol::Module::UBoatExecutorModule::mf_MoveBoatXY(), Pol::Core::move_character_to(), Pol::Multi::UBoat::navigable(), Pol::Core::RegionGroupBase::paint_zones(), Pol::Core::UObject::readProperties(), Pol::Core::send_new_subserver(), Pol::Core::send_startup(), Pol::Module::SetupRealmDetails(), valid(), and Pol::Core::zone_convert_clip().
bool Pol::Realms::Realm::lowest_standheight | ( | unsigned short | x, |
unsigned short | y, | ||
short * | z | ||
) | const |
Definition at line 61 of file realmfunc.cpp.
References Pol::Plib::FLAG::BLOCKING, Pol::Plib::FLAG::GRADUAL, Pol::Plib::FLAG::MOVELAND, Pol::Core::MOVEMODE_LAND, and Pol::Plib::FLAG::MOVESEA.
Referenced by Pol::Module::UOExecutorModule::mf_GetWorldHeight().
|
staticprotected |
Definition at line 197 of file realmfunc.cpp.
References Pol::Plib::FLAG::BLOCKING, Pol::Core::ServSpecOpt::default_character_height, Pol::Plib::MapShape::flags, Pol::Plib::FLAG::GRADUAL, Pol::Plib::MapShape::height, INFO_PRINT, Pol::Plib::FLAG::MOVELAND, Pol::Core::MOVEMODE_FLY, Pol::Core::MOVEMODE_LAND, Pol::Core::MOVEMODE_SEA, Pol::Plib::FLAG::MOVESEA, Pol::Plib::FLAG::OVERFLIGHT, Pol::Core::settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::static_debug_on, and Pol::Plib::MapShape::z.
bool Pol::Realms::Realm::lowest_walkheight | ( | unsigned short | x, |
unsigned short | y, | ||
short | oldz, | ||
short * | newz, | ||
Multi::UMulti ** | pmulti, | ||
Items::Item ** | pwalkon, | ||
bool | doors_block, | ||
Core::MOVEMODE | movemode, | ||
short * | gradual_boost = nullptr |
||
) |
Definition at line 464 of file realmfunc.cpp.
References Pol::Core::find_walkon_item(), Pol::Plib::FLAG::MOVE_FLAGS, Pol::Core::MOVEMODE_FLY, and Pol::Plib::FLAG::OVERFLIGHT.
Referenced by Pol::Module::UOExecutorModule::mf_GetStandingHeight().
|
inline |
Definition at line 189 of file realm.h.
Referenced by Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), and Pol::Module::SetupRealmDetails().
|
inline |
Definition at line 201 of file realm.h.
Referenced by Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), and Pol::Module::SetupRealmDetails().
const std::string Pol::Realms::Realm::name | ( | ) | const |
Definition at line 124 of file realm.cpp.
References _descriptor, is_shadowrealm, Pol::Plib::RealmDescriptor::name, and shadowname.
Referenced by Pol::Module::handle_coord_cursor(), Pol::Core::load_realms(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), Pol::Core::MoveItemWorldPosition(), Pol::Multi::UBoat::navigable(), and Pol::Core::UObject::printProperties().
bool Pol::Realms::Realm::navigable | ( | unsigned short | x, |
unsigned short | y, | ||
short | z, | ||
short | height = 0 |
||
) | const |
Definition at line 677 of file realmfunc.cpp.
References Pol::Plib::FLAG::ALL, HULL_HEIGHT_BUFFER, and Pol::Plib::FLAG::MOVESEA.
Referenced by Pol::Multi::UBoat::navigable().
void Pol::Realms::Realm::notify_entered | ( | Mobile::Character & | whoentered | ) |
Definition at line 162 of file realm.cpp.
References Pol::Core::WorldIterator< Filter >::InRange(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate().
void Pol::Realms::Realm::notify_left | ( | Mobile::Character & | wholeft | ) |
Definition at line 174 of file realm.cpp.
References Pol::Core::WorldIterator< Filter >::InRange(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Core::client_io_thread(), and Pol::Module::UOExecutorModule::internal_MoveCharacter().
void Pol::Realms::Realm::notify_moved | ( | Mobile::Character & | whomoved | ) |
Definition at line 131 of file realm.cpp.
References Pol::Core::WorldIterator< Filter >::InRange(), Pol::Mobile::Character::lastx, Pol::Mobile::Character::lasty, Pol::Core::pol_distance(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by Pol::Mobile::Character::tellmove().
void Pol::Realms::Realm::notify_resurrected | ( | Mobile::Character & | whoressed | ) |
Definition at line 157 of file realm.cpp.
References notify_unhid().
Referenced by Pol::Mobile::Character::resurrect().
void Pol::Realms::Realm::notify_unhid | ( | Mobile::Character & | whounhid | ) |
Definition at line 149 of file realm.cpp.
References Pol::Core::WorldIterator< Filter >::InRange(), Pol::Core::ULWObject::x, and Pol::Core::ULWObject::y.
Referenced by notify_resurrected(), and Pol::Mobile::Character::unhide().
|
inline |
Definition at line 193 of file realm.h.
Referenced by Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), and Pol::Module::SetupRealmDetails().
|
protected |
Definition at line 310 of file realmfunc.cpp.
References Pol::Items::ItemDesc::DOORDESC, Pol::Plib::MapShape::flags, Pol::Core::Tile::flags, Pol::Core::getzone(), Pol::Plib::MapShape::height, Pol::Core::Zone::items, Pol::Plib::systemstate, Pol::Plib::SystemState::tile, Pol::Core::tile_flags(), Pol::Plib::FLAG::WALKBLOCK, and Pol::Plib::MapShape::z.
void Pol::Realms::Realm::readmultis | ( | Plib::MapShapeList & | vec, |
unsigned short | x, | ||
unsigned short | y, | ||
unsigned int | flags | ||
) | const |
Definition at line 623 of file realmfunc.cpp.
References Pol::Multi::UMulti::as_house(), Pol::Core::WorldIterator< Filter >::InRange(), Pol::Multi::UHouse::IsCustom(), Pol::Multi::UMulti::multidef(), Pol::Multi::UMulti::readshapes(), Pol::Multi::MultiDef::readshapes(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Module::UOExecutorModule::mf_GetStandingLayers(), 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(), and static_item_blocks_los().
void Pol::Realms::Realm::readmultis | ( | Plib::MapShapeList & | vec, |
unsigned short | x, | ||
unsigned short | y, | ||
unsigned int | flags, | ||
MultiList & | mvec | ||
) | const |
Definition at line 640 of file realmfunc.cpp.
References Pol::Multi::UMulti::as_house(), Pol::Core::WorldIterator< Filter >::InRange(), Pol::Multi::UHouse::IsCustom(), Pol::Multi::UMulti::multidef(), Pol::Multi::UMulti::readshapes(), Pol::Multi::MultiDef::readshapes(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
void Pol::Realms::Realm::readmultis | ( | Core::StaticList & | vec, |
unsigned short | x, | ||
unsigned short | y | ||
) | const |
Definition at line 661 of file realmfunc.cpp.
References Pol::Multi::UMulti::as_house(), Pol::Core::WorldIterator< Filter >::InRange(), Pol::Multi::UHouse::IsCustom(), Pol::Multi::UMulti::multidef(), Pol::Multi::UMulti::readobjects(), Pol::Multi::MultiDef::readobjects(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
void Pol::Realms::Realm::remove_mobile | ( | const Mobile::Character & | chr, |
WorldChangeReason | reason | ||
) |
Definition at line 228 of file realm.cpp.
References _mobile_count, _offline_count, Pol::Mobile::Character::logged_in(), Pol::Realms::Moved, Pol::Realms::PlayerDeleted, and Pol::Realms::PlayerExit.
Referenced by Pol::Core::ClrCharacterWorldPosition(), Pol::Core::MoveCharacterWorldPosition(), and Pol::Mobile::Character::on_delete_from_account().
|
inline |
Definition at line 219 of file realm.h.
Referenced by Pol::Core::move_multi_in_world(), and Pol::Core::remove_multi_from_world().
|
inline |
Definition at line 210 of file realm.h.
Referenced by Pol::Core::MoveItemWorldPosition(), and Pol::Core::remove_item_from_world().
unsigned Pol::Realms::Realm::season | ( | ) | const |
Definition at line 114 of file realm.cpp.
References _descriptor, and Pol::Plib::RealmDescriptor::season.
Referenced by Pol::Core::send_season_info(), and Pol::Module::SetupRealmDetails().
size_t Pol::Realms::Realm::sizeEstimate | ( | ) | const |
Definition at line 77 of file realm.cpp.
References _descriptor, _mapserver, _maptileserver, _staticserver, global_hulls, grid_height(), grid_width(), shadowname, Pol::Plib::RealmDescriptor::sizeEstimate(), and zone.
|
staticprotected |
Definition at line 74 of file realmfunc.cpp.
References Pol::Plib::FLAG::BLOCKING, Pol::Core::ServSpecOpt::default_character_height, Pol::Plib::FLAG::GRADUAL, INFO_PRINT, Pol::Plib::FLAG::MOVELAND, Pol::Core::MOVEMODE_FLY, Pol::Core::MOVEMODE_LAND, Pol::Core::MOVEMODE_SEA, Pol::Plib::FLAG::MOVESEA, Pol::Plib::FLAG::OVERFLIGHT, Pol::Core::settingsManager, Pol::Core::SettingsManager::ssopt, and Pol::Core::static_debug_on.
|
inline |
Definition at line 197 of file realm.h.
Referenced by Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), and Pol::Module::SetupRealmDetails().
bool Pol::Realms::Realm::valid | ( | unsigned short | x, |
unsigned short | y, | ||
short | z | ||
) | const |
Definition at line 119 of file realm.cpp.
References height(), width(), Pol::Core::ZCOORD_MAX, and Pol::Core::ZCOORD_MIN.
Referenced by Pol::Core::BPacket::call_method_id(), Pol::Module::UOExecutorModule::internal_MoveItem(), Pol::Module::UOExecutorModule::mf_AssignRectToWeatherRegion(), Pol::Module::UOExecutorModule::mf_CheckLosAt(), 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::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_ListItemsAtLocation(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocation(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocationOfType(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocationWithFlag(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocation(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocationEx(), Pol::Module::UOExecutorModule::mf_ListStaticsAtLocation(), 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::NPCExecutorModule::mf_RunAwayFromLocation(), Pol::Module::NPCExecutorModule::mf_RunTowardLocation(), Pol::Module::UOExecutorModule::mf_SendQuestArrow(), Pol::Module::NPCExecutorModule::mf_SetAnchor(), Pol::Module::NPCExecutorModule::mf_TurnAwayFromLocation(), Pol::Module::NPCExecutorModule::mf_TurnTowardLocation(), Pol::Module::NPCExecutorModule::mf_WalkAwayFromLocation(), Pol::Module::NPCExecutorModule::mf_WalkTowardLocation(), Pol::Core::UObject::readProperties(), Pol::Core::Map::script_method_id(), Pol::Multi::UBoat::script_method_id(), Pol::Items::Item::script_method_id(), and Pol::Multi::UHouse::scripted_create().
bool Pol::Realms::Realm::walkheight | ( | unsigned short | x, |
unsigned short | y, | ||
short | oldz, | ||
short * | newz, | ||
Multi::UMulti ** | pmulti, | ||
Items::Item ** | pwalkon, | ||
bool | doors_block, | ||
Core::MOVEMODE | movemode, | ||
short * | gradual_boost = nullptr |
||
) |
Definition at line 340 of file realmfunc.cpp.
References Pol::Core::find_walkon_item(), Pol::Plib::FLAG::MOVE_FLAGS, Pol::Core::MOVEMODE_FLY, Pol::Plib::FLAG::OVERFLIGHT, and Pol::Core::standheight().
Referenced by Pol::Mobile::NPC::could_move(), Pol::Module::UOExecutorModule::internal_MoveCharacter(), Pol::Module::UOExecutorModule::internal_MoveItem(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), Pol::Module::UOExecutorModule::mf_Resurrect(), Pol::Mobile::Character::move(), Pol::Core::move_character_to(), Pol::Multi::move_to_ground(), Pol::Core::start_client_char(), and Pol::Multi::statics_cause_problems().
bool Pol::Realms::Realm::walkheight | ( | const Mobile::Character * | chr, |
unsigned short | x, | ||
unsigned short | y, | ||
short | oldz, | ||
short * | newz, | ||
Multi::UMulti ** | pmulti, | ||
Items::Item ** | pwalkon, | ||
short * | gradual_boost = nullptr |
||
) |
Definition at line 393 of file realmfunc.cpp.
References Pol::Multi::UMulti::as_house(), Pol::Multi::UHouse::as_house(), Pol::Mobile::Character::client, Pol::Network::ClientGameData::custom_house_serial, Pol::Multi::CustomHousesSendFull(), Pol::Multi::CustomHouseStopEditing(), Pol::Mobile::Character::doors_block(), Pol::Multi::UHouse::editing, Pol::Core::find_walkon_item(), Pol::Network::Client::gd, Pol::Multi::HOUSE_DESIGN_CURRENT, Pol::Mobile::Character::is_house_editing(), Pol::Plib::FLAG::MOVE_FLAGS, Pol::Mobile::Character::movemode, Pol::Core::MOVEMODE_FLY, Pol::Plib::FLAG::OVERFLIGHT, Pol::Core::ULWObject::serial, Pol::Core::standheight(), and Pol::Core::system_find_multi().
|
inline |
Definition at line 241 of file realm.h.
Referenced by Pol::Core::WeatherDef::assign_zones_to_region(), Pol::Core::WeatherDef::copy_default_regions(), Pol::Module::UOExecutorModule::internal_InBoxAreaChecks(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationOfType(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationWithFlag(), Pol::Module::UBoatExecutorModule::mf_MoveBoatXY(), Pol::Core::move_character_to(), Pol::Multi::UBoat::navigable(), Pol::Core::RegionGroupBase::paint_zones(), Pol::Core::UObject::readProperties(), Pol::Core::send_new_subserver(), Pol::Core::send_startup(), Pol::Module::SetupRealmDetails(), valid(), and Pol::Core::zone_convert_clip().
|
private |
Definition at line 170 of file realm.h.
Referenced by grid_height(), grid_width(), name(), season(), and sizeEstimate().
|
private |
Definition at line 175 of file realm.h.
Referenced by sizeEstimate().
|
private |
Definition at line 177 of file realm.h.
Referenced by sizeEstimate().
|
private |
Definition at line 171 of file realm.h.
Referenced by add_mobile(), and remove_mobile().
|
private |
Definition at line 172 of file realm.h.
Referenced by add_mobile(), and remove_mobile().
|
private |
Definition at line 176 of file realm.h.
Referenced by sizeEstimate().
|
private |
Realm* Pol::Realms::Realm::baserealm |
Definition at line 66 of file realm.h.
Referenced by Pol::Core::RegionGroupBase::getregionid(), and Pol::Core::setrealmif().
std::set<unsigned int> Pol::Realms::Realm::global_hulls |
Definition at line 134 of file realm.h.
Referenced by Pol::Multi::UBoat::navigable(), Pol::Multi::UBoat::regself(), sizeEstimate(), and Pol::Multi::UBoat::unregself().
bool Pol::Realms::Realm::is_shadowrealm |
Definition at line 64 of file realm.h.
Referenced by Pol::Core::RegionGroupBase::getregionid(), Pol::Module::PolSystemExecutorModule::mf_AddRealm(), Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), and name().
unsigned int Pol::Realms::Realm::shadowid |
Definition at line 65 of file realm.h.
Referenced by Pol::Core::add_realm().
const std::string Pol::Realms::Realm::shadowname |
Definition at line 67 of file realm.h.
Referenced by name(), and sizeEstimate().
Core::Zone** Pol::Realms::Realm::zone |
Definition at line 133 of file realm.h.
Referenced by Pol::Core::WorldIterator< Filter >::_forEach(), Pol::Core::check_single_zone_item_integrity(), Pol::Core::decay_worldzone(), Pol::Core::find_existing_item(), Pol::Core::find_legal_container(), Pol::Core::find_legal_item(), Pol::Core::find_legal_singleclick_item(), Pol::Core::find_missing_char_in_zone(), Pol::Core::getzone(), Pol::Multi::multis_exist_in(), Pol::Mobile::NPC::npc_path_blocked(), Pol::Multi::objects_exist_in(), Realm(), sizeEstimate(), and ~Realm().