Mercurial > hg > Members > koba > t_dandy
view spe/chara_state400.cc @ 18:c330ded6d728
add task file.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Dec 2010 22:18:11 +0900 |
parents | |
children | f4140672ef9f |
line wrap: on
line source
#include "chara_state400.h" #include "tobject.h" SchedDefineTask(STATE400); static int run(SchedTask *smanager, void *rbuf, void *wbuf) { CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); p->vy++; p->y += p->vy / 4; p->task = STATE400; return 0; }