Adonthell
0.4
|
Contains informations about the position of a character on a map. More...
#include <mapsquare.h>
Public Member Functions | |
mapsquare_char () | |
Default constructor. More... | |
~mapsquare_char () | |
Destructor. More... | |
bool | operator< (const mapsquare_char &mt) const |
Compare the location on the landsubmap of two mapsquare_chars. More... | |
bool | operator<= (const mapsquare_char &mt) const |
Compare the location on the landsubmap of two mapsquare_chars. More... | |
bool | operator== (const mapsquare_char &mt) const |
Compare the location on the landsubmap of two mapsquare_chars. More... | |
Friends | |
class | mapcharacter |
class | mapsquare |
class | landmap |
class | mapview |
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 141 of file mapsquare.h.
mapsquare_char::mapsquare_char | ( | ) |
Default constructor.
Definition at line 44 of file mapsquare.cc.
mapsquare_char::~mapsquare_char | ( | ) |
Destructor.
Definition at line 50 of file mapsquare.cc.
|
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.
Definition at line 163 of file mapsquare.h.
|
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.
Definition at line 176 of file mapsquare.h.
|
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.
Definition at line 188 of file mapsquare.h.