|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Cell.h>
Public Member Functions | |
| Cell () | |
| Cell (Cell const &cell) | |
| Cell (CellCoord const &p) | |
| Cell (float x, float y) | |
| uint32 | CellX () const |
| uint32 | CellY () const |
| void | Compute (uint32 &x, uint32 &y) const |
| bool | DiffCell (const Cell &cell) const |
| bool | DiffGrid (const Cell &cell) const |
| CellCoord | GetCellCoord () const |
| uint32 | GridX () const |
| uint32 | GridY () const |
| bool | NoCreate () const |
| bool | operator!= (Cell const &cell) const |
| Cell & | operator= (Cell const &cell) |
| bool | operator== (Cell const &cell) const |
| void | SetNoCreate () |
| template<class T, class CONTAINER> | |
| void | Visit (CellCoord const &, TypeContainerVisitor< T, CONTAINER > &visitor, Map &, float, float, float) const |
| template<class T, class CONTAINER> | |
| void | Visit (CellCoord const &, TypeContainerVisitor< T, CONTAINER > &visitor, Map &, WorldObject const &, float) const |
Static Public Member Functions | |
| static CellArea | CalculateCellArea (float x, float y, float radius) |
Public Attributes | |
| union { | |
| uint32 All | |
| struct { | |
| unsigned cell_x: 6 | |
| unsigned cell_y: 6 | |
| unsigned grid_x: 6 | |
| unsigned grid_y: 6 | |
| unsigned nocreate: 1 | |
| unsigned reserved: 7 | |
| } Part | |
| } | data |
| float | v8 [16 *8][16 *8] |
| float | v9 [16 *8+1][16 *8+1] |
Private Member Functions | |
| template<class T, class CONTAINER> | |
| void | VisitCircle (TypeContainerVisitor< T, CONTAINER > &, Map &, CellCoord const &, CellCoord const &) const |
|
inline |
Definition at line 38 of file Cell.h.
References data.
Referenced by Cell(), DiffCell(), DiffGrid(), operator!=(), operator=(), operator==(), Visit(), and VisitCircle().
|
inline |
|
inlineexplicit |
Definition at line 15 of file CellImpl.h.
References data, MAX_NUMBER_OF_CELLS, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inlineexplicit |
Definition at line 25 of file CellImpl.h.
References Skyfire::ComputeCellCoord(), data, MAX_NUMBER_OF_CELLS, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
|
inlinestatic |
Definition at line 36 of file CellImpl.h.
References Skyfire::ComputeCellCoord(), and CoordPair< LIMIT >::normalize().
Referenced by Visit(), and Map::VisitNearbyCellsOf().
|
inline |
Definition at line 61 of file Cell.h.
References data.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::CheckGridIntegrity(), Map::CreatureCellRelocation(), Map::CreatureRelocation(), Map::CreatureRespawnRelocation(), Map::EnsureGridLoaded(), Map::GameObjectCellRelocation(), Map::GameObjectRelocation(), Map::GameObjectRespawnRelocation(), misc_commandscript::HandleGPSCommand(), Map::PlayerRelocation(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), and Map::Visit().
|
inline |
Definition at line 62 of file Cell.h.
References data.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::CheckGridIntegrity(), Map::CreatureCellRelocation(), Map::CreatureRelocation(), Map::CreatureRespawnRelocation(), Map::EnsureGridLoaded(), Map::GameObjectCellRelocation(), Map::GameObjectRelocation(), Map::GameObjectRespawnRelocation(), misc_commandscript::HandleGPSCommand(), Map::PlayerRelocation(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), and Map::Visit().
Definition at line 43 of file Cell.h.
References data, and MAX_NUMBER_OF_CELLS.
|
inline |
Definition at line 49 of file Cell.h.
References Cell(), cell_x, cell_y, data, and Part.
Referenced by Map::CreatureCellRelocation(), Map::CreatureRelocation(), Map::GameObjectCellRelocation(), Map::GameObjectRelocation(), and Map::PlayerRelocation().
|
inline |
Definition at line 55 of file Cell.h.
References Cell(), data, grid_x, grid_y, and Part.
Referenced by Map::CreatureCellRelocation(), Map::CreatureRelocation(), Map::CreatureRespawnRelocation(), Map::GameObjectCellRelocation(), Map::GameObjectRelocation(), Map::GameObjectRespawnRelocation(), and Map::PlayerRelocation().
|
inline |
Definition at line 68 of file Cell.h.
References data, and MAX_NUMBER_OF_CELLS.
|
inline |
Definition at line 63 of file Cell.h.
References data.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToMap(), Map::CheckGridIntegrity(), Map::CreatureCellRelocation(), Map::CreatureRelocation(), Map::CreatureRespawnRelocation(), Map::EnsureGridLoaded(), Map::EnsureGridLoadedForActiveObject(), Map::GameObjectCellRelocation(), Map::GameObjectRelocation(), Map::GameObjectRespawnRelocation(), misc_commandscript::HandleGPSCommand(), Map::PlayerRelocation(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), and Map::Visit().
|
inline |
Definition at line 64 of file Cell.h.
References data.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToMap(), Map::CheckGridIntegrity(), Map::CreatureCellRelocation(), Map::CreatureRelocation(), Map::CreatureRespawnRelocation(), Map::EnsureGridLoaded(), Map::EnsureGridLoadedForActiveObject(), Map::GameObjectCellRelocation(), Map::GameObjectRelocation(), Map::GameObjectRespawnRelocation(), misc_commandscript::HandleGPSCommand(), Map::PlayerRelocation(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), and Map::Visit().
|
inline |
|
inline |
Definition at line 82 of file Cell.h.
References Cell(), and operator==().
|
inline |
|
inline |
Definition at line 66 of file Cell.h.
References data.
Referenced by WorldObject::BuildUpdate(), Creature::CallAssistance(), Creature::CallForHelp(), boss_felmyst::boss_felmystAI::DespawnSummons(), SmartScript::DoFindFriendlyCC(), SmartScript::DoFindFriendlyMissingBuff(), Creature::DoFleeToGetAssistance(), hyjalAI::DoOverrun(), SmartScript::DoSelectLowestHpFriendly(), Unit::GetAttackableUnitListInRange(), WorldObject::GetCreatureListWithEntryInGrid(), WorldObject::GetGameObjectListWithEntryInGrid(), ScriptedAI::GetPlayerAtMinimumRange(), mmaps_commandscript::HandleMmapTestArea(), misc_commandscript::HandleRespawnCommand(), WorldSession::HandleTextEmoteOpcode(), hyjalAI::HideNearPos(), WorldObject::MonsterSay(), WorldObject::MonsterSay(), WorldObject::MonsterTextEmote(), WorldObject::MonsterYell(), WorldObject::MonsterYell(), Map::ProcessRelocationNotifies(), hyjalAI::RespawnNearPos(), Spell::SearchTargets(), Creature::SelectNearestTarget(), Creature::SelectNearestTargetInAttackDistance(), AchievementMgr< T >::SendAchievementEarned(), Map::UpdateObjectsVisibilityFor(), Map::UpdateObjectVisibility(), Map::VisitAll(), Map::VisitFirstFound(), Map::VisitGrid(), Map::VisitNearbyCellsOf(), Map::VisitWorld(), and hyjalAI::WaypointReached().
|
inline |
Definition at line 51 of file CellImpl.h.
References CalculateCellArea(), Cell(), 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 |
Definition at line 109 of file CellImpl.h.
References WorldObject::GetObjectSize(), Position::GetPositionX(), Position::GetPositionY(), and Visit().
Referenced by Map::_FindGameObject(), WorldObject::BuildUpdate(), Creature::CallAssistance(), Creature::CallForHelp(), boss_felmyst::boss_felmystAI::DespawnSummons(), SmartScript::DoFindFriendlyCC(), SmartScript::DoFindFriendlyMissingBuff(), Creature::DoFleeToGetAssistance(), hyjalAI::DoOverrun(), SmartScript::DoSelectLowestHpFriendly(), SmartScript::FindCreatureNear(), SmartScript::FindGameObjectNear(), Unit::GetAttackableUnitListInRange(), WorldObject::GetCreatureListWithEntryInGrid(), WorldObject::GetGameObjectListWithEntryInGrid(), ChatHandler::GetObjectGlobalyWithGuidOrNearWithDbGuid(), ScriptedAI::GetPlayerAtMinimumRange(), mmaps_commandscript::HandleMmapTestArea(), AuraEffect::HandlePeriodicDummyAuraTick(), misc_commandscript::HandleRespawnCommand(), WorldSession::HandleTextEmoteOpcode(), hyjalAI::HideNearPos(), GameObject::LookupFishingHoleAround(), WorldObject::MonsterSay(), WorldObject::MonsterSay(), WorldObject::MonsterTextEmote(), WorldObject::MonsterYell(), WorldObject::MonsterYell(), hyjalAI::RespawnNearPos(), Map::ScriptsProcess(), Spell::SearchTargets(), Creature::SelectNearestTarget(), Creature::SelectNearestTargetInAttackDistance(), AchievementMgr< T >::SendAchievementEarned(), GameObject::TriggeringLinkedGameObject(), Map::UpdateObjectsVisibilityFor(), Map::UpdateObjectVisibility(), Visit(), Skyfire::DelayedUnitRelocation::Visit(), Map::VisitAll(), Map::VisitFirstFound(), Map::VisitGrid(), Map::VisitWorld(), and hyjalAI::WaypointReached().
|
inlineprivate |
Definition at line 117 of file CellImpl.h.
References Cell(), data, nocreate, Part, Map::Visit(), CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Referenced by Visit().
| uint32 Cell::All |
Definition at line 94 of file Cell.h.
Referenced by Cell(), operator=(), and operator==().
| unsigned Cell::cell_x |
Definition at line 89 of file Cell.h.
Referenced by DiffCell().
| unsigned Cell::cell_y |
Definition at line 90 of file Cell.h.
Referenced by DiffCell().
| union { ... } Cell::data |
Referenced by Cell(), Cell(), Cell(), Cell(), CellX(), CellY(), Compute(), DiffCell(), DiffGrid(), GetCellCoord(), GridX(), GridY(), NoCreate(), operator=(), operator==(), SetNoCreate(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), Visit(), and VisitCircle().
| unsigned Cell::grid_x |
Definition at line 87 of file Cell.h.
Referenced by DiffGrid(), Map::SwitchGridContainers(), and Map::SwitchGridContainers().
| unsigned Cell::grid_y |
Definition at line 88 of file Cell.h.
Referenced by DiffGrid(), Map::SwitchGridContainers(), and Map::SwitchGridContainers().
| unsigned Cell::nocreate |
Definition at line 91 of file Cell.h.
Referenced by Visit(), and VisitCircle().
| struct { ... } Cell::Part |
Referenced by DiffCell(), DiffGrid(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), Visit(), and VisitCircle().