diff Renderer/Test/boss1_action.h @ 656:d0b8860c17f8

remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
author hiroki@henri.cr.ie.u-ryukyu.ac.jp
date Wed, 25 Nov 2009 21:56:14 +0900
parents ec72b601b71f
children 4dc02d3e98bb
line wrap: on
line diff
--- a/Renderer/Test/boss1_action.h	Sat Nov 21 11:20:29 2009 +0900
+++ b/Renderer/Test/boss1_action.h	Wed Nov 25 21:56:14 2009 +0900
@@ -10,7 +10,7 @@
 class boss1_action : public Application {
 
     MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
-
+    MainLoopPtr init_only_sg(SgChange *viewer, int screen_w, int screen_h);
 };
 
 static const float player_speed = 10.0f;
@@ -32,14 +32,14 @@
 */
 
 static void
-null_collision(SceneGraphPtr node, int screen_w, int screen_h,
+null_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,
 		SceneGraphPtr tree);
 
 static void
-boss1_move_right(SceneGraphPtr node, int screen_w, int screen_h);
+boss1_move_right(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
 
 static void
-boss1_move_left(SceneGraphPtr node, int screen_w, int screen_h);
+boss1_move_left(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
 
 /*
 static void
@@ -52,7 +52,7 @@
 */
 
 static void
-player_move(SceneGraphPtr node,int screen_2, int screen_h);
+player_move(SceneGraphPtr node, void *sgroot_, int screen_2, int screen_h);
 
 /*
 static void
@@ -60,15 +60,15 @@
 */
 
 static void
-player_collision(SceneGraphPtr node, int screen_w, int screen_h,
+player_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,
 		SceneGraphPtr tree);
 static void
-shot_move(SceneGraphPtr node, int screen_w, int screen_h);
+shot_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
 
 static void
-shot_collision(SceneGraphPtr node, int screen_2, int screen_h,
+shot_collision(SceneGraphPtr node, void *sgroot_, int screen_2, int screen_h,
 	       SceneGraphPtr tree);
 static void
-blast_move(SceneGraphPtr node, int screen_w, int screen_h);
+blast_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
 
 #endif