mapsquare_char Class Reference

Contains informations about the position of a character on a map. More...

#include <mapsquare.h>

Collaboration diagram for mapsquare_char:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 mapsquare_char ()
 Default constructor.
 ~mapsquare_char ()
 Destructor.
bool operator< (const mapsquare_char &mt)
 Compare the location on the landsubmap of two mapsquare_chars.
bool operator<= (const mapsquare_char &mt)
 Compare the location on the landsubmap of two mapsquare_chars.
bool operator== (const mapsquare_char &mt)
 Compare the location on the landsubmap of two mapsquare_chars.

Friends

class mapcharacter
class mapsquare
class landmap
class mapview


Detailed Description

Contains informations about the position of a character on a map.

Objects of this class has no reason to exist outside of a mapsquare. You'll NEVER want to manipulate this class directly - only mapsquare, mapsquare_area and landmap will.

Definition at line 137 of file mapsquare.h.


Constructor & Destructor Documentation

mapsquare_char::mapsquare_char (  ) 

Default constructor.

Definition at line 40 of file mapsquare.cc.

mapsquare_char::~mapsquare_char (  ) 

Destructor.

Definition at line 46 of file mapsquare.cc.


Member Function Documentation

bool mapsquare_char::operator< ( const mapsquare_char mt  )  [inline]

Compare the location on the landsubmap of two mapsquare_chars.

A mapsquare_char is < to another if it's Y position is < to the other one's or if it's Y position == the other one's and it's X position is < to the other one's.

See also:
operator <= ()

operator == ()

Definition at line 159 of file mapsquare.h.

bool mapsquare_char::operator<= ( const mapsquare_char mt  )  [inline]

Compare the location on the landsubmap of two mapsquare_chars.

A mapsquare_char is <= to another if it's Y position is < to the other one's or if it's Y position == the other one's and it's X position is <= to the other one's.

See also:
operator < ()

operator == ()

Definition at line 172 of file mapsquare.h.

bool mapsquare_char::operator== ( const mapsquare_char mt  )  [inline]

Compare the location on the landsubmap of two mapsquare_chars.

A mapsquare_char is == to another if their X and Y position are equal.

See also:
operator < ()

operator <= ()

Definition at line 184 of file mapsquare.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 5 16:30:11 2009 for Adonthell by  doxygen 1.5.8