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. More... | |
~mapsquare_tile () | |
Destructor. More... | |
bool | operator< (const mapsquare_tile &mt) |
Compare the location on the landsubmap of two mapsquare_tiles. More... | |
bool | operator<= (const mapsquare_tile &mt) |
Compare the location on the landsubmap of two mapsquare_tiles. More... | |
bool | operator== (const mapsquare_tile &mt) |
Compare the location on the landsubmap of two mapsquare_tiles. More... | |
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.
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.
|
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.
|
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.
|
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.