mapsquare_walkable Class Reference

Contains information about the walkability of a mapsquare. More...

#include <mapsquare_walkable.h>

Inheritance diagram for mapsquare_walkable:

Inheritance graph
[legend]

List of all members.

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.


Detailed Description

Contains information about the walkability of a mapsquare.

Definition at line 82 of file mapsquare_walkable.h.


Constructor & Destructor Documentation

mapsquare_walkable::mapsquare_walkable (  ) 

Default constructor.

Definition at line 26 of file mapsquare_walkable.cc.


Member Function Documentation

s_int8 mapsquare_walkable::get ( igzstream file  ) 

Loads a mapsquare_walkable from an opened file.

Parameters:
file the file to load from.
Returns:
0 in case of success, error code otherwise.

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.

Parameters:
file the file where to save.
Returns:
0 in case of success, error code otherwise.

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.

Returns:
true if the mapsquare is walkable from west, false otherwise.

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.

Returns:
true if the mapsquare is walkable from east, false otherwise.

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.

Returns:
true if the mapsquare is walkable from north, false otherwise.

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.

Returns:
true if the mapsquare is walkable from south, false otherwise.

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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Returns:
walkable parameter of this 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.

Parameters:
w new walkable status.

Definition at line 221 of file mapsquare_walkable.h.


The documentation for this class was generated from the following files:

Generated on Thu Sep 25 18:59:18 2008 for Adonthell by  doxygen 1.5.6