Mercurial > hg > Members > koba > t_dandy
view 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 |
line wrap: on
line source
#include "task_base.h" #include "task_object.h" SchedDefineTask1(State0, state0); static int state0(SchedTask *smanager, void *rbuf, void *wbuf) { CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); p->x += p->vx; p->y += p->vy; p->state_task = State0; smanager->swap(); return 0; }