Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
CoordPair< LIMIT > Struct Template Reference

#include <GridDefines.h>

Public Member Functions

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

Public Attributes

uint32 x_coord
uint32 y_coord

Detailed Description

template<uint32 LIMIT>
struct CoordPair< LIMIT >

Definition at line 75 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 77 of file GridDefines.h.

◆ CoordPair() [2/2]

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

Definition at line 81 of file GridDefines.h.

Member Function Documentation

◆ dec_x()

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

Definition at line 92 of file GridDefines.h.

Referenced by Map::ActiveObjectsNearGrid().

◆ dec_y()

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

Definition at line 108 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 100 of file GridDefines.h.

Referenced by Map::ActiveObjectsNearGrid().

◆ inc_y()

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

Definition at line 116 of file GridDefines.h.

Referenced by Map::ActiveObjectsNearGrid().

◆ IsCoordValid()

◆ normalize()

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

Definition at line 129 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 85 of file GridDefines.h.

Member Data Documentation

◆ x_coord

◆ y_coord


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