comparison Renderer/Test/boss1_action.h @ 653:7a311860a76e draft

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 764772be1e3c
children 91e2c96be77b
comparison
equal deleted inserted replaced
646:9f9390b45f78 653:7a311860a76e
8 8
9 9
10 class boss1_action : public Application { 10 class boss1_action : public Application {
11 11
12 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h); 12 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
13 13 MainLoopPtr init_only_sg(SgChange *viewer, int screen_w, int screen_h);
14 }; 14 };
15 15
16 static const float player_speed = 10.0f; 16 static const float player_speed = 10.0f;
17 static const float player_radius = 42.0f; 17 static const float player_radius = 42.0f;
18 18
30 static void 30 static void
31 null_move(SceneGraphPtr node, int screen_w, int screen_h); 31 null_move(SceneGraphPtr node, int screen_w, int screen_h);
32 */ 32 */
33 33
34 static void 34 static void
35 null_collision(SceneGraphPtr node, int screen_w, int screen_h, 35 null_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,
36 SceneGraphPtr tree); 36 SceneGraphPtr tree);
37 37
38 static void 38 static void
39 boss1_move_right(SceneGraphPtr node, int screen_w, int screen_h); 39 boss1_move_right(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
40 40
41 static void 41 static void
42 boss1_move_left(SceneGraphPtr node, int screen_w, int screen_h); 42 boss1_move_left(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
43 43
44 /* 44 /*
45 static void 45 static void
46 boss1_move_return(SceneGraphPtr node, int screen_w, int screen_h); 46 boss1_move_return(SceneGraphPtr node, int screen_w, int screen_h);
47 */ 47 */
50 static void 50 static void
51 boss1_first_move(SceneGraphPtr node, int screen_w, int screen_h); 51 boss1_first_move(SceneGraphPtr node, int screen_w, int screen_h);
52 */ 52 */
53 53
54 static void 54 static void
55 player_move(SceneGraphPtr node,int screen_2, int screen_h); 55 player_move(SceneGraphPtr node, void *sgroot_, int screen_2, int screen_h);
56 56
57 /* 57 /*
58 static void 58 static void
59 player_move_left(SceneGraphPtr node,int screen_2, int screen_h); 59 player_move_left(SceneGraphPtr node,int screen_2, int screen_h);
60 */ 60 */
61 61
62 static void 62 static void
63 player_collision(SceneGraphPtr node, int screen_w, int screen_h, 63 player_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,
64 SceneGraphPtr tree); 64 SceneGraphPtr tree);
65 static void 65 static void
66 shot_move(SceneGraphPtr node, int screen_w, int screen_h); 66 shot_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
67 67
68 static void 68 static void
69 shot_collision(SceneGraphPtr node, int screen_2, int screen_h, 69 shot_collision(SceneGraphPtr node, void *sgroot_, int screen_2, int screen_h,
70 SceneGraphPtr tree); 70 SceneGraphPtr tree);
71 static void 71 static void
72 blast_move(SceneGraphPtr node, int screen_w, int screen_h); 72 blast_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
73 73
74 #endif 74 #endif