Mercurial > MadButterfly
changeset 208:e01acb80f0e7
Define mb_sprite_t
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 10 Dec 2008 14:57:21 +0800 |
parents | fd3e311e7e5d |
children | 6f63aa67ed83 |
files | include/mb_types.h |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/include/mb_types.h Wed Dec 10 12:43:00 2008 +0800 +++ b/include/mb_types.h Wed Dec 10 14:57:21 2008 +0800 @@ -12,6 +12,7 @@ typedef struct _shnode shnode_t; typedef struct _paint paint_t; typedef struct _mb_obj mb_obj_t; +typedef struct _mb_sprite mb_sprite_t; struct _redraw_man; @@ -212,4 +213,15 @@ } while(0) +/*! \brief A sprite is a set of graphics that being an object in animation. + * + * A sprite include graphics comprise an object. For example, a tank, in + * example tank, is comprised a set of graphics that is represented as a + * sprite. + */ +struct _mb_sprite { + void (*free)(struct _mb_sprite *); + mb_obj_t *(*get_obj_with_name)(const char *id); +}; + #endif /* __MB_TYPES_H_ */