Mercurial > hg > Members > koba > t_dandy
view ppe/chara_state2.cc @ 57:978097c6427a
bug fix.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 29 Jan 2011 22:43:17 +0900 |
parents | 39e643fc4f90 |
children | f27a6af6514c |
line wrap: on
line source
#include "task_base.h" #include "task_object.h" SchedDefineTask1(State2, state2); static int state2(SchedTask *smanager, void *rbuf, void *wbuf) { CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); p->vy -= 0.25; p->y += p->vy; p->state_task = STATE2; smanager->swap(); return 0; }