Mercurial > hg > Members > tkaito > task_dandy
view spe/Move00.cc @ 7:c015109a6041
schedule add. 10% done.
author | tkaito |
---|---|
date | Tue, 29 Jun 2010 04:25:32 +0900 |
parents | |
children |
line wrap: on
line source
#include <stdio.h> #include "SchedTask.h" #include "Move00.h" #include "Func.h" /* これは必須 */ SchedDefineTask(Move00); static int run(SchedTask *s,void *rbuf, void *wbuf) { ObjPropertyPtr i_obj = (ObjPropertyPtr)s->get_input(rbuf, 0); ObjPropertyPtr o_obj = (ObjPropertyPtr)s->get_output(wbuf, 0); o_obj = i_obj; o_obj->x = i_obj->x + i_obj->vx; o_obj->y = i_obj->y + i_obj->vy; return 0; }