67 vector <vector<mapsquare_walkable> >::iterator it;
68 vector <mapsquare_walkable>::iterator jt;
78 for (it = area.begin (); it != area.end (); it++)
79 for (jt = it->begin (); jt < it->end (); jt++)
92 vector <vector<mapsquare_walkable> >::iterator it;
93 vector <mapsquare_walkable>::iterator jt;
100 for (it = area.begin (); it != area.end (); it++)
101 for (jt = it->begin (); jt < it->end (); jt++)
113 vector <vector<mapsquare_walkable> >::iterator i;
116 for (i = area.begin (); i != area.end (); i++)
142 area[i][j] = src.area[i][j];
Class to write data from a Gzip compressed file.
void set_length(u_int16 l)
Sets the length of the drawable.
u_int16 area_height() const
Returns the height of the area.
void resize_area(u_int16 nl, u_int16 nh)
Resize the area.
Class to read data from a Gzip compressed file.
s_int8 get(igzstream &file)
Loads a mapsquare_walkable from an opened file.
#define u_int16
16 bits long unsigned integer
~mapsquare_walkable_area()
Destructor.
void set_height(u_int16 h)
Sets the height of the drawable.
u_int16 area_length() const
Returns the length of the area.
Declares the mapsquare_walkable and mapsquare_walkable_area classes.
mapsquare_walkable_area()
Default constructor.
#define ALL_WALKABLE
Walkable from every side.
void clear()
Totally clears the area.
void set_walkable(u_int8 w)
Sets the walkable parameter of a mapsquare.
u_int16 base_x() const
Returns the X offset of the base square of this object.
const u_int16 MAPSQUARE_SIZE
Size of a mapsquare (in pixels).
mapsquare_walkable()
Default constructor.
Area of mapsquare_walkables, for use with mapcharacter and mapobject classes.
void set_base(u_int16 nx, u_int16 ny)
Sets the base square of this object.
s_int8 put(ogzstream &file) const
Saves an area into an opened file.
Abstract class for drawable objects manipulation.
s_int8 put(ogzstream &file) const
Puts a mapsquare_walkable into an opened file.
s_int8 get(igzstream &file)
Loads an area from an opened file.
u_int16 base_y() const
Returns the Y offset of the base square of this object.
mapsquare_walkable_area & operator=(const mapsquare_walkable_area &mo)
Area copy (similar to copy ()).
#define s_int8
8 bits long signed integer