Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

cCoord Class Reference

#include <coord.h>

List of all members.

Public Methods

 cCoord (void)
 cCoord (const cCoord &clCoord)
 cCoord (UI16, UI16, SI08=0, UI08 uiMap=0, UI08 uiPlane=0)
cCoord & operator= (const cCoord &clCoord)
bool operator== (const cCoord &) const
bool operator!= (const cCoord &) const
cCoord operator+ (const cCoord &src) const
cCoord operator- (const cCoord &src) const
bool cCoord::operator< (const cCoord &src) const
unsigned int distance (const cCoord &src) const
unsigned char direction (const cCoord &dest) const
bool lineOfSight (const cCoord &target, bool touch=false)
bool lineOfSight (const cCoord &target, UI16 targethight, bool touch=false)
void effect (UI16 id, UI08 speed=10, UI08 duration=5, UI16 hue=0, UI16 renderMode=0)

Static Public Methods

UI32 distance (const cCoord &a, const cCoord &b)

Public Attributes

UI16 x
UI16 y
SI08 z
UI08 map

Static Public Attributes

cCoord null

Private Methods

double specialFloor (const double value) const


Constructor & Destructor Documentation

cCoord::cCoord void   
 

cCoord::cCoord const cCoord &    clCoord
 

cCoord::cCoord UI16   ,
UI16   ,
SI08    = 0,
UI08    uiMap = 0,
UI08    uiPlane = 0
 


Member Function Documentation

bool cCoord::cCoord::operator< const cCoord &    src const
 

unsigned char cCoord::direction const cCoord &    dest const
 

UI32 cCoord::distance const cCoord &    a,
const cCoord &    b
[static]
 

unsigned int cCoord::distance const cCoord &    src const
 

Calculates the distance between 2 coordinates. If they are in different planes and maps, the return value is infinite (0xFFFFFFFF). The exception is if one of the planes is COORD_ALL_PLANES

Parameters:
&src  : Coordinate to compare
Returns:
UI32 : distance result

void cCoord::effect UI16    id,
UI08    speed = 10,
UI08    duration = 5,
UI16    hue = 0,
UI16    renderMode = 0
 

Displays an effect staying at this position.

bool cCoord::lineOfSight const cCoord &    target,
UI16    targethight,
bool    touch = false
 

bool cCoord::lineOfSight const cCoord &    target,
bool    touch = false
 

bool cCoord::operator!= const cCoord &    const
 

cCoord cCoord::operator+ const cCoord &    src const
 

cCoord cCoord::operator- const cCoord &    src const
 

cCoord & cCoord::operator= const cCoord &    clCoord
 

bool cCoord::operator== const cCoord &    const
 

double cCoord::specialFloor const double    value const [private]
 


Member Data Documentation

UI08 cCoord::map
 

cCoord cCoord::null [static]
 

UI16 cCoord::x
 

UI16 cCoord::y
 

SI08 cCoord::z
 


The documentation for this class was generated from the following files: SourceForge.net Logo