![]() |
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 |
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) |
template<class T > | |
static void | VisitWorldObjects (WorldObject const *obj, T &visitor, float radius) |
template<class T > | |
static void | VisitAllObjects (WorldObject const *obj, T &visitor, float radius) |
template<class T > | |
static void | VisitGridObjects (float x, float y, Map *map, T &visitor, float radius) |
template<class T > | |
static void | VisitWorldObjects (float x, float y, Map *map, T &visitor, float radius) |
template<class T > | |
static void | VisitAllObjects (float x, float y, Map *map, T &visitor, float radius) |
Public Attributes | ||
union { | ||
struct { | ||
unsigned grid_x: 8 | ||
unsigned grid_y: 8 | ||
unsigned cell_x: 8 | ||
unsigned cell_y: 8 | ||
} 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 Map::LoadGridsInRange(), Visit(), Map::VisitNearbyCellsOf(), and Map::VisitNearbyCellsOfPlayer().
|
inline |
References data.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), debug_commandscript::HandleDebugMapDataCommand(), misc_commandscript::HandleGPSCommand(), GridObjectLoader::LoadAllCellsInGrid(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), and Map::Visit().
|
inline |
References data.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), debug_commandscript::HandleDebugMapDataCommand(), misc_commandscript::HandleGPSCommand(), GridObjectLoader::LoadAllCellsInGrid(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), and Map::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.
|
inline |
References data.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToMap(), Map::EnsureGridLoaded(), debug_commandscript::HandleDebugMapDataCommand(), misc_commandscript::HandleGPSCommand(), WorldSession::HandleMoveWorldportAck(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), and Map::Visit().
|
inline |
References data.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToMap(), Map::EnsureGridLoaded(), debug_commandscript::HandleDebugMapDataCommand(), misc_commandscript::HandleGPSCommand(), WorldSession::HandleMoveWorldportAck(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), and Map::Visit().
|
inline |
References operator==().
|
inline |
|
inline |
References ASSERT, CalculateCellArea(), CellArea::high_bound, CoordPair< LIMIT >::IsCoordValid(), CellArea::low_bound, 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(), Visit(), VisitAllObjects(), VisitAllObjects(), VisitGridObjects(), VisitGridObjects(), VisitWorldObjects(), and VisitWorldObjects().
|
inlinestatic |
References Acore::ComputeCellCoord(), and Visit().
|
inlinestatic |
References Acore::ComputeCellCoord(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), 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(), WorldObject::GetCreaturesWithEntryInRange(), 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(), Map::SummonCreature(), GameObject::Update(), TotemAI::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::UpdateAI(), Unit::UpdateObjectVisibility(), and Player::UpdateVisibilityForPlayer().
|
inlineprivate |
References Map::Visit(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Visit().
|
inlinestatic |
References Acore::ComputeCellCoord(), and Visit().
|
inlinestatic |
References Acore::ComputeCellCoord(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), 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(), GridObjectLoader::LoadCreatures(), 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(), and Visit().
|
inlinestatic |
References Acore::ComputeCellCoord(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), 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(), WorldSession::HandleTextEmoteOpcode(), 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(), Player::SendMessageToSetInRange(), Unit::Talk(), 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().
unsigned Cell::cell_y |
Referenced by DiffCell().
union { ... } Cell::data |
Referenced by Cell(), Cell(), Cell(), Cell(), CellX(), CellY(), Compute(), DiffCell(), DiffGrid(), GetCellCoord(), GridX(), GridY(), operator=(), operator==(), Map::SwitchGridContainers(), and Map::SwitchGridContainers().
unsigned Cell::grid_x |
Referenced by DiffGrid(), Map::SwitchGridContainers(), and Map::SwitchGridContainers().
unsigned Cell::grid_y |
Referenced by DiffGrid(), Map::SwitchGridContainers(), and Map::SwitchGridContainers().
struct { ... } Cell::Part |
Referenced by DiffCell(), DiffGrid(), Map::SwitchGridContainers(), and Map::SwitchGridContainers().