comparison spe/chara_state20.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_state20.h"
2 #include "tobject.h"
3
4 SchedDefineTask(STATE20);
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->x += p->vx;
12 p->y += p->vy;
13 p->vy -= 0.5;
14 p->vy += 0.4;
15 return 0;
16 }