comparison ppe/chara_state1.cc @ 33:39e643fc4f90

moving stage1.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Wed, 05 Jan 2011 14:41:26 +0900
parents 5f1abbe03b9a
children 978097c6427a
comparison
equal deleted inserted replaced
32:1b161e808240 33:39e643fc4f90
1 #include "task_base.h" 1 #include "task_base.h"
2 #include "task_object.h" 2 #include "task_object.h"
3 3
4 SchedDefineTask(State1); 4 SchedDefineTask1(State1, state1);
5 5
6 static int 6 static int
7 run(SchedTask *smanager, void *rbuf, void *wbuf) 7 state1(SchedTask *smanager, void *rbuf, void *wbuf)
8 { 8 {
9 CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); 9 CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0);
10 10
11 p->x -= p->vx; 11 p->x -= p->vx;
12 p->y -= p->vy; 12 p->y -= p->vy;