comparison include/mb_animate.h @ 192:54fdc2a65242

Remove factory from observer APIs. - Save factory that used to new a subject as subject's attribute. - Get factory from subject himself instead of passing as an argument. - It make API of observer more simple and clean.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 18 Nov 2008 21:42:30 +0800
parents 530bb7728546
children 45d9a1e2764d
comparison
equal deleted inserted replaced
191:18f8c3126cdb 192:54fdc2a65242
42 const mb_timeval_t *playing); 42 const mb_timeval_t *playing);
43 extern void mb_progm_start(mb_progm_t *progm, mb_tman_t *tman, 43 extern void mb_progm_start(mb_progm_t *progm, mb_tman_t *tman,
44 mb_timeval_t *now); 44 mb_timeval_t *now);
45 extern void mb_progm_abort(mb_progm_t *progm); 45 extern void mb_progm_abort(mb_progm_t *progm);
46 extern subject_t *mb_progm_get_complete(mb_progm_t *progm); 46 extern subject_t *mb_progm_get_complete(mb_progm_t *progm);
47 extern void mb_progm_free_completed(mb_progm_t *progm);
47 48
48 /*! \defgroup ani_actions Animation Actions 49 /*! \defgroup ani_actions Animation Actions
49 * @{ 50 * @{
50 */ 51 */
51 extern mb_action_t *mb_shift_new(co_aix x, co_aix y, coord_t *coord, 52 extern mb_action_t *mb_shift_new(co_aix x, co_aix y, coord_t *coord,