Adonthell
0.4
|
Contains information about the walkability of a mapsquare. More...
#include <mapsquare_walkable.h>
Public Member Functions | |
mapsquare_walkable () | |
Default constructor. More... | |
s_int8 | get (igzstream &file) |
Loads a mapsquare_walkable from an opened file. More... | |
s_int8 | put (ogzstream &file) const |
Puts a mapsquare_walkable into an opened file. More... | |
bool | is_walkable_west () const |
Returns whether a mapsquare is walkable from west. More... | |
bool | is_walkable_east () const |
Returns whether a mapsquare is walkable from east. More... | |
bool | is_walkable_north () const |
Returns whether a mapsquare is walkable from north. More... | |
bool | is_walkable_south () const |
Returns whether a mapsquare is walkable from south. More... | |
void | set_walkable_west (bool w) |
Sets the reachability from west of a mapsquare. More... | |
void | set_walkable_east (bool w) |
Sets the reachability from east of a mapsquare. More... | |
void | set_walkable_north (bool w) |
Sets the reachability from north of a mapsquare. More... | |
void | set_walkable_south (bool w) |
Sets the reachability from south of a mapsquare. More... | |
u_int8 | get_walkable () const |
Gets the raw walkable parameter of a mapsquare. More... | |
void | set_walkable (u_int8 w) |
Sets the walkable parameter of a mapsquare. More... | |
Contains information about the walkability of a mapsquare.
Definition at line 86 of file mapsquare_walkable.h.
mapsquare_walkable::mapsquare_walkable | ( | ) |
Default constructor.
Definition at line 30 of file mapsquare_walkable.cc.
Loads a mapsquare_walkable from an opened file.
file | the file to load from. |
Definition at line 35 of file mapsquare_walkable.cc.
Puts a mapsquare_walkable into an opened file.
file | the file where to save. |
Definition at line 41 of file mapsquare_walkable.cc.
|
inline |
Returns whether a mapsquare is walkable from west.
Definition at line 120 of file mapsquare_walkable.h.
|
inline |
Returns whether a mapsquare is walkable from east.
Definition at line 131 of file mapsquare_walkable.h.
|
inline |
Returns whether a mapsquare is walkable from north.
Definition at line 142 of file mapsquare_walkable.h.
|
inline |
Returns whether a mapsquare is walkable from south.
Definition at line 153 of file mapsquare_walkable.h.
|
inline |
Sets the reachability from west of a mapsquare.
w | true if the mapsquare should be reachable from west, false otherwise. |
Definition at line 163 of file mapsquare_walkable.h.
|
inline |
Sets the reachability from east of a mapsquare.
w | true if the mapsquare should be reachable from east, false otherwise. |
Definition at line 176 of file mapsquare_walkable.h.
|
inline |
Sets the reachability from north of a mapsquare.
w | true if the mapsquare should be reachable from north, false otherwise. |
Definition at line 189 of file mapsquare_walkable.h.
|
inline |
Sets the reachability from south of a mapsquare.
w | true if the mapsquare should be reachable from south, false otherwise. |
Definition at line 202 of file mapsquare_walkable.h.
|
inline |
Gets the raw walkable parameter of a mapsquare.
Definition at line 215 of file mapsquare_walkable.h.
|
inline |
Sets the walkable parameter of a mapsquare.
w | new walkable status. |
Definition at line 225 of file mapsquare_walkable.h.