Adonthell  0.4
mapsquare_tile Class Reference

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

#include <mapsquare.h>

Public Member Functions

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

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 47 of file mapsquare.h.

Constructor & Destructor Documentation

mapsquare_tile::mapsquare_tile ( )

Default constructor.

Definition at line 34 of file mapsquare.cc.

mapsquare_tile::~mapsquare_tile ( )

Destructor.

Definition at line 40 of file mapsquare.cc.

Member Function Documentation

bool mapsquare_tile::operator< ( const mapsquare_tile mt) const
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 72 of file mapsquare.h.

bool mapsquare_tile::operator<= ( const mapsquare_tile mt) const
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 88 of file mapsquare.h.

bool mapsquare_tile::operator== ( const mapsquare_tile mt) const
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 103 of file mapsquare.h.


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