Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List

Location Class Reference

Location. More...

#include <Location.h>

Inheritance diagram for Location:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Location (const Location &source)
virtual bool ParseNode (const TiXmlNode *node)
virtual TiXmlNode * WriteNode (TiXmlNode *node) const
TiXmlNode * WriteLocation (TiXmlNode *node) const
virtual const string GetName (const Player *) const
void SetLocation (const Location &loc)
void SetLocation (long px, long py)
long GetPosX () const
long GetPosY () const
void SetPosX (long x)
void SetPosY (long y)
double Distance (const Location &other) const
double Distance (double px, double py) const
bool IsWith (const Location &other) const
bool IsWith (long x, long y) const
virtual long GetID () const
virtual long SeenBy (const Player *) const
virtual long SeenBy (unsigned long) const

Static Public Member Functions

static void MoveToward (const Location &start, const Location &dest, double *px, double *py, long distance)

Protected Attributes

long posX
long posY

Friends

bool operator== (const Location &a, const Location &b)
bool operator!= (const Location &a, const Location &b)

Detailed Description

Location.

Definition at line 36 of file Location.h.


The documentation for this class was generated from the following files:
Generated on Mon Aug 8 21:34:54 2005 for Freestars by  doxygen 1.4.2-20050421