19 #ifndef TRINITY_CELLIMPL_H
20 #define TRINITY_CELLIMPL_H
34 data.Part.nocreate = 0;
35 data.Part.reserved = 0;
45 data.Part.nocreate = 0;
46 data.Part.reserved = 0;
63 template<
class T,
class CONTAINER>
74 map.
Visit(*
this, visitor);
86 map.
Visit(*
this, visitor);
102 map.
Visit(*
this, visitor);
111 if (cellCoord != standing_cell)
113 Cell r_zone(cellCoord);
115 map.
Visit(r_zone, visitor);
121 template<
class T,
class CONTAINER>
129 template<
class T,
class CONTAINER>
139 for (
uint32 x = x_start;
x <= x_end; ++
x)
144 Cell r_zone(cellCoord);
146 map.
Visit(r_zone, visitor);
158 for (
uint32 step = 1; step <= (x_start - begin_cell.
x_coord); ++step)
163 for (
uint32 y = y_start;
y >= y_end; --
y)
168 Cell r_zone_left(cellCoord_left);
169 r_zone_left.
data.
Part.nocreate = this->
data.Part.nocreate;
170 map.
Visit(r_zone_left, visitor);
174 Cell r_zone_right(cellCoord_right);
175 r_zone_right.
data.
Part.nocreate = this->
data.Part.nocreate;
176 map.
Visit(r_zone_right, visitor);
struct Cell::@307::@308 Part
#define SIZE_OF_GRIDS
Definition: GridDefines.h:39
Definition: TypeContainerVisitor.h:32
CoordPair & normalize()
Definition: GridDefines.h:143
Cell()
Definition: Cell.h:51
#define MAX_NUMBER_OF_CELLS
Definition: GridDefines.h:35
CellCoord ComputeCellCoord(float x, float y)
Definition: GridDefines.h:193
uint32 y_coord
Definition: GridDefines.h:156
static CellArea CalculateCellArea(float x, float y, float radius)
Definition: CellImpl.h:49
uint32 x_coord
Definition: GridDefines.h:155
float GetPositionY() const
Definition: Position.h:105
CellCoord low_bound
Definition: Cell.h:45
uint32_t uint32
Definition: Define.h:150
G3D::int16 y
Definition: Vector2int16.h:38
bool IsCoordValid() const
Definition: GridDefines.h:138
void VisitCircle(TypeContainerVisitor< T, CONTAINER > &, Map &, CellCoord const &, CellCoord const &) const
Definition: CellImpl.h:130
void Visit(const Cell &cell, TypeContainerVisitor< T, CONTAINER > &visitor)
Definition: Map.h:811
CellCoord high_bound
Definition: Cell.h:46
uint32_t uint32
Definition: g3dmath.h:168
G3D::int16 x
Definition: Vector2int16.h:37
float GetPositionX() const
Definition: Position.h:104
float GetObjectSize() const
Definition: Object.cpp:2656
void Visit(CellCoord const &, TypeContainerVisitor< T, CONTAINER > &visitor, Map &, WorldObject const &, float) const
Definition: CellImpl.h:122