Mercurial > hg > Members > tkaito > task_dandy
view ppe/Move00.cc @ 1:7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
author | tkaito |
---|---|
date | Tue, 15 Jun 2010 11:14:36 +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; }