TrinityCore
Loading...
Searching...
No Matches
CoordPair< LIMIT > Struct Template Reference

#include <GridDefines.h>

Public Member Functions

 CoordPair (uint32 x=0, uint32 y=0)
 
 CoordPair (const CoordPair< LIMIT > &obj)
 
CoordPair< LIMIT > & operator= (const CoordPair< LIMIT > &obj)
 
void dec_x (uint32 val)
 
void inc_x (uint32 val)
 
void dec_y (uint32 val)
 
void inc_y (uint32 val)
 
bool IsCoordValid () const
 
CoordPair & normalize ()
 
uint32 GetId () const
 

Public Attributes

uint32 x_coord
 
uint32 y_coord
 

Friends

bool operator== (CoordPair const &p1, CoordPair const &p2)=default
 

Detailed Description

template<uint32 LIMIT>
struct CoordPair< LIMIT >

Definition at line 92 of file GridDefines.h.

Constructor & Destructor Documentation

◆ CoordPair() [1/2]

template<uint32 LIMIT>
CoordPair< LIMIT >::CoordPair ( uint32  x = 0,
uint32  y = 0 
)
inline

Definition at line 94 of file GridDefines.h.

◆ CoordPair() [2/2]

template<uint32 LIMIT>
CoordPair< LIMIT >::CoordPair ( const CoordPair< LIMIT > &  obj)
inline

Definition at line 98 of file GridDefines.h.

Member Function Documentation

◆ dec_x()

template<uint32 LIMIT>
void CoordPair< LIMIT >::dec_x ( uint32  val)
inline

Definition at line 109 of file GridDefines.h.

Referenced by Map::ActiveObjectsNearGrid().

◆ dec_y()

template<uint32 LIMIT>
void CoordPair< LIMIT >::dec_y ( uint32  val)
inline

Definition at line 125 of file GridDefines.h.

Referenced by Map::ActiveObjectsNearGrid().

◆ GetId()

◆ inc_x()

template<uint32 LIMIT>
void CoordPair< LIMIT >::inc_x ( uint32  val)
inline

Definition at line 117 of file GridDefines.h.

Referenced by Map::ActiveObjectsNearGrid().

◆ inc_y()

template<uint32 LIMIT>
void CoordPair< LIMIT >::inc_y ( uint32  val)
inline

Definition at line 133 of file GridDefines.h.

Referenced by Map::ActiveObjectsNearGrid().

◆ IsCoordValid()

template<uint32 LIMIT>
bool CoordPair< LIMIT >::IsCoordValid ( ) const
inline

◆ normalize()

template<uint32 LIMIT>
CoordPair & CoordPair< LIMIT >::normalize ( )
inline

Definition at line 146 of file GridDefines.h.

Referenced by Cell::CalculateCellArea().

◆ operator=()

template<uint32 LIMIT>
CoordPair< LIMIT > & CoordPair< LIMIT >::operator= ( const CoordPair< LIMIT > &  obj)
inline

Definition at line 102 of file GridDefines.h.

References CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.

Friends And Related Symbol Documentation

◆ operator==

template<uint32 LIMIT>
bool operator== ( CoordPair< LIMIT > const &  p1,
CoordPair< LIMIT > const &  p2 
)
friend

Member Data Documentation

◆ x_coord

◆ y_coord


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