63 vector <vector<mapsquare_walkable> >::iterator it;
64 vector <mapsquare_walkable>::iterator jt;
74 for (it = area.begin (); it != area.end (); it++)
75 for (jt = it->begin (); jt < it->end (); jt++)
88 vector <vector<mapsquare_walkable> >::iterator it;
89 vector <mapsquare_walkable>::iterator jt;
96 for (it = area.begin (); it != area.end (); it++)
97 for (jt = it->begin (); jt < it->end (); jt++)
109 vector <vector<mapsquare_walkable> >::iterator i;
112 for (i = area.begin (); i != area.end (); i++)
138 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.
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 base_y() const
Returns the Y offset of the base square of this object.
Declares the mapsquare_walkable and mapsquare_walkable_area classes.
s_int8 put(ogzstream &file) const
Saves an area into an opened file.
mapsquare_walkable_area()
Default constructor.
u_int16 area_length() const
Returns the length of the area.
#define ALL_WALKABLE
Walkable from every side.
void clear()
Totally clears the area.
u_int16 base_x() const
Returns the X offset of the base square of this object.
void set_walkable(u_int8 w)
Sets the walkable parameter of a mapsquare.
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
Puts a mapsquare_walkable into an opened file.
Abstract class for drawable objects manipulation.
s_int8 get(igzstream &file)
Loads an area from an opened file.
u_int16 area_height() const
Returns the height of the area.
mapsquare_walkable_area & operator=(const mapsquare_walkable_area &mo)
Area copy (similar to copy ()).
#define s_int8
8 bits long signed integer