AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Cell.h"
Public Member Functions | |
Cell () | |
Cell (Cell const &cell) | |
Cell (CellCoord const &p) | |
Cell (float x, float y) | |
void | Compute (uint32 &x, uint32 &y) const |
bool | DiffCell (const Cell &cell) const |
bool | DiffGrid (const Cell &cell) const |
uint32 | CellX () const |
uint32 | CellY () const |
uint32 | GridX () const |
uint32 | GridY () const |
bool | NoCreate () const |
void | SetNoCreate () |
CellCoord | GetCellCoord () const |
Cell & | operator= (Cell const &cell) |
bool | operator== (Cell const &cell) const |
bool | operator!= (Cell const &cell) const |
template<class T , class CONTAINER > | |
void | Visit (CellCoord const &, TypeContainerVisitor< T, CONTAINER > &visitor, Map &, WorldObject const &obj, float radius) const |
template<class T , class CONTAINER > | |
void | Visit (CellCoord const &, TypeContainerVisitor< T, CONTAINER > &visitor, Map &, float x, float y, float radius) const |
Static Public Member Functions | |
static CellArea | CalculateCellArea (float x, float y, float radius) |
template<class T > | |
static void | VisitGridObjects (WorldObject const *obj, T &visitor, float radius, bool dont_load=true) |
template<class T > | |
static void | VisitWorldObjects (WorldObject const *obj, T &visitor, float radius, bool dont_load=true) |
template<class T > | |
static void | VisitAllObjects (WorldObject const *obj, T &visitor, float radius, bool dont_load=true) |
template<class T > | |
static void | VisitGridObjects (float x, float y, Map *map, T &visitor, float radius, bool dont_load=true) |
template<class T > | |
static void | VisitWorldObjects (float x, float y, Map *map, T &visitor, float radius, bool dont_load=true) |
template<class T > | |
static void | VisitAllObjects (float x, float y, Map *map, T &visitor, float radius, bool dont_load=true) |
Public Attributes | |
union { | |
struct { | |
unsigned grid_x: 6 | |
unsigned grid_y: 6 | |
unsigned cell_x: 6 | |
unsigned cell_y: 6 | |
unsigned nocreate: 1 | |
unsigned reserved: 7 | |
} Part | |
uint32 All | |
} | data |
Private Member Functions | |
template<class T , class CONTAINER > | |
void | VisitCircle (TypeContainerVisitor< T, CONTAINER > &, Map &, CellCoord const &, CellCoord const &) const |
|
inlineexplicit |
References data, MAX_NUMBER_OF_CELLS, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inlineexplicit |
References Acore::ComputeCellCoord(), data, MAX_NUMBER_OF_CELLS, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inlinestatic |
References Acore::ComputeCellCoord(), and CoordPair< LIMIT >::normalize().
Referenced by Visit(), Map::VisitNearbyCellsOf(), and Map::VisitNearbyCellsOfPlayer().
|
inline |
References data.
Referenced by Map::AddToGrid(), GridMap::getMinHeight(), misc_commandscript::HandleGPSCommand(), Map::SwitchGridContainers(), Map::Visit(), and ObjectWorldLoader::Visit().
|
inline |
References data.
Referenced by Map::AddToGrid(), GridMap::getMinHeight(), misc_commandscript::HandleGPSCommand(), Map::SwitchGridContainers(), Map::Visit(), and ObjectWorldLoader::Visit().
References data, and MAX_NUMBER_OF_CELLS.
|
inline |
References cell_x, cell_y, data, and Part.
Referenced by Map::CreatureRelocation(), Map::DynamicObjectRelocation(), Map::GameObjectRelocation(), and Map::PlayerRelocation().
|
inline |
References data, grid_x, grid_y, and Part.
Referenced by Map::CreatureRelocation(), Map::DynamicObjectRelocation(), Map::GameObjectRelocation(), Map::MoveAllCreaturesInMoveList(), Map::MoveAllDynamicObjectsInMoveList(), Map::MoveAllGameObjectsInMoveList(), and Map::PlayerRelocation().
|
inline |
References data, and MAX_NUMBER_OF_CELLS.
Referenced by ObjectWorldLoader::Visit(), and ObjectGridLoader::Visit().
|
inline |
|
inline |
|
inline |
|
inline |
References operator==().
|
inline |
|
inline |
References data.
Referenced by WorldObject::GetCreaturesWithEntryInRange(), misc_commandscript::HandleRespawnAllCommand(), WorldSession::HandleTextEmoteOpcode(), Spell::SearchTargets(), AchievementMgr::SendAchievementEarned(), VisitAllObjects(), VisitGridObjects(), and VisitWorldObjects().
|
inline |
References CalculateCellArea(), data, CellArea::high_bound, CoordPair< LIMIT >::IsCoordValid(), CellArea::low_bound, nocreate, Part, SIZE_OF_GRIDS, Map::Visit(), VisitCircle(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inline |
References WorldObject::GetCombatReach(), Position::GetPositionX(), Position::GetPositionY(), and Visit().
Referenced by Spell::CheckSpellFocus(), WorldObject::GetCreaturesWithEntryInRange(), WorldSession::HandleTextEmoteOpcode(), Visit(), VisitAllObjects(), VisitGridObjects(), and VisitWorldObjects().
|
inlinestatic |
References Acore::ComputeCellCoord(), SetNoCreate(), and Visit().
|
inlinestatic |
References Acore::ComputeCellCoord(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), SetNoCreate(), and Visit().
Referenced by boss_ouro::CastGroundRupture(), SmartScript::DoFindClosestFriendlyInRange(), ScriptedAI::DoFindFriendlyCC(), ScriptedAI::DoFindFriendlyMissingBuff(), ScriptedAI::DoSelectLowestHpFriendly(), Spell::EffectForceDeselect(), Spell::EffectSanctuary(), Unit::ExecuteDelayedUnitAINotifyEvent(), Unit::ExecuteDelayedUnitRelocationEvent(), UnitAura::FillTargetMap(), DynObjAura::FillTargetMap(), WorldObject::FindNearestCreature(), SmartScript::GetWorldObjectsInDist(), debug_commandscript::HandleDebugEnterVehicleCommand(), AuraEffect::HandleFeignDeath(), spell_zulfarrak_unlocking::HandleOpenLock(), AuraEffect::HandleRaidProcFromChargeWithValueAuraProc(), spell_vehicle_throw_passenger::HandleScript(), Unit::SelectNearbyNoTotemTarget(), Unit::SelectNearbyTarget(), Creature::SelectNearestTarget(), Creature::SelectNearestTargetInAttackDistance(), Unit::SetContestedPvP(), npc_simon_bunny::npc_simon_bunnyAI::StartGame(), GameObject::Update(), TotemAI::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), boss_naxxramas_misc::boss_naxxramas_miscAI::UpdateAI(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::UpdateAI(), Unit::UpdateObjectVisibility(), and Player::UpdateVisibilityForPlayer().
|
inlineprivate |
References data, nocreate, Part, Map::Visit(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Visit().
|
inlinestatic |
References Acore::ComputeCellCoord(), SetNoCreate(), and Visit().
|
inlinestatic |
References Acore::ComputeCellCoord(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), SetNoCreate(), and Visit().
Referenced by Creature::CallAssistance(), Creature::CallForHelp(), spell_gen_cannibalize::CheckIfCorpseNear(), spell_hun_pet_carrion_feeder::CheckIfCorpseNear(), npc_q24545_lich_king::npc_q24545_lich_kingAI::CleanAll(), SmartScript::DoFindFriendlyCC(), SmartScript::DoFindFriendlyMissingBuff(), Creature::DoFleeToGetAssistance(), SmartScript::DoSelectLowestHpFriendly(), SmartScript::DoSelectLowestHpPercentFriendly(), ValithriaDespawner::Execute(), npc_captain_arnath::npc_captain_arnathAI::FindFriendlyCreature(), WorldObject::FindNearestGameObject(), WorldObject::FindNearestGameObjectOfType(), WorldObject::GetCreatureListWithEntryInGrid(), WorldObject::GetDeadCreatureListInGrid(), WorldObject::GetGameObjectListWithEntryInGrid(), ChatHandler::GetNearbyGameObject(), mmaps_commandscript::HandleMmapTestArea(), misc_commandscript::HandleRespawnAllCommand(), npc_green_dragon_combat_trigger::npc_green_dragon_combat_triggerAI::JustEngagedWith(), LoadHelper(), GameObject::LookupFishingHoleAround(), at_icc_start_frostwing_gauntlet::OnTrigger(), boss_the_lich_king::boss_the_lich_kingAI::Reset(), Spell::SearchTargets(), npc_shadowpriest_sezziz::npc_shadowpriest_sezzizAI::UpdateAI(), npc_crok_scourgebane::npc_crok_scourgebaneAI::UpdateAI(), npc_q24545_lich_king::npc_q24545_lich_kingAI::UpdateAI(), and npc_crok_scourgebane::npc_crok_scourgebaneAI::WaypointStart().
|
inlinestatic |
References Acore::ComputeCellCoord(), SetNoCreate(), and Visit().
|
inlinestatic |
References Acore::ComputeCellCoord(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), SetNoCreate(), and Visit().
Referenced by WorldObject::BuildUpdate(), npc_hallows_end_soh::CastFires(), spell_gen_cannibalize::CheckIfCorpseNear(), spell_hun_pet_carrion_feeder::CheckIfCorpseNear(), npc_hallows_end_soh::CompleteQuest(), WorldObject::DestroyForNearbyPlayers(), Spell::EffectForceDeselect(), ScriptedAI::GetPlayerAtMinimumRange(), AuraEffect::HandleAuraDummy(), spell_q11010_q11102_q11023_choose_loc::HandleDummy(), npc_clintar_spirit::npc_clintar_spiritAI::IsSummonedBy(), spell_love_is_in_the_air_romantic_picnic::OnPeriodic(), WorldObject::PlayRadiusMusic(), WorldObject::PlayRadiusSound(), Spell::SearchTargets(), WorldObject::SelectNearestPlayer(), AchievementMgr::SendAchievementEarned(), CreatureTextMgr::SendChatPacket(), WorldObject::SendMessageToSet(), Player::SendMessageToSet(), WorldObject::SendMessageToSetInRange(), Player::SendMessageToSetInRange(), Unit::Talk(), BfCapturePoint::Update(), OPvPCapturePoint::Update(), OPvPCapturePointNA::Update(), GameObject::Update(), npc_brewfest_super_brew_trigger::UpdateAI(), npc_crok_scourgebane::npc_crok_scourgebaneAI::UpdateAI(), go_flames::go_flamesAI::UpdateAI(), go_heat::go_heatAI::UpdateAI(), go_midsummer_music::go_midsummer_musicAI::UpdateAI(), and WorldObject::UpdateObjectVisibility().
uint32 Cell::All |
Referenced by Cell(), operator=(), and operator==().
unsigned Cell::cell_x |
Referenced by DiffCell(), and ObjectGridLoader::LoadN().
unsigned Cell::cell_y |
Referenced by DiffCell(), and ObjectGridLoader::LoadN().
union { ... } Cell::data |
Referenced by Cell(), CellX(), CellY(), Compute(), DiffCell(), DiffGrid(), GetCellCoord(), GridX(), GridY(), ObjectGridLoader::LoadN(), NoCreate(), operator=(), operator==(), SetNoCreate(), Map::SwitchGridContainers(), Visit(), and VisitCircle().
unsigned Cell::grid_x |
Referenced by DiffGrid(), and Map::SwitchGridContainers().
unsigned Cell::grid_y |
Referenced by DiffGrid(), and Map::SwitchGridContainers().
unsigned Cell::nocreate |
Referenced by Visit(), and VisitCircle().
struct { ... } Cell::Part |
Referenced by DiffCell(), DiffGrid(), ObjectGridLoader::LoadN(), Map::SwitchGridContainers(), Visit(), and VisitCircle().
unsigned Cell::reserved |