14 #include "gametimer.h" 17 #include "TextGameObject.h" 20 #include "lua5.1/lua.h" 21 #include "lua5.1/lualib.h" 22 #include "lua5.1/lauxlib.h" 34 void processKeyUp(
const int&);
35 void processKeyDown(
const int&);
36 void processCommands();
37 void processNormalKeyUp(
const unsigned char&);
38 void processNormalKeyDown(
const unsigned char&);
40 KeyState* getKeyState() {
return &keyState_; }
41 KeyState* getSpecialKeyState() {
return &specialKeyState_; }
43 void processMouseMove(
const int&,
const int&);
44 float getMouseX() {
return mouseX_; }
45 float getMouseY() {
return mouseY_; }
47 void loadLevel(
const char*);
48 void loadLevelFromBuffer(
const char*);
50 bool loadGame(
const std::string&);
51 bool loadIntroCredits();
53 void updateGame(
const float&);
60 float getFps() {
return fps_; }
65 void renderText(
const char* s,
const float &x,
const float &y) {
67 TextGameObject::render_string(GLUT_BITMAP_HELVETICA_18, s);
70 SoundFX* getSoundFxClass() {
return &soundFx_; }
71 bool getIsRunning() {
return isRunning_; }
73 GameLevel* getCurrentLevel() {
return currentLevel_; }
77 currentLevel_ = storedLevel_;
81 bool loadPng(
const char*,
unsigned char**,
unsigned int*,
unsigned int*,
unsigned int*);
84 void getTerrainInfo(
int &x,
int &z,
float &height,
int &type,
float &red,
float &green,
float &blue);
85 void updateTerrain(
int &x,
int &z,
float &height,
int &type,
float &red,
float &green,
float &blue);
87 void updateColor(
float &red,
float &green,
float &blue);
89 void setMouseX(
float mouseX) { mouseX_ = mouseX; }
90 void setMouseY(
float mouseY) { mouseY_ = mouseY; }
95 Camera *mainCamera_, *c1_, *c2_, *c3_, *c4_;
96 KeyState keyState_, specialKeyState_;
103 lua_State* luaState_;
105 bool isRunning_, isIntroRunning_, isPaused_;
107 float mouseX_, mouseY_;
110 GLuint shaderTexture_[1];
113 void prepLevelLoad();
120 int last_x, last_z, last_type;
122 float last_red, last_green, last_blue;
123 bool paint, paintColor;
Representation of a game level or scene.
Definition: gametimer.h:16
Definition: GameLevel.h:30
Definition: KeyState.h:16
Lookup state of all keyboard keys.