forked from vishusmartishus/CS330
/
SceneWindow.h
executable file
·44 lines (33 loc) · 1 KB
/
SceneWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef __SCENEWINDOW_H__
#define __SCENEWINDOW_H__
//----------------------------------------------------------------------
class SceneWindow {
public:
SceneWindow(int argc, char **argv);
// static callbacks
static void displayFunc();
static void keyboardFunc(unsigned char key, int x, int y);
static void keyboardUpFunc(unsigned char key, int x, int y);
static void timerFunc(int value);
// non-static callbacks
void displayCB();
void keyboardCB(unsigned char key, int x, int y);
void keyboardUpCB(unsigned char key, int x, int y);
void timerCB(int value);
void startGame();
void loadLevel();
void mainLoop();
private:
//Drawable position_[];
// whole level size
int width_, height_;
// viewport size
int viewportWidth_, viewportHeight_;
int viewportLeftX_, viewportRightX_;
bool pause_;
bool start_;
bool deadups_;
int deathPosY_;
};
//----------------------------------------------------------------------
#endif