annotate ppe/chara_state0.cc @ 66:f27a6af6514c
SchedRegister, game_task.h etc...
author |
tkaito |
date |
Thu, 17 Feb 2011 10:56:56 +0900 |
parents |
978097c6427a |
children |
|
rev |
line source |
21
|
1 #include "task_base.h"
|
20
|
2 #include "task_object.h"
|
|
3
|
33
|
4 SchedDefineTask1(State0, state0);
|
20
|
5
|
|
6 static int
|
33
|
7 state0(SchedTask *smanager, void *rbuf, void *wbuf)
|
20
|
8 {
|
|
9 CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0);
|
|
10
|
|
11 p->x += p->vx;
|
|
12 p->y += p->vy;
|
|
13
|
66
|
14 p->state_task = State0;
|
20
|
15 smanager->swap();
|
|
16 return 0;
|
|
17 }
|