annotate TaskManager/Test/test_render/Application/back_action.cc @ 431:b40a9b901d71 draft

fix
author game@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 24 Sep 2009 20:43:14 +0900
parents 2c592936bbdf
children 8d86242337ba
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
323
a65430fb7790 add gaplant
aaa
parents:
diff changeset
1 #include <iostream>
a65430fb7790 add gaplant
aaa
parents:
diff changeset
2 #include "SceneGraphRoot.h"
a65430fb7790 add gaplant
aaa
parents:
diff changeset
3 #include "SGList.h"
a65430fb7790 add gaplant
aaa
parents:
diff changeset
4 #include "ball_action.h"
a65430fb7790 add gaplant
aaa
parents:
diff changeset
5 using namespace std;
a65430fb7790 add gaplant
aaa
parents:
diff changeset
6
a65430fb7790 add gaplant
aaa
parents:
diff changeset
7 void
a65430fb7790 add gaplant
aaa
parents:
diff changeset
8 back_move(SceneGraphPtr node, int w, int h)
a65430fb7790 add gaplant
aaa
parents:
diff changeset
9 {
a65430fb7790 add gaplant
aaa
parents:
diff changeset
10 Pad *pad = sgroot->getController();
a65430fb7790 add gaplant
aaa
parents:
diff changeset
11
a65430fb7790 add gaplant
aaa
parents:
diff changeset
12 if (pad->triangle.isPush()) {
a65430fb7790 add gaplant
aaa
parents:
diff changeset
13 SceneGraphPtr ball = sgroot->createSceneGraph(Ball);
a65430fb7790 add gaplant
aaa
parents:
diff changeset
14 ball->xyz[0] = -100;
a65430fb7790 add gaplant
aaa
parents:
diff changeset
15 ball->set_move_collision(ball_move, ball_coll);
a65430fb7790 add gaplant
aaa
parents:
diff changeset
16 node->addChild(ball);
a65430fb7790 add gaplant
aaa
parents:
diff changeset
17 }
a65430fb7790 add gaplant
aaa
parents:
diff changeset
18 }
a65430fb7790 add gaplant
aaa
parents:
diff changeset
19
a65430fb7790 add gaplant
aaa
parents:
diff changeset
20 void
a65430fb7790 add gaplant
aaa
parents:
diff changeset
21 back_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree)
a65430fb7790 add gaplant
aaa
parents:
diff changeset
22 {
a65430fb7790 add gaplant
aaa
parents:
diff changeset
23
a65430fb7790 add gaplant
aaa
parents:
diff changeset
24 }