TrinityCore
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
 
CoordPairnormalize ()
 
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 105 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 107 of file GridDefines.h.

◆ CoordPair() [2/2]

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

Definition at line 111 of file GridDefines.h.

Member Function Documentation

◆ dec_x()

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

Definition at line 122 of file GridDefines.h.

+ Here is the caller graph for this function:

◆ dec_y()

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

Definition at line 138 of file GridDefines.h.

+ Here is the caller graph for this function:

◆ GetId()

template<uint32 LIMIT>
uint32 CoordPair< LIMIT >::GetId ( ) const
inline

Definition at line 166 of file GridDefines.h.

+ Here is the caller graph for this function:

◆ inc_x()

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

Definition at line 130 of file GridDefines.h.

+ Here is the caller graph for this function:

◆ inc_y()

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

Definition at line 146 of file GridDefines.h.

+ Here is the caller graph for this function:

◆ IsCoordValid()

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

Definition at line 154 of file GridDefines.h.

+ Here is the caller graph for this function:

◆ normalize()

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

Definition at line 159 of file GridDefines.h.

+ Here is the caller graph for this function:

◆ operator=()

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

Definition at line 115 of file GridDefines.h.

Friends And Related Function Documentation

◆ operator==

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

Member Data Documentation

◆ x_coord

template<uint32 LIMIT>
uint32 CoordPair< LIMIT >::x_coord

Definition at line 173 of file GridDefines.h.

◆ y_coord

template<uint32 LIMIT>
uint32 CoordPair< LIMIT >::y_coord

Definition at line 174 of file GridDefines.h.


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