Adonthell
0.4
|
Contains informations about the position of an object on a map. More...
#include <mapsquare.h>
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 |
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.
Default constructor.
Definition at line 30 of file mapsquare.cc.
Destructor.
Definition at line 36 of file mapsquare.cc.
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.
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.
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.
Definition at line 99 of file mapsquare.h.