# HG changeset patch # User Thinker K.F. Li # Date 1228892241 -28800 # Node ID e01acb80f0e72e5b2e01ca23fdc72ddd3bc9b81a # Parent fd3e311e7e5d166cc71e35b579d2e09ea097427b Define mb_sprite_t diff -r fd3e311e7e5d -r e01acb80f0e7 include/mb_types.h --- 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_ */