comparison src/animate.c @ 129:ba581d8a4b9b

Now, tank1 can be controlled by user with keyboard
author Thinker K.F. Li <thinker@branda.to>
date Tue, 16 Sep 2008 17:35:04 +0800
parents 07dc9ec71221
children 6a8588df68af
comparison
equal deleted inserted replaced
128:07dc9ec71221 129:ba581d8a4b9b
233 static void mb_progm_step(const mb_timeval_t *tmo, 233 static void mb_progm_step(const mb_timeval_t *tmo,
234 const mb_timeval_t *now, 234 const mb_timeval_t *now,
235 void *arg) { 235 void *arg) {
236 mb_progm_t *progm = (mb_progm_t *)arg; 236 mb_progm_t *progm = (mb_progm_t *)arg;
237 #ifndef UNITTEST 237 #ifndef UNITTEST
238 /*! \todo Leverage aspective programming to prevent problem of unittest.
239 */
238 ob_factory_t *factory; 240 ob_factory_t *factory;
239 mb_progm_complete_t comp_evt; 241 mb_progm_complete_t comp_evt;
240 #endif /* UNITTEST */ 242 #endif /* UNITTEST */
241 mb_timeval_t next_tmo; 243 mb_timeval_t next_tmo;
242 mb_word_t *word; 244 mb_word_t *word;