Mercurial > hg > Members > koba > t_dandy
view ppe/chara_state2.cc @ 21:5f1abbe03b9a
add new task.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 26 Dec 2010 22:28:18 +0900 |
parents | 6487f54ba3d1 |
children | 39e643fc4f90 |
line wrap: on
line source
#include "task_base.h" #include "task_object.h" SchedDefineTask(State2); static int run(SchedTask *smanager, void *rbuf, void *wbuf) { CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); p->vy -= 0.25; p->y += p->vy; p->task = STATE2; smanager->swap(); return 0; }