Krig Game Engine
Public Member Functions | List of all members
GameLevel Class Reference

Public Member Functions

 GameLevel (const unsigned int &)
 
void updateLevel ()
 
void animateLevel ()
 
void prepareLevel ()
 
void drawLevel ()
 
bool loadLevel (const char *)
 
bool loadLevelFromBuffer (const char *)
 
void loadScript (const std::string &)
 
ObjectfindEnemyOfType (const int &)
 
float findDistance (Object *, Object *)
 
void drawSky ()
 
bool checkComplete ()
 
void unloadLevel ()
 
void removeObjects ()
 
void postDraw ()
 
void updateTerrain (int &x, int &z, float &height, int &type, float &red, float &green, float &blue)
 
void updateColor (int &x, int &z, float &red, float &green, float &blue)
 
void getTerrainInfo (int &x, int &z, float &height, int &type, float &red, float &green, float &blue)
 
void saveTerrain (const char *)
 
void toggleGrid ()
 
void toggleBoundingBoxes ()
 
void toggleControlTriangles ()
 
void drawObjects ()
 
void drawObjectOutlines ()
 
void drawShadows (Vector *)
 
void updateObjects (Vector *)
 
void prepareObjects ()
 
void animateObjects (const float &)
 
ObjectaddObject (const std::string &, lua_State *, const unsigned int &)
 
ObjectListgetObjects ()
 
TerraingetTerrain ()
 
CameragetCamera ()
 
ModelGameObject * getPlayer ()
 
MusicgetMusic ()
 
void setCamera (Camera *camera)
 
void setId (const int &id)
 
int getId ()
 
float getElapsedTime ()
 
void setElapsedTime (const float &elapsedTime)
 
void setComplete (const bool &isComplete)
 
std::string getMusicPath ()
 
void setMusicPath (const std::string &musicPath)
 
VectorgetLightDirection ()
 
void setSkyBox (float[][3], const int &, const int &)
 
void setLightDirection (const float &x, const float &y, const float &z)
 
ObjectgetObjectFromId (const int &id)
 

The documentation for this class was generated from the following files: