Mercurial > hg > Members > koba > t_dandy
comparison 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 |
comparison
equal
deleted
inserted
replaced
17:927401604461 | 18:c330ded6d728 |
---|---|
1 #include "chara_state400.h" | |
2 #include "tobject.h" | |
3 | |
4 SchedDefineTask(STATE400); | |
5 | |
6 static int | |
7 run(SchedTask *smanager, void *rbuf, void *wbuf) | |
8 { | |
9 CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); | |
10 | |
11 p->vy++; | |
12 p->y += p->vy / 4; | |
13 p->task = STATE400; | |
14 return 0; | |
15 } |