0
|
1 #ifndef VACUUM_H
|
|
2 #define VACUUM_H
|
|
3
|
|
4 #include <math.h>
|
|
5 #include <stdlib.h>
|
|
6 #include "SceneGraphRoot.h"
|
|
7 #include "Application.h"
|
|
8 #include "MainLoop.h"
|
|
9
|
|
10 class vacuum : public Application {
|
|
11
|
|
12 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
|
|
13 };
|
|
14
|
|
15
|
|
16 extern void cube_move_left(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
|
|
17 extern void cube_move_right(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
|
|
18 extern void no_move_idle(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
|
|
19 extern void cube_collision_idle(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,SceneGraphPtr tree);
|
|
20 extern void cube_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,SceneGraphPtr tree);
|
|
21 extern void cube_split(SceneGraphPtr root,SceneGraphPtr tree, SceneGraphRoot *sgroot);
|
|
22 extern void vacuum_move(SceneGraphPtr node, void *sgroot_, int w, int h);
|
|
23 extern void vacuum_coll(SceneGraphPtr node, void *sgroot_, int w, int h,SceneGraphPtr tree);
|
|
24 extern void title_idle(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
|
|
25 extern void title_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,SceneGraphPtr tree);
|
|
26 extern void scene_change(int w,int h,SceneGraphPtr node);
|
|
27 extern void gameover_idle(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
|
|
28 extern void gameover_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,SceneGraphPtr tree);
|
|
29 extern void collision_red(SceneGraphIteratorPtr it,SceneGraphPtr node);
|
|
30 extern void collision_purple(SceneGraphIteratorPtr it,SceneGraphPtr node,int w,int h, SceneGraphRoot *sgroot);
|
|
31 extern void gameover_scene(int w,int h, SceneGraphPtr node, SceneGraphRoot *sgroot);
|
|
32 extern void add_cubecollision_object(int id,SceneGraphPtr root,int w,int h, SceneGraphRoot *sgroot);
|
|
33 extern void lock_attack(SceneGraphPtr node, SceneGraphIteratorPtr it, SceneGraphRoot *sgroot);
|
|
34 extern void lockon_collision(SceneGraphPtr node, void *sgroot_, int w,int h,SceneGraphPtr tree);
|
|
35 extern void cube_rotate(SceneGraphPtr node,int w,int h);
|
|
36
|
|
37 #endif
|