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

TargetLocation Class Reference

#include <target.h>

List of all members.

Public Methods

 TargetLocation (P_CHAR pc)
 creates a target loc from a character

 TargetLocation (P_ITEM pi)
 creates a target loc from an item

 TargetLocation (P_TARGET pp)
 creates a target loc from a target net packet

 TargetLocation (UI16 x, UI16 y, SI08 z)
 creates a target loc from a xyz position in the map

void revalidate ()
 recalculates item&char from their serial

P_CHAR getChar ()
 gets the targetted char if any, NULL otherwise

P_ITEM getItem ()
 gets the targetted item if any, NULL otherwise

void getXYZ (UI16 &x, UI16 &y, SI08 &z)
 gets the XYZ location of this target location

void extendItemTarget ()
 extends a P_ITEM data to P_CHAR and x,y,z


Private Methods

void init (UI16 x, UI16 y, SI08 z)
void init (P_CHAR pc)
void init (P_ITEM pi)

Private Attributes

P_CHAR m_pc
int m_pcSerial
P_ITEM m_pi
int m_piSerial
UI16 m_x
UI16 m_y
SI08 m_z


Constructor & Destructor Documentation

TargetLocation::TargetLocation P_CHAR    pc [inline]
 

creates a target loc from a character

TargetLocation::TargetLocation P_ITEM    pi [inline]
 

creates a target loc from an item

TargetLocation::TargetLocation P_TARGET    pp
 

creates a target loc from a target net packet

TargetLocation::TargetLocation UI16    x,
UI16    y,
SI08    z
[inline]
 

creates a target loc from a xyz position in the map


Member Function Documentation

void TargetLocation::extendItemTarget  
 

extends a P_ITEM data to P_CHAR and x,y,z

P_CHAR TargetLocation::getChar   [inline]
 

gets the targetted char if any, NULL otherwise

P_ITEM TargetLocation::getItem   [inline]
 

gets the targetted item if any, NULL otherwise

void TargetLocation::getXYZ UI16   x,
UI16   y,
SI08   z
[inline]
 

gets the XYZ location of this target location

void TargetLocation::init P_ITEM    pi [private]
 

void TargetLocation::init P_CHAR    pc [private]
 

void TargetLocation::init UI16    x,
UI16    y,
SI08    z
[private]
 

void TargetLocation::revalidate  
 

recalculates item&char from their serial


Member Data Documentation

P_CHAR TargetLocation::m_pc [private]
 

int TargetLocation::m_pcSerial [private]
 

P_ITEM TargetLocation::m_pi [private]
 

int TargetLocation::m_piSerial [private]
 

UI16 TargetLocation::m_x [private]
 

UI16 TargetLocation::m_y [private]
 

SI08 TargetLocation::m_z [private]
 


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