Mercurial > hg > Members > koba > t_dandy
view spe/chara_state3.cc @ 69:1c57e38fb9b5
fix xml files ( model /c_xyz )
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 22 May 2011 10:19:58 +0900 |
parents | c330ded6d728 |
children | f4140672ef9f |
line wrap: on
line source
#include "chara_state3.h" #include "tobject.h" SchedDefineTask(STATE3); static int run(SchedTask *smanager, void *rbuf, void *wbuf) { CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); p->x += p->vx; p->y += p->vy; if((p->dt1 == 60) || (p->dt1 == 90) || (p->dt1 == 30)) { Puttama(0, p->x, p->y); } p->dt1++; p->task = STATE3; smanager->swap(); return 0; }