Mercurial > hg > Game > Cerium
annotate Renderer/Test/vacuum.h @ 557:764772be1e3c draft
fix examlples (on going)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2009 17:34:12 +0900 |
parents | 4c5264373c51 |
children | 338ad9c856fc |
rev | line source |
---|---|
539 | 1 #ifndef VACUUM_H |
2 #define VACUUM_H | |
3 | |
557
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
4 #include <math.h> |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
5 #include <stdlib.h> |
539 | 6 #include "SceneGraphRoot.h" |
557
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
7 #include "Application.h" |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
8 #include "MainLoop.h" |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
9 |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
10 class vacuum : public Application { |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
11 |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
12 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
13 |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
14 }; |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
15 |
539 | 16 |
557
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
17 static void cube_move_left(SceneGraphPtr node, int screen_w, int screen_h); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
18 static void cube_move_right(SceneGraphPtr node, int screen_w, int screen_h); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
19 static void no_move_idle(SceneGraphPtr node, int screen_w, int screen_h); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
20 static void cube_collision_idle(SceneGraphPtr node, int screen_w, int screen_h,SceneGraphPtr tree); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
21 static void cube_collision(SceneGraphPtr node, int screen_w, int screen_h,SceneGraphPtr tree); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
22 static void cube_split(SceneGraphPtr root,SceneGraphPtr tree); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
23 static void vacuum_move(SceneGraphPtr node, int w, int h); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
24 static void vacuum_coll(SceneGraphPtr node, int w, int h,SceneGraphPtr tree); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
25 static void title_idle(SceneGraphPtr node, int screen_w, int screen_h); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
26 static void title_collision(SceneGraphPtr node, int screen_w, int screen_h,SceneGraphPtr tree); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
27 static void scene_change(int w,int h,SceneGraphPtr node); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
28 static void gameover_idle(SceneGraphPtr node, int screen_w, int screen_h); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
29 static void gameover_collision(SceneGraphPtr node, int screen_w, int screen_h,SceneGraphPtr tree); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
30 static void collision_red(SceneGraphIteratorPtr it,SceneGraphPtr node); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
31 static void collision_purple(SceneGraphIteratorPtr it,SceneGraphPtr node,int w,int h); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
32 static void gameover_scene(int w,int h, SceneGraphPtr node); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
33 static void add_cubecollision_object(int id,SceneGraphPtr root,int w,int h); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
34 static void lock_attack(SceneGraphPtr node,SceneGraphIteratorPtr it); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
35 static void lockon_collision(SceneGraphPtr node,int w,int h,SceneGraphPtr tree); |
764772be1e3c
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
36 static void cube_rotate(SceneGraphPtr node,int w,int h); |
539 | 37 |
38 #endif |