view Renderer/Test/vacuum.h @ 557:ec72b601b71f

fix examlples (on going)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 22 Oct 2009 17:34:12 +0900
parents f6daf964f483
children b21a013051a2
line wrap: on
line source

#ifndef VACUUM_H
#define VACUUM_H

#include <math.h>
#include <stdlib.h>
#include "SceneGraphRoot.h"
#include "Application.h"
#include "MainLoop.h"

class vacuum : public Application {

    MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);

};


static void cube_move_left(SceneGraphPtr node, int screen_w, int screen_h);
static void cube_move_right(SceneGraphPtr node, int screen_w, int screen_h);
static void no_move_idle(SceneGraphPtr node, int screen_w, int screen_h);
static void cube_collision_idle(SceneGraphPtr node, int screen_w, int screen_h,SceneGraphPtr tree);
static void cube_collision(SceneGraphPtr node, int screen_w, int screen_h,SceneGraphPtr tree);
static void cube_split(SceneGraphPtr root,SceneGraphPtr tree);
static void vacuum_move(SceneGraphPtr node, int w, int h);
static void vacuum_coll(SceneGraphPtr node, int w, int h,SceneGraphPtr tree);
static void title_idle(SceneGraphPtr node, int screen_w, int screen_h);
static void title_collision(SceneGraphPtr node, int screen_w, int screen_h,SceneGraphPtr tree);
static void scene_change(int w,int h,SceneGraphPtr node);
static void gameover_idle(SceneGraphPtr node, int screen_w, int screen_h);
static void gameover_collision(SceneGraphPtr node, int screen_w, int screen_h,SceneGraphPtr tree);
static void collision_red(SceneGraphIteratorPtr it,SceneGraphPtr node);
static void collision_purple(SceneGraphIteratorPtr it,SceneGraphPtr node,int w,int h);
static void gameover_scene(int w,int h, SceneGraphPtr node);
static void add_cubecollision_object(int id,SceneGraphPtr root,int w,int h);
static void lock_attack(SceneGraphPtr node,SceneGraphIteratorPtr it);
static void lockon_collision(SceneGraphPtr node,int w,int h,SceneGraphPtr tree);
static void cube_rotate(SceneGraphPtr node,int w,int h);

#endif