|
Pol
Revision:46daeab
|
#include <realm.h>
Collaboration diagram for Pol::Plib::Realm: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 (MapShapeList &shapes, unsigned short x, unsigned short y, unsigned int anyflags) const |
| MAPTILE_CELL | getmaptile (unsigned short x, unsigned short y) const |
| unsigned | getNumMapPatches () const |
| unsigned | getNumStaticPatches () const |
| void | getstatics (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::LosObj &att, const Core::LosObj &tgt) const |
| bool | has_los (const Core::UObject &iatt, const Core::UObject &itgt) const |
| bool | has_los (const Mobile::Character &iatt, const Core::UObject &itgt) 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=NULL) |
| 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 |
| unsigned int | offline_mobile_count () const |
| void | readmultis (MapShapeList &vec, unsigned short x, unsigned short y, unsigned int flags) const |
| void | readmultis (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=NULL) |
| 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=NULL) |
| 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 | |
| bool | dynamic_item_blocks_los (const Core::LosObj &att, const Core::LosObj &target, unsigned short x, unsigned short y, short z) const |
| Multi::UMulti * | find_supporting_multi (MultiList &mvec, short z) const |
| bool | los_blocked (const Core::LosObj &att, const Core::LosObj &target, unsigned short x, unsigned short y, short z) const |
| void | readdynamics (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) const |
Static Protected Member Functions | |
| static bool | dropheight (MapShapeList &shapes, short dropz, short chrz, short *newz) |
| static void | lowest_standheight (Core::MOVEMODE movemode, MapShapeList &shapes, short oldz, bool *result, short *newz, short *gradual_boost=NULL) |
| static void | standheight (Core::MOVEMODE movemode, MapShapeList &shapes, short oldz, bool *result, short *newz, short *gradual_boost=NULL) |
Private Member Functions | |
| Realm (const Realm &) | |
| Realm & | operator= (const Realm &) |
Private Attributes | |
| const RealmDescriptor | _descriptor |
| std::unique_ptr< MapServer > | _mapserver |
| std::unique_ptr< MapTileServer > | _maptileserver |
| unsigned int | _mobile_count |
| unsigned int | _multi_count |
| unsigned int | _offline_count |
| std::unique_ptr< StaticServer > | _staticserver |
| unsigned int | _toplevel_item_count |
| Pol::Plib::Realm::Realm | ( | const std::string & | realm_name, |
| const std::string & | realm_path = "" |
||
| ) | [explicit] |
Definition at line 29 of file realm.cpp.
References grid_height(), grid_width(), and zone.
Here is the call graph for this function:| Pol::Plib::Realm::Realm | ( | const std::string & | realm_name, |
| Realm * | realm | ||
| ) | [explicit] |
Definition at line 51 of file realm.cpp.
References grid_height(), grid_width(), and zone.
Here is the call graph for this function:Definition at line 71 of file realm.cpp.
References grid_width(), and zone.
Here is the call graph for this function:| Pol::Plib::Realm::Realm | ( | const Realm & | ) | [private] |
| void Pol::Plib::Realm::add_mobile | ( | const Mobile::Character & | chr, |
| WorldChangeReason | reason | ||
| ) |
Definition at line 143 of file realm.cpp.
References _mobile_count, _offline_count, Pol::Mobile::Character::logged_in, Pol::Plib::Moved, Pol::Plib::PlayerEnter, and Pol::Plib::PlayerLoad.
Referenced by Pol::Core::MoveCharacterWorldPosition(), and Pol::Core::SetCharacterWorldPosition().
Here is the caller graph for this function:| void Pol::Plib::Realm::add_multi | ( | const Multi::UMulti & | multi | ) | [inline] |
Definition at line 212 of file realm.h.
References _multi_count.
Referenced by Pol::Core::add_multi_to_world(), and Pol::Core::move_multi_in_world().
Here is the caller graph for this function:| void Pol::Plib::Realm::add_toplevel_item | ( | const Items::Item & | item | ) | [inline] |
Definition at line 205 of file realm.h.
References _toplevel_item_count.
Referenced by Pol::Core::add_item_to_world(), and Pol::Core::MoveItemWorldPosition().
Here is the caller graph for this function:| bool Pol::Plib::Realm::dropheight | ( | unsigned short | dropx, |
| unsigned short | dropy, | ||
| short | dropz, | ||
| short | chrz, | ||
| short * | newz, | ||
| Multi::UMulti ** | pmulti | ||
| ) |
Definition at line 516 of file realmfunc.cpp.
References Pol::Plib::FLAG::DROP_FLAGS, find_supporting_multi(), getmapshapes(), height(), readdynamics(), readmultis(), and width().
Referenced by Pol::Core::drop_item_on_ground(), and Pol::Plib::test_drop().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Pol::Plib::Realm::dropheight | ( | MapShapeList & | shapes, |
| short | dropz, | ||
| short | chrz, | ||
| short * | newz | ||
| ) | [static, protected] |
Definition at line 556 of file realmfunc.cpp.
References Pol::Plib::FLAG::ALLOWDROPON, Pol::Plib::FLAG::BLOCKING, INFO_PRINT, PLAYER_CHARACTER_HEIGHT, Pol::Core::static_debug_on, Pol::Core::tileheight(), and Pol::Core::ZCOORD_MIN.
Here is the call graph for this function:| bool Pol::Plib::Realm::dynamic_item_blocks_los | ( | const Core::LosObj & | att, |
| const Core::LosObj & | target, | ||
| unsigned short | x, | ||
| unsigned short | y, | ||
| short | z | ||
| ) | const [protected] |
Definition at line 59 of file realmlos.cpp.
References Pol::Plib::FLAG::BLOCKSIGHT, INFO_PRINT, Pol::Core::Zone::items, Pol::Core::LosObj::serial, Pol::Core::tile_flags(), zone, and Pol::Core::zone_convert_clip().
Referenced by los_blocked().
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned int Pol::Plib::Realm::encode_global_hull | ( | unsigned short | ax, |
| unsigned short | ay | ||
| ) | [inline, static] |
Definition at line 231 of file realm.h.
Referenced by Pol::Multi::UBoat::navigable(), Pol::Multi::UBoat::regself(), and Pol::Multi::UBoat::unregself().
Here is the caller graph for this function:| Multi::UMulti * Pol::Plib::Realm::find_supporting_multi | ( | unsigned short | x, |
| unsigned short | y, | ||
| short | z | ||
| ) | const |
Definition at line 720 of file realmfunc.cpp.
References Pol::Plib::FLAG::MOVE_FLAGS, readmultis(), and valid().
Referenced by Pol::Core::decay_worldzone(), dropheight(), Pol::Core::equip_item(), Pol::Module::handle_coord_cursor(), Pol::Multi::UHouse::list_contents(), lowest_walkheight(), Pol::Module::UOExecutorModule::mf_SendHousingTool(), Pol::Core::register_with_supporting_multi(), Pol::Core::remove_item_from_world(), Pol::Core::send_objects_newly_inrange_on_boat(), and walkheight().
Here is the call graph for this function:
Here is the caller graph for this function:| Multi::UMulti * Pol::Plib::Realm::find_supporting_multi | ( | MultiList & | mvec, |
| short | z | ||
| ) | const [protected] |
Definition at line 739 of file realmfunc.cpp.
References Pol::Core::UObject::z.
| bool Pol::Plib::Realm::findstatic | ( | unsigned short | x, |
| unsigned short | y, | ||
| unsigned short | objtype | ||
| ) | const |
Definition at line 756 of file realmfunc.cpp.
References _staticserver, baserealm, and is_shadowrealm.
Referenced by Pol::Core::ResourceDef::findmarker().
Here is the caller graph for this function:| void Pol::Plib::Realm::getmapshapes | ( | MapShapeList & | shapes, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| unsigned int | anyflags | ||
| ) | const |
Definition at line 792 of file realmfunc.cpp.
References _mapserver, baserealm, and is_shadowrealm.
Referenced by dropheight(), lowest_standheight(), lowest_walkheight(), Pol::Module::UOExecutorModule::mf_GetStandingLayers(), navigable(), static_item_blocks_los(), and walkheight().
Here is the caller graph for this function:| MAPTILE_CELL Pol::Plib::Realm::getmaptile | ( | unsigned short | x, |
| unsigned short | y | ||
| ) | const |
Definition at line 784 of file realmfunc.cpp.
References _maptileserver, baserealm, and is_shadowrealm.
Referenced by Pol::Core::ResourceDef::findmarker(), Pol::Core::map_test(), and Pol::Module::UOExecutorModule::mf_GetMapInfo().
Here is the caller graph for this function:| unsigned Pol::Plib::Realm::getNumMapPatches | ( | ) | const [inline] |
Definition at line 227 of file realm.h.
References _descriptor, and Pol::Plib::RealmDescriptor::num_map_patches.
| unsigned Pol::Plib::Realm::getNumStaticPatches | ( | ) | const [inline] |
Definition at line 223 of file realm.h.
References _descriptor, and Pol::Plib::RealmDescriptor::num_static_patches.
| void Pol::Plib::Realm::getstatics | ( | StaticEntryList & | statics, |
| unsigned short | x, | ||
| unsigned short | y | ||
| ) | const |
Definition at line 764 of file realmfunc.cpp.
References _staticserver, baserealm, and is_shadowrealm.
Referenced by Pol::Module::UOExecutorModule::mf_ListStaticsAtLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsInBox(), and Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation().
Here is the caller graph for this function:| unsigned Pol::Plib::Realm::getUOMapID | ( | ) | const [inline] |
Definition at line 219 of file realm.h.
References _descriptor, and Pol::Plib::RealmDescriptor::uomapid.
Referenced by Pol::Core::send_realm_change(), and Pol::Module::SetupRealmDetails().
Here is the caller graph for this function:| unsigned short Pol::Plib::Realm::grid_height | ( | ) | const |
Definition at line 111 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().
Here is the caller graph for this function:| unsigned short Pol::Plib::Realm::grid_width | ( | ) | const |
Definition at line 107 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().
Here is the caller graph for this function:| bool Pol::Plib::Realm::groundheight | ( | unsigned short | x, |
| unsigned short | y, | ||
| short * | z | ||
| ) | const |
Definition at line 772 of file realmfunc.cpp.
References _maptileserver, 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().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Pol::Plib::Realm::has_los | ( | const Core::LosObj & | att, |
| const Core::LosObj & | tgt | ||
| ) | const |
Definition at line 160 of file realmlos.cpp.
References ABS, Pol::Core::LosObj::look_height, los_blocked(), Pol::Plib::los_range, Pol::Core::LosObj::obj_height, Pol::Core::LosObj::x, Pol::Runecl::x, Pol::Core::LosObj::y, Pol::Core::LosObj::z, and ZSGN.
Referenced by Pol::Core::doubleclick(), Pol::Core::drop_item_on_ground(), Pol::Core::drop_item_on_mobile(), Pol::Core::drop_item_on_object(), Pol::Core::get_item(), has_los(), Pol::Items::UWeapon::in_range(), Pol::Module::UOExecutorModule::mf_CheckLineOfSight(), Pol::Module::UOExecutorModule::mf_CheckLosAt(), Pol::Module::UOExecutorModule::mf_CheckLosBetween(), Pol::Module::UOExecutorModule::mf_ListHostiles(), Pol::Module::UOExecutorModule::mf_ListMobilesInLineOfSight(), Pol::Core::LosCheckedTargetCursor::on_target_cursor(), Pol::Core::place_item(), and Pol::Plib::test_los().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Pol::Plib::Realm::has_los | ( | const Core::UObject & | iatt, |
| const Core::UObject & | itgt | ||
| ) | const |
Definition at line 17 of file realmlos2.cpp.
References Pol::Core::UObject::CLASS_CHARACTER, has_los(), Pol::Mobile::Character::ignores_line_of_sight(), Pol::Core::UObject::isa(), and Pol::Core::UObject::realm.
Here is the call graph for this function:| bool Pol::Plib::Realm::has_los | ( | const Mobile::Character & | iatt, |
| const Core::UObject & | itgt | ||
| ) | const |
Definition at line 33 of file realmlos2.cpp.
References has_los(), Pol::Mobile::Character::ignores_line_of_sight(), Pol::Core::UObject::realm, Pol::Mobile::Character::search_remote_containers(), and Pol::Core::UObject::serial.
Here is the call graph for this function:| unsigned short Pol::Plib::Realm::height | ( | ) | const [inline] |
Definition at line 240 of file realm.h.
References _descriptor, and Pol::Plib::RealmDescriptor::height.
Referenced by Pol::Core::WeatherDef::assign_zones_to_region(), Pol::Core::WeatherDef::copy_default_regions(), dropheight(), Pol::Core::UOPathState::GetSuccessors(), Pol::Module::UOExecutorModule::internal_InBoxAreaChecks(), lowest_walkheight(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation(), Pol::Module::UBoatExecutorModule::mf_MoveBoatXY(), Pol::Core::move_character_to(), Pol::Multi::UBoat::navigable(), navigable(), Pol::Core::RegionGroupBase::paint_zones(), Pol::Core::UObject::readProperties(), Pol::Core::send_new_subserver(), Pol::Core::send_startup(), Pol::Module::SetupRealmDetails(), valid(), walkheight(), and Pol::Core::zone_convert_clip().
Here is the caller graph for this function:| bool Pol::Plib::Realm::los_blocked | ( | const Core::LosObj & | att, |
| const Core::LosObj & | target, | ||
| unsigned short | x, | ||
| unsigned short | y, | ||
| short | z | ||
| ) | const [protected] |
Definition at line 131 of file realmlos.cpp.
References dynamic_item_blocks_los(), Pol::Core::LosObj::obj_height, static_item_blocks_los(), Pol::Core::LosObj::x, Pol::Core::LosObj::y, and Pol::Core::LosObj::z.
Referenced by has_los().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Pol::Plib::Realm::lowest_standheight | ( | unsigned short | x, |
| unsigned short | y, | ||
| short * | z | ||
| ) | const |
Definition at line 60 of file realmfunc.cpp.
References Pol::Plib::FLAG::BLOCKING, getmapshapes(), Pol::Plib::FLAG::GRADUAL, Pol::Plib::FLAG::MOVELAND, Pol::Core::MOVEMODE_LAND, and Pol::Plib::FLAG::MOVESEA.
Referenced by lowest_walkheight(), and Pol::Module::UOExecutorModule::mf_GetWorldHeight().
Here is the call graph for this function:
Here is the caller graph for this function:| void Pol::Plib::Realm::lowest_standheight | ( | Core::MOVEMODE | movemode, |
| MapShapeList & | shapes, | ||
| short | oldz, | ||
| bool * | result, | ||
| short * | newz, | ||
| short * | gradual_boost = NULL |
||
| ) | [static, protected] |
Definition at line 191 of file realmfunc.cpp.
References Pol::Plib::FLAG::BLOCKING, 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, PLAYER_CHARACTER_HEIGHT, Pol::Core::static_debug_on, valid(), and Pol::Plib::MapShape::z.
Here is the call graph for this function:| bool Pol::Plib::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 = NULL |
||
| ) |
Definition at line 459 of file realmfunc.cpp.
References find_supporting_multi(), Pol::Core::find_walkon_item(), getmapshapes(), height(), lowest_standheight(), Pol::Plib::FLAG::MOVE_FLAGS, Pol::Core::MOVEMODE_FLY, Pol::Plib::FLAG::OVERFLIGHT, readdynamics(), readmultis(), and width().
Referenced by Pol::Module::UOExecutorModule::mf_GetStandingHeight().
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned int Pol::Plib::Realm::mobile_count | ( | ) | const [inline] |
Definition at line 192 of file realm.h.
References _mobile_count.
Referenced by Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), and Pol::Module::SetupRealmDetails().
Here is the caller graph for this function:| unsigned int Pol::Plib::Realm::multi_count | ( | ) | const [inline] |
Definition at line 201 of file realm.h.
References _multi_count.
Referenced by Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), and Pol::Module::SetupRealmDetails().
Here is the caller graph for this function:| const std::string Pol::Plib::Realm::name | ( | ) | const |
Definition at line 127 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().
Here is the caller graph for this function:| bool Pol::Plib::Realm::navigable | ( | unsigned short | x, |
| unsigned short | y, | ||
| short | z, | ||
| short | height = 0 |
||
| ) | const |
Definition at line 686 of file realmfunc.cpp.
References Pol::Plib::FLAG::ALL, getmapshapes(), height(), HULL_HEIGHT_BUFFER, Pol::Plib::FLAG::MOVESEA, and valid().
Referenced by Pol::Multi::UBoat::navigable().
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned int Pol::Plib::Realm::offline_mobile_count | ( | ) | const [inline] |
Definition at line 195 of file realm.h.
References _offline_count.
Referenced by Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), and Pol::Module::SetupRealmDetails().
Here is the caller graph for this function:| void Pol::Plib::Realm::readdynamics | ( | MapShapeList & | vec, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| Core::ItemsVector & | walkon_items, | ||
| bool | doors_block | ||
| ) | [protected] |
Definition at line 299 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.
Referenced by dropheight(), lowest_walkheight(), and walkheight().
Here is the call graph for this function:
Here is the caller graph for this function:| void Pol::Plib::Realm::readmultis | ( | MapShapeList & | vec, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| unsigned int | flags | ||
| ) | const |
Definition at line 633 of file realmfunc.cpp.
References Pol::Multi::UMulti::as_house(), Pol::Multi::UHouse::IsCustom(), Pol::Multi::UMulti::multidef(), Pol::Multi::UMulti::readshapes(), Pol::Multi::MultiDef::readshapes(), Pol::Core::UObject::x, Pol::Core::UObject::y, and Pol::Core::UObject::z.
Referenced by dropheight(), find_supporting_multi(), lowest_walkheight(), Pol::Module::UOExecutorModule::mf_GetStandingLayers(), Pol::Module::UOExecutorModule::mf_ListStaticsAtLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsInBox(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation(), static_item_blocks_los(), and walkheight().
Here is the call graph for this function:
Here is the caller graph for this function:| void Pol::Plib::Realm::readmultis | ( | MapShapeList & | vec, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| unsigned int | flags, | ||
| MultiList & | mvec | ||
| ) | const |
Definition at line 649 of file realmfunc.cpp.
References Pol::Multi::UMulti::as_house(), Pol::Multi::UHouse::IsCustom(), Pol::Multi::UMulti::multidef(), Pol::Multi::UMulti::readshapes(), Pol::Multi::MultiDef::readshapes(), Pol::Core::UObject::x, Pol::Core::UObject::y, and Pol::Core::UObject::z.
Here is the call graph for this function:| void Pol::Plib::Realm::readmultis | ( | Core::StaticList & | vec, |
| unsigned short | x, | ||
| unsigned short | y | ||
| ) | const |
Definition at line 670 of file realmfunc.cpp.
References Pol::Multi::UMulti::as_house(), Pol::Multi::UHouse::IsCustom(), Pol::Multi::UMulti::multidef(), Pol::Multi::UMulti::readobjects(), Pol::Multi::MultiDef::readobjects(), Pol::Core::UObject::x, Pol::Core::UObject::y, and Pol::Core::UObject::z.
Here is the call graph for this function:| void Pol::Plib::Realm::remove_mobile | ( | const Mobile::Character & | chr, |
| WorldChangeReason | reason | ||
| ) |
Definition at line 179 of file realm.cpp.
References _mobile_count, _offline_count, Pol::Mobile::Character::logged_in, Pol::Plib::Moved, Pol::Plib::PlayerDeleted, and Pol::Plib::PlayerExit.
Referenced by Pol::Core::ClrCharacterWorldPosition(), and Pol::Core::MoveCharacterWorldPosition().
Here is the caller graph for this function:| void Pol::Plib::Realm::remove_multi | ( | const Multi::UMulti & | multi | ) | [inline] |
Definition at line 215 of file realm.h.
References _multi_count.
Referenced by Pol::Core::move_multi_in_world(), and Pol::Core::remove_multi_from_world().
Here is the caller graph for this function:| void Pol::Plib::Realm::remove_toplevel_item | ( | const Items::Item & | item | ) | [inline] |
Definition at line 208 of file realm.h.
References _toplevel_item_count.
Referenced by Pol::Core::MoveItemWorldPosition(), and Pol::Core::remove_item_from_world().
Here is the caller graph for this function:| unsigned Pol::Plib::Realm::season | ( | ) | const |
Definition at line 116 of file realm.cpp.
References _descriptor, and Pol::Plib::RealmDescriptor::season.
Referenced by Pol::Core::send_season_info(), and Pol::Module::SetupRealmDetails().
Here is the caller graph for this function:| size_t Pol::Plib::Realm::sizeEstimate | ( | ) | const |
Definition at line 79 of file realm.cpp.
References _descriptor, _mapserver, _maptileserver, _staticserver, global_hulls, grid_height(), grid_width(), shadowname, Pol::Plib::RealmDescriptor::sizeEstimate(), Pol::Runecl::x, and zone.
Here is the call graph for this function:| void Pol::Plib::Realm::standheight | ( | Core::MOVEMODE | movemode, |
| MapShapeList & | shapes, | ||
| short | oldz, | ||
| bool * | result, | ||
| short * | newz, | ||
| short * | gradual_boost = NULL |
||
| ) | [static, protected] |
Definition at line 71 of file realmfunc.cpp.
References Pol::Plib::FLAG::BLOCKING, 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, PLAYER_CHARACTER_HEIGHT, and Pol::Core::static_debug_on.
Referenced by walkheight().
Here is the caller graph for this function:| bool Pol::Plib::Realm::static_item_blocks_los | ( | unsigned short | x, |
| unsigned short | y, | ||
| short | z | ||
| ) | const [protected] |
Definition at line 92 of file realmlos.cpp.
References Pol::Plib::FLAG::BLOCKSIGHT, getmapshapes(), Pol::Plib::MapShape::height, INFO_PRINT, readmultis(), Pol::Core::tile_flags(), and Pol::Plib::MapShape::z.
Referenced by los_blocked().
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned int Pol::Plib::Realm::toplevel_item_count | ( | ) | const [inline] |
Definition at line 198 of file realm.h.
References _toplevel_item_count.
Referenced by Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), and Pol::Module::SetupRealmDetails().
Here is the caller graph for this function:| bool Pol::Plib::Realm::valid | ( | unsigned short | x, |
| unsigned short | y, | ||
| short | z | ||
| ) | const |
Definition at line 121 of file realm.cpp.
References height(), width(), Pol::Core::ZCOORD_MAX, and Pol::Core::ZCOORD_MIN.
Referenced by Pol::Core::BPacket::call_method_id(), find_supporting_multi(), Pol::Module::UOExecutorModule::internal_MoveItem(), lowest_standheight(), 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_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(), navigable(), 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().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Pol::Plib::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 = NULL |
||
| ) |
Definition at line 328 of file realmfunc.cpp.
References find_supporting_multi(), Pol::Core::find_walkon_item(), getmapshapes(), height(), Pol::Plib::FLAG::MOVE_FLAGS, Pol::Core::MOVEMODE_FLY, Pol::Plib::FLAG::OVERFLIGHT, readdynamics(), readmultis(), standheight(), and width().
Referenced by Pol::Mobile::NPC::could_move(), Pol::Core::UOPathState::GetSuccessors(), Pol::Module::UOExecutorModule::internal_MoveCharacter(), Pol::Module::UOExecutorModule::internal_MoveItem(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), Pol::Module::UOExecutorModule::mf_Resurrect(), Pol::Core::move_character_to(), Pol::Multi::move_to_ground(), Pol::Core::start_client_char(), Pol::Multi::statics_cause_problems(), Pol::Plib::test_walk(), and Pol::Plib::test_walk2().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Pol::Plib::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 = NULL |
||
| ) |
Definition at line 386 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, find_supporting_multi(), Pol::Core::find_walkon_item(), Pol::Network::Client::gd, getmapshapes(), height(), 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, readdynamics(), readmultis(), Pol::Core::UObject::serial, standheight(), Pol::Core::system_find_multi(), and width().
Here is the call graph for this function:| unsigned short Pol::Plib::Realm::width | ( | ) | const [inline] |
Definition at line 236 of file realm.h.
References _descriptor, and Pol::Plib::RealmDescriptor::width.
Referenced by Pol::Core::WeatherDef::assign_zones_to_region(), Pol::Core::WeatherDef::copy_default_regions(), dropheight(), Pol::Core::UOPathState::GetSuccessors(), Pol::Module::UOExecutorModule::internal_InBoxAreaChecks(), lowest_walkheight(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation(), 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(), walkheight(), and Pol::Core::zone_convert_clip().
Here is the caller graph for this function:const RealmDescriptor Pol::Plib::Realm::_descriptor [private] |
Definition at line 174 of file realm.h.
Referenced by getNumMapPatches(), getNumStaticPatches(), getUOMapID(), grid_height(), grid_width(), height(), name(), season(), sizeEstimate(), and width().
std::unique_ptr<MapServer> Pol::Plib::Realm::_mapserver [private] |
Definition at line 179 of file realm.h.
Referenced by getmapshapes(), and sizeEstimate().
std::unique_ptr<MapTileServer> Pol::Plib::Realm::_maptileserver [private] |
Definition at line 181 of file realm.h.
Referenced by getmaptile(), groundheight(), and sizeEstimate().
unsigned int Pol::Plib::Realm::_mobile_count [private] |
Definition at line 175 of file realm.h.
Referenced by add_mobile(), mobile_count(), and remove_mobile().
unsigned int Pol::Plib::Realm::_multi_count [private] |
Definition at line 178 of file realm.h.
Referenced by add_multi(), multi_count(), and remove_multi().
unsigned int Pol::Plib::Realm::_offline_count [private] |
Definition at line 176 of file realm.h.
Referenced by add_mobile(), offline_mobile_count(), and remove_mobile().
std::unique_ptr<StaticServer> Pol::Plib::Realm::_staticserver [private] |
Definition at line 180 of file realm.h.
Referenced by findstatic(), getstatics(), and sizeEstimate().
unsigned int Pol::Plib::Realm::_toplevel_item_count [private] |
Definition at line 177 of file realm.h.
Referenced by add_toplevel_item(), remove_toplevel_item(), and toplevel_item_count().
Definition at line 64 of file realm.h.
Referenced by findstatic(), getmapshapes(), getmaptile(), Pol::Core::RegionGroupBase::getregionid(), getstatics(), and Pol::Core::setrealmif().
| std::set<unsigned int> Pol::Plib::Realm::global_hulls |
Definition at line 135 of file realm.h.
Referenced by Pol::Multi::UBoat::navigable(), Pol::Multi::UBoat::regself(), sizeEstimate(), and Pol::Multi::UBoat::unregself().
Definition at line 62 of file realm.h.
Referenced by findstatic(), getmapshapes(), getmaptile(), Pol::Core::RegionGroupBase::getregionid(), getstatics(), Pol::Module::PolSystemExecutorModule::mf_AddRealm(), Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), and name().
| unsigned int Pol::Plib::Realm::shadowid |
Definition at line 63 of file realm.h.
Referenced by Pol::Core::add_realm().
| const std::string Pol::Plib::Realm::shadowname |
Definition at line 65 of file realm.h.
Referenced by name(), and sizeEstimate().
Definition at line 134 of file realm.h.
Referenced by Pol::Core::WorldIterator< Filter >::_forEach(), Pol::Core::check_single_zone_item_integrity(), Pol::Core::decay_worldzone(), dynamic_item_blocks_los(), 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().