Mercurial > hg > Members > kono > Cerium
annotate 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 |
rev | line source |
---|---|
507 | 1 #ifndef BOSS1_ACCTION_H |
2 #define BOSS1_ACCTION_H | |
3 | |
4 #include <math.h> | |
5 #include "SceneGraphRoot.h" | |
557
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
6 #include "Application.h" |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
7 #include "MainLoop.h" |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
8 |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
9 |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
10 class boss1_action : public Application { |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
11 |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
12 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h); |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
13 MainLoopPtr init_only_sg(SgChange *viewer, int screen_w, int screen_h); |
557
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
14 }; |
507 | 15 |
16 static const float player_speed = 10.0f; | |
17 static const float player_radius = 42.0f; | |
18 | |
19 static const float boss_radius_x = 65.4f; | |
20 static const float boss_radius_y = 130.8f; | |
21 static const float first_boss1_speed = 10.0; | |
22 static const float first_boss1_depth = 500.0; | |
23 static const float return_boss1_depth_speed = 10.0; | |
24 | |
25 static const float shot_speed = 30.0f; | |
26 static const float shot_radius = 42.4f; | |
27 | |
28 | |
29 /* | |
30 static void | |
31 null_move(SceneGraphPtr node, int screen_w, int screen_h); | |
32 */ | |
33 | |
34 static void | |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
35 null_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, |
507 | 36 SceneGraphPtr tree); |
37 | |
38 static void | |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
39 boss1_move_right(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h); |
507 | 40 |
41 static void | |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
42 boss1_move_left(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h); |
507 | 43 |
44 /* | |
45 static void | |
46 boss1_move_return(SceneGraphPtr node, int screen_w, int screen_h); | |
47 */ | |
48 | |
49 /* | |
50 static void | |
51 boss1_first_move(SceneGraphPtr node, int screen_w, int screen_h); | |
52 */ | |
53 | |
54 static void | |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
55 player_move(SceneGraphPtr node, void *sgroot_, int screen_2, int screen_h); |
507 | 56 |
57 /* | |
58 static void | |
59 player_move_left(SceneGraphPtr node,int screen_2, int screen_h); | |
60 */ | |
61 | |
62 static void | |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
63 player_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, |
507 | 64 SceneGraphPtr tree); |
65 static void | |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
66 shot_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h); |
507 | 67 |
68 static void | |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
69 shot_collision(SceneGraphPtr node, void *sgroot_, int screen_2, int screen_h, |
507 | 70 SceneGraphPtr tree); |
71 static void | |
656
d0b8860c17f8
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
557
diff
changeset
|
72 blast_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h); |
507 | 73 |
74 #endif |