36 #define MAPOBJECTS_DIR "gfx/mapobjects/" 105 surface * target = NULL)
const;
252 mutable vector <animation *> anim;
void draw(s_int16 x, s_int16 y, const drawing_area *da_opt=NULL, surface *target=NULL) const
Draw the object on the screen.
Class to write data from a Gzip compressed file.
Class to read data from a Gzip compressed file.
Declares the animationframe and animation classes.
#define u_int16
16 bits long unsigned integer
s_int8 load(string fname)
Loads a mapobject from it's filename.
Class where drawables can actually be drawn to.
u_int16 nbr_of_animations() const
Returns the number of animations of this mapobject.
Declares the mapsquare_walkable and mapsquare_walkable_area classes.
s_int8 insert_animation(animation *an, u_int16 pos)
Inserts an animation at a given position of the animations array.
Implements "drawing zones" for drawing operations.
s_int8 delete_animation(u_int16 pos)
Removes an animation at a given position.
#define s_int16
16 bits long signed integer
void copy(const mapobject &src)
Synonym of operator = to guarantee its access from Python.
void draw_from_base(s_int16 x, s_int16 y, const drawing_area *da_opt=NULL, surface *target=NULL) const
Similar to draw (), but assume the x and y parameters are where the base square should appear...
mapobject & operator=(const mapobject &mo)
Mapobject copy (similar to copy ()).
animation * get_animation(u_int16 nbr)
Returns a pointer to one of the mapobject's animations.
Area of mapsquare_walkables, for use with mapcharacter and mapobject classes.
mapobject()
Default constructor.
bool update()
Updates the mapobject's state.
Class that handles animated elements, their update and their playback.
s_int8 save(string fname) const
Saves an mapobject into an file, in game format, with alpha and mask values.
#define s_int8
8 bits long signed integer
Objects that can be placed on a landmap.
s_int8 put(ogzstream &file) const
Saves an mapobject into an opened file, in game format, with alpha and mask values.
void clear()
Resets the mapobject to its post-constructor state.