Adonthell 0.4
|
Contains information about the walkability of a mapsquare. More...
#include <mapsquare_walkable.h>
Public Member Functions | |
mapsquare_walkable () | |
Default constructor. | |
s_int8 | get (igzstream &file) |
Loads a mapsquare_walkable from an opened file. | |
s_int8 | put (ogzstream &file) const |
Puts a mapsquare_walkable into an opened file. | |
bool | is_walkable_west () const |
Returns whether a mapsquare is walkable from west. | |
bool | is_walkable_east () const |
Returns whether a mapsquare is walkable from east. | |
bool | is_walkable_north () const |
Returns whether a mapsquare is walkable from north. | |
bool | is_walkable_south () const |
Returns whether a mapsquare is walkable from south. | |
void | set_walkable_west (bool w) |
Sets the reachability from west of a mapsquare. | |
void | set_walkable_east (bool w) |
Sets the reachability from east of a mapsquare. | |
void | set_walkable_north (bool w) |
Sets the reachability from north of a mapsquare. | |
void | set_walkable_south (bool w) |
Sets the reachability from south of a mapsquare. | |
u_int8 | get_walkable () const |
Gets the raw walkable parameter of a mapsquare. | |
void | set_walkable (u_int8 w) |
Sets the walkable parameter of a mapsquare. |
Contains information about the walkability of a mapsquare.
Definition at line 82 of file mapsquare_walkable.h.
mapsquare_walkable::mapsquare_walkable | ( | ) |
Default constructor.
Definition at line 26 of file mapsquare_walkable.cc.
s_int8 mapsquare_walkable::get | ( | igzstream & | file | ) |
Loads a mapsquare_walkable from an opened file.
file | the file to load from. |
Definition at line 31 of file mapsquare_walkable.cc.
s_int8 mapsquare_walkable::put | ( | ogzstream & | file | ) | const |
Puts a mapsquare_walkable into an opened file.
file | the file where to save. |
Definition at line 37 of file mapsquare_walkable.cc.
bool mapsquare_walkable::is_walkable_west | ( | ) | const [inline] |
Returns whether a mapsquare is walkable from west.
Definition at line 116 of file mapsquare_walkable.h.
bool mapsquare_walkable::is_walkable_east | ( | ) | const [inline] |
Returns whether a mapsquare is walkable from east.
Definition at line 127 of file mapsquare_walkable.h.
bool mapsquare_walkable::is_walkable_north | ( | ) | const [inline] |
Returns whether a mapsquare is walkable from north.
Definition at line 138 of file mapsquare_walkable.h.
bool mapsquare_walkable::is_walkable_south | ( | ) | const [inline] |
Returns whether a mapsquare is walkable from south.
Definition at line 149 of file mapsquare_walkable.h.
void mapsquare_walkable::set_walkable_west | ( | bool | w | ) | [inline] |
Sets the reachability from west of a mapsquare.
w | true if the mapsquare should be reachable from west, false otherwise. |
Definition at line 159 of file mapsquare_walkable.h.
void mapsquare_walkable::set_walkable_east | ( | bool | w | ) | [inline] |
Sets the reachability from east of a mapsquare.
w | true if the mapsquare should be reachable from east, false otherwise. |
Definition at line 172 of file mapsquare_walkable.h.
void mapsquare_walkable::set_walkable_north | ( | bool | w | ) | [inline] |
Sets the reachability from north of a mapsquare.
w | true if the mapsquare should be reachable from north, false otherwise. |
Definition at line 185 of file mapsquare_walkable.h.
void mapsquare_walkable::set_walkable_south | ( | bool | w | ) | [inline] |
Sets the reachability from south of a mapsquare.
w | true if the mapsquare should be reachable from south, false otherwise. |
Definition at line 198 of file mapsquare_walkable.h.
u_int8 mapsquare_walkable::get_walkable | ( | ) | const [inline] |
Gets the raw walkable parameter of a mapsquare.
Definition at line 211 of file mapsquare_walkable.h.
void mapsquare_walkable::set_walkable | ( | u_int8 | w | ) | [inline] |
Sets the walkable parameter of a mapsquare.
w | new walkable status. |
Definition at line 221 of file mapsquare_walkable.h.