Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Cell Struct Reference

#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
Celloperator= (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

Detailed Description

Definition at line 36 of file Cell.h.

Constructor & Destructor Documentation

◆ Cell() [1/4]

Cell::Cell ( )
inline

Definition at line 38 of file Cell.h.

References data.

Referenced by Cell(), DiffCell(), DiffGrid(), operator!=(), operator=(), operator==(), Visit(), and VisitCircle().

◆ Cell() [2/4]

Cell::Cell ( Cell const & cell)
inline

Definition at line 39 of file Cell.h.

References All, Cell(), and data.

◆ Cell() [3/4]

Cell::Cell ( CellCoord const & p)
inlineexplicit

◆ Cell() [4/4]

Cell::Cell ( float x,
float y )
inlineexplicit

Member Function Documentation

◆ CalculateCellArea()

CellArea Cell::CalculateCellArea ( float x,
float y,
float radius )
inlinestatic

Definition at line 36 of file CellImpl.h.

References Skyfire::ComputeCellCoord(), and CoordPair< LIMIT >::normalize().

Referenced by Visit(), and Map::VisitNearbyCellsOf().

◆ CellX()

◆ CellY()

◆ Compute()

void Cell::Compute ( uint32 & x,
uint32 & y ) const
inline

Definition at line 43 of file Cell.h.

References data, and MAX_NUMBER_OF_CELLS.

◆ DiffCell()

bool Cell::DiffCell ( const Cell & cell) const
inline

◆ DiffGrid()

◆ GetCellCoord()

CellCoord Cell::GetCellCoord ( ) const
inline

Definition at line 68 of file Cell.h.

References data, and MAX_NUMBER_OF_CELLS.

◆ GridX()

◆ GridY()

◆ NoCreate()

bool Cell::NoCreate ( ) const
inline

Definition at line 65 of file Cell.h.

References data.

Referenced by Map::Visit().

◆ operator!=()

bool Cell::operator!= ( Cell const & cell) const
inline

Definition at line 82 of file Cell.h.

References Cell(), and operator==().

◆ operator=()

Cell & Cell::operator= ( Cell const & cell)
inline

Definition at line 75 of file Cell.h.

References All, Cell(), and data.

◆ operator==()

bool Cell::operator== ( Cell const & cell) const
inline

Definition at line 81 of file Cell.h.

References All, Cell(), and data.

Referenced by operator!=().

◆ SetNoCreate()

◆ Visit() [1/2]

template<class T, class CONTAINER>
void Cell::Visit ( CellCoord const & standing_cell,
TypeContainerVisitor< T, CONTAINER > & visitor,
Map & map,
float radius,
float x_off,
float y_off ) const
inline

◆ Visit() [2/2]

template<class T, class CONTAINER>
void Cell::Visit ( CellCoord const & standing_cell,
TypeContainerVisitor< T, CONTAINER > & visitor,
Map & map,
WorldObject const & obj,
float radius ) const
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().

◆ VisitCircle()

template<class T, class CONTAINER>
void Cell::VisitCircle ( TypeContainerVisitor< T, CONTAINER > & visitor,
Map & map,
CellCoord const & begin_cell,
CellCoord const & end_cell ) const
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().

Member Data Documentation

◆ All

uint32 Cell::All

Definition at line 94 of file Cell.h.

Referenced by Cell(), operator=(), and operator==().

◆ cell_x

unsigned Cell::cell_x

Definition at line 89 of file Cell.h.

Referenced by DiffCell().

◆ cell_y

unsigned Cell::cell_y

Definition at line 90 of file Cell.h.

Referenced by DiffCell().

◆ [union]

◆ grid_x

unsigned Cell::grid_x

Definition at line 87 of file Cell.h.

Referenced by DiffGrid(), Map::SwitchGridContainers(), and Map::SwitchGridContainers().

◆ grid_y

unsigned Cell::grid_y

Definition at line 88 of file Cell.h.

Referenced by DiffGrid(), Map::SwitchGridContainers(), and Map::SwitchGridContainers().

◆ nocreate

unsigned Cell::nocreate

Definition at line 91 of file Cell.h.

Referenced by Visit(), and VisitCircle().

◆ [struct]

◆ reserved

unsigned Cell::reserved

Definition at line 92 of file Cell.h.

◆ v8

float Cell::v8[16 *8][16 *8]

Definition at line 42 of file adtfile.h.

◆ v9

float Cell::v9[16 *8+1][16 *8+1]

Definition at line 41 of file adtfile.h.


The documentation for this struct was generated from the following files: