Mercurial > MadButterfly
comparison src/shift.c @ 117:e4e47d2cdbcd
Tank
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 14 Sep 2008 18:51:16 +0800 |
parents | 1d74eb3861b7 |
children | 6ce68c1f7405 |
comparison
equal
deleted
inserted
replaced
116:1d74eb3861b7 | 117:e4e47d2cdbcd |
---|---|
11 ratio /= (float)MB_TIMEVAL_SEC(b) * 1000000.0 + (float)MB_TIMEVAL_USEC(b); | 11 ratio /= (float)MB_TIMEVAL_SEC(b) * 1000000.0 + (float)MB_TIMEVAL_USEC(b); |
12 return ratio; | 12 return ratio; |
13 } | 13 } |
14 | 14 |
15 typedef struct _mb_shift mb_shift_t; | 15 typedef struct _mb_shift mb_shift_t; |
16 /*! \brief Animation action for shift a coordination. */ | 16 /*! \brief Animation action for relative shift a coordination. */ |
17 struct _mb_shift { | 17 struct _mb_shift { |
18 mb_action_t action; | 18 mb_action_t action; |
19 | 19 |
20 co_aix x, y; | 20 co_aix x, y; |
21 coord_t *coord; | 21 coord_t *coord; |
93 | 93 |
94 mb_word_add_action(word, (mb_action_t *)shift); | 94 mb_word_add_action(word, (mb_action_t *)shift); |
95 | 95 |
96 return (mb_action_t *)shift; | 96 return (mb_action_t *)shift; |
97 } | 97 } |
98 | |
99 |