annotate ppe/TitleMove.cc @ 18:2c188b2becec

task_dandy test ver
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Mon, 09 Aug 2010 01:22:53 +0900
parents e95c5c280f47
children 632ce41a842a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
1 #include <stdio.h>
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
2 #include "SchedTask.h"
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
3 #include "TitleMove.h"
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
4 #include "Func.h"
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
5
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
6 /* これは必須 */
6
661ec1e92042 set_game_task move to API(SceneGrapRoot).
tkaito
parents: 4
diff changeset
7 SchedDefineTask1(TitleMove, titlemove);
1
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
8
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
9 static int
6
661ec1e92042 set_game_task move to API(SceneGrapRoot).
tkaito
parents: 4
diff changeset
10 titlemove(SchedTask *s,void *rbuf, void *wbuf)
1
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
11 {
4
ccc811ee5f55 property add.
tkaito
parents: 1
diff changeset
12 ObjPropertyPtr i_obj;
ccc811ee5f55 property add.
tkaito
parents: 1
diff changeset
13 ObjPropertyPtr o_obj;
ccc811ee5f55 property add.
tkaito
parents: 1
diff changeset
14
ccc811ee5f55 property add.
tkaito
parents: 1
diff changeset
15 i_obj = (ObjPropertyPtr)s->get_input(rbuf, 0);
ccc811ee5f55 property add.
tkaito
parents: 1
diff changeset
16 o_obj = (ObjPropertyPtr)s->get_output(wbuf, 0);
14
e95c5c280f47 task_dandy test version.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 6
diff changeset
17
e95c5c280f47 task_dandy test version.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 6
diff changeset
18 i_obj[0].x += i_obj[0].vx;
18
2c188b2becec task_dandy test ver
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 14
diff changeset
19 i_obj[0].y += i_obj[0].vy;
4
ccc811ee5f55 property add.
tkaito
parents: 1
diff changeset
20
18
2c188b2becec task_dandy test ver
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 14
diff changeset
21 // printf("indata_x = %f\n", i_obj[0].x);
2c188b2becec task_dandy test ver
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 14
diff changeset
22 // printf("indata_y = %f\n", i_obj[0].y);
14
e95c5c280f47 task_dandy test version.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 6
diff changeset
23
e95c5c280f47 task_dandy test version.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 6
diff changeset
24 s->swap();
4
ccc811ee5f55 property add.
tkaito
parents: 1
diff changeset
25
1
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
26 return 0;
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
27 }