# HG changeset patch # User tkaito # Date 1281258510 -32400 # Node ID bd714b077534876e20ad067ee495b005c74acb72 # Parent 813485a28b6fb059f9140f459cdf7228db27da3e ppe/Move0~ delete. diff -r 813485a28b6f -r bd714b077534 ppe/Move00.cc --- a/ppe/Move00.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -#include -#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; -} diff -r 813485a28b6f -r bd714b077534 ppe/Move00.h --- a/ppe/Move00.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -typedef struct { - double x, y; - double vx, vy; - const char *chara; - int vital; - int score; - int remove; - void *parent; - void *root; - -} *ObjPropertyPtr, ObjProperty; - - -#endif diff -r 813485a28b6f -r bd714b077534 ppe/Move01.cc --- a/ppe/Move01.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include -#include "SchedTask.h" -#include "Move01.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move01); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -} diff -r 813485a28b6f -r bd714b077534 ppe/Move01.h --- a/ppe/Move01.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif diff -r 813485a28b6f -r bd714b077534 ppe/Move02.cc --- a/ppe/Move02.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include -#include "SchedTask.h" -#include "Move02.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move02); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -} diff -r 813485a28b6f -r bd714b077534 ppe/Move02.h --- a/ppe/Move02.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif diff -r 813485a28b6f -r bd714b077534 ppe/Move03.cc --- a/ppe/Move03.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include -#include "SchedTask.h" -#include "Move03.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move03); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -} diff -r 813485a28b6f -r bd714b077534 ppe/Move03.h --- a/ppe/Move03.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif diff -r 813485a28b6f -r bd714b077534 ppe/Move04.cc --- a/ppe/Move04.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include -#include "SchedTask.h" -#include "Move04.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move04); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -} diff -r 813485a28b6f -r bd714b077534 ppe/Move04.h --- a/ppe/Move04.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif diff -r 813485a28b6f -r bd714b077534 ppe/Move05.cc --- a/ppe/Move05.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include -#include "SchedTask.h" -#include "Move05.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move05); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -} diff -r 813485a28b6f -r bd714b077534 ppe/Move05.h --- a/ppe/Move05.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif diff -r 813485a28b6f -r bd714b077534 ppe/Move06.cc --- a/ppe/Move06.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include -#include "SchedTask.h" -#include "Move06.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move06); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -} diff -r 813485a28b6f -r bd714b077534 ppe/Move06.h --- a/ppe/Move06.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif diff -r 813485a28b6f -r bd714b077534 ppe/Move07.cc --- a/ppe/Move07.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include -#include "SchedTask.h" -#include "Move07.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move07); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -} diff -r 813485a28b6f -r bd714b077534 ppe/Move07.h --- a/ppe/Move07.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif diff -r 813485a28b6f -r bd714b077534 ppe/Move08.cc --- a/ppe/Move08.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include -#include "SchedTask.h" -#include "Move08.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move08); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -} diff -r 813485a28b6f -r bd714b077534 ppe/Move08.h --- a/ppe/Move08.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif