mapsquare_tile Class Reference

Contains informations about the position of an object on a map. More...

#include <mapsquare.h>

Collaboration diagram for mapsquare_tile:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Friends

class mapsquare
class mapsquare_area
class landmap
class mapview


Detailed Description

Contains informations about the position of an object 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 43 of file mapsquare.h.


Constructor & Destructor Documentation

mapsquare_tile::mapsquare_tile (  ) 

Default constructor.

Definition at line 30 of file mapsquare.cc.

mapsquare_tile::~mapsquare_tile (  ) 

Destructor.

Definition at line 36 of file mapsquare.cc.


Member Function Documentation

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

Compare the location on the landsubmap of two mapsquare_tiles.

A mapsquare_tile 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.

Attention:
Not available from Python.
See also:
operator <= ()

operator == ()

Definition at line 68 of file mapsquare.h.

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

Compare the location on the landsubmap of two mapsquare_tiles.

A mapsquare_tile 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.

Attention:
Not available from Python.
See also:
operator < ()

operator == ()

Definition at line 84 of file mapsquare.h.

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

Compare the location on the landsubmap of two mapsquare_tiles.

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

Attention:
Not available from Python.
See also:
operator < ()

operator <= ()

Definition at line 99 of file mapsquare.h.


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

Generated on Sun Mar 1 09:53:14 2009 for Adonthell by  doxygen 1.5.8