|
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 82 of file mapsquare_walkable.h.
| mapsquare_walkable::mapsquare_walkable | ( | ) |
Default constructor.
Definition at line 26 of file mapsquare_walkable.cc.
Loads a mapsquare_walkable from an opened file.
| file | the file to load from. |
Definition at line 31 of file mapsquare_walkable.cc.
Puts a mapsquare_walkable into an opened file.
| file | the file where to save. |
Definition at line 37 of file mapsquare_walkable.cc.
|
inline |
Returns whether a mapsquare is walkable from west.
Definition at line 116 of file mapsquare_walkable.h.
|
inline |
Returns whether a mapsquare is walkable from east.
Definition at line 127 of file mapsquare_walkable.h.
|
inline |
Returns whether a mapsquare is walkable from north.
Definition at line 138 of file mapsquare_walkable.h.
|
inline |
Returns whether a mapsquare is walkable from south.
Definition at line 149 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 159 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 172 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 185 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 198 of file mapsquare_walkable.h.
|
inline |
Gets the raw walkable parameter of a mapsquare.
Definition at line 211 of file mapsquare_walkable.h.
|
inline |
Sets the walkable parameter of a mapsquare.
| w | new walkable status. |
Definition at line 221 of file mapsquare_walkable.h.