Krig Game Engine
Loading...
Searching...
No Matches
GameLevel Class Reference

Public Member Functions

 GameLevel (const unsigned int &lists)
void updateLevel ()
void animateLevel ()
void prepareLevel ()
void drawLevel ()
bool loadLevel (const char *file)
bool loadLevelFromBuffer (const char *buffer)
void loadScript (const std::string &script)
ObjectfindEnemyOfType (const int &typeId)
float findDistance (Object *a, Object *b)
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 &elapsed)
ObjectaddObject (const std::string &script, lua_State *L, const unsigned int &typeId)
ObjectListgetObjects ()
TerraingetTerrain ()
CameragetCamera ()
ModelGameObjectgetPlayer ()
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: