comparison include/mb_types.h @ 208:e01acb80f0e7

Define mb_sprite_t
author Thinker K.F. Li <thinker@branda.to>
date Wed, 10 Dec 2008 14:57:21 +0800
parents eb6ff421da7e
children 6f63aa67ed83
comparison
equal deleted inserted replaced
207:fd3e311e7e5d 208:e01acb80f0e7
10 typedef struct _geo geo_t; 10 typedef struct _geo geo_t;
11 typedef struct _area area_t; 11 typedef struct _area area_t;
12 typedef struct _shnode shnode_t; 12 typedef struct _shnode shnode_t;
13 typedef struct _paint paint_t; 13 typedef struct _paint paint_t;
14 typedef struct _mb_obj mb_obj_t; 14 typedef struct _mb_obj mb_obj_t;
15 typedef struct _mb_sprite mb_sprite_t;
15 16
16 struct _redraw_man; 17 struct _redraw_man;
17 18
18 /*! \brief MadButterfly object. 19 /*! \brief MadButterfly object.
19 * 20 *
210 do { \ 211 do { \
211 (sh)->geo->flags &= ~GEF_HIDDEN; \ 212 (sh)->geo->flags &= ~GEF_HIDDEN; \
212 } while(0) 213 } while(0)
213 214
214 215
216 /*! \brief A sprite is a set of graphics that being an object in animation.
217 *
218 * A sprite include graphics comprise an object. For example, a tank, in
219 * example tank, is comprised a set of graphics that is represented as a
220 * sprite.
221 */
222 struct _mb_sprite {
223 void (*free)(struct _mb_sprite *);
224 mb_obj_t *(*get_obj_with_name)(const char *id);
225 };
226
215 #endif /* __MB_TYPES_H_ */ 227 #endif /* __MB_TYPES_H_ */