comparison include/mb_types.h @ 189:257af0ed5852

When a bullet hits a tank or wall, it shows a bang animation. * Bang is not removed after animation stop. * We want removing program and bang as animation actions.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 18 Nov 2008 09:04:40 +0800
parents 530bb7728546
children c234ee745ceb
comparison
equal deleted inserted replaced
188:a7358d9127c8 189:257af0ed5852
18 * 18 *
19 * Paints should be freed by users by calling rdman_paint_free() of 19 * Paints should be freed by users by calling rdman_paint_free() of
20 * the paint. 20 * the paint.
21 * 21 *
22 * \todo move member functions to a seperate structure and setup a 22 * \todo move member functions to a seperate structure and setup a
23 * singleton fro each paint type. 23 * singleton for each paint type.
24 */ 24 */
25 struct _paint { 25 struct _paint {
26 int flags; 26 int flags;
27 void (*prepare)(paint_t *paint, cairo_t *cr); 27 void (*prepare)(paint_t *paint, cairo_t *cr);
28 void (*free)(struct _redraw_man *rdman, paint_t *paint); 28 void (*free)(struct _redraw_man *rdman, paint_t *paint);
116 * of parent. */ 116 * of parent. */
117 117
118 int num_members; 118 int num_members;
119 STAILQ(geo_t) members; /*!< \brief All geo_t members in this coord. */ 119 STAILQ(geo_t) members; /*!< \brief All geo_t members in this coord. */
120 120
121 STAILQ(shape_t) shapes; /*!< \brief All shapes managed by the rdman. */
122
123 subject_t *mouse_event; 121 subject_t *mouse_event;
124 } coord_t; 122 } coord_t;
125 #define COF_DIRTY 0x1 123 #define COF_DIRTY 0x1
126 #define COF_HIDDEN 0x2 /*!< A coord is hidden. */ 124 #define COF_HIDDEN 0x2 /*!< A coord is hidden. */
127 #define COF_OWN_CANVAS 0x4 /*!< A coord owns a canvas or inherit it 125 #define COF_OWN_CANVAS 0x4 /*!< A coord owns a canvas or inherit it