#include <DLevel.h>
Inheritance diagram for DLevel:
This Object controls the data for a complete level. It creates and holds references to other 3D-objects in a level.
Public Member Functions | |
DLevel (DSystem *system) | |
Constructor; Initializes the level with keyboard-handler and texture-object. | |
~DLevel (void) | |
Destructor; removes level-data from memory. | |
void | Init (void) |
Initializes some about level-data. | |
void | MoveFighter (void) |
Move the fighter (avoid collisions). | |
DLevelSegment * | NewLevelSegment (DLevelSegment *currentSegment, float x, float y, float z) |
bool | LoadLevel (char *levelName) |
Loads a new level from disk. | |
void | GameLoop (void) |
Does one Loop in the game. | |
void | Draw (void) |
Draws the current scene. | |
void | DrawBackground (void) |
Draws the background of the scene. | |
void | DrawTransparentObjects (void) |
Draws the transparent objects of the scene. | |
void | DrawLevelOver (void) |
Draws the level-over sequence. | |
void | DrawWireFrame (void) |
Draws the current scene in Wire-Frame mode. | |
void | DrawBackgroundWireFrame (void) |
Draws the background of the scene in Wire-Frame mode. | |
void | DrawLevelOverWireFrame (void) |
Draws the level-over sequence in Wire-Frame mode. | |
void | DrawWrongCourse (void) |
Draws the alert because of wrong course. | |
void | DrawGameOver (void) |
Draws the game-over foreground. | |
void | CollisionDetection (void) |
Handles the collision detection. |
|
Constructor; Initializes the level with keyboard-handler and texture-object. The constructor of a level takes one parameter - the system object |
|
Destructor; removes level-data from memory. The Destructor of a level takes no parameters and frees all used memory and removes all no longer needed textures. |
|
Handles the collision detection. Does collision detection based on bounding spheres |
|
Draws the game-over foreground. TODO |
|
Draws the level-over sequence. TODO |
|
Draws the level-over sequence in Wire-Frame mode. TODO |
|
Draws the current scene in Wire-Frame mode. TODO |
|
Draws the alert because of wrong course. TODO |
|
Does one Loop in the game. TODO |
|
Initializes some about level-data. TODO |
|
Loads a new level from disk. TODO |
|
Move the fighter (avoid collisions). TODO |
|
TODO |