Main Page | Class Hierarchy | Compound List | File List | Compound Members

DLevel Class Reference

#include <DLevel.h>

Inheritance diagram for DLevel:

DObject List of all members.

Detailed Description

DLevel - deals with a level.

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).

DLevelSegmentNewLevelSegment (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 & Destructor Documentation

DLevel::DLevel DSystem system  ) 
 

Constructor; Initializes the level with keyboard-handler and texture-object.

The constructor of a level takes one parameter - the system object

DLevel::~DLevel void   ) 
 

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.


Member Function Documentation

void DLevel::CollisionDetection void   ) 
 

Handles the collision detection.

Does collision detection based on bounding spheres

void DLevel::DrawGameOver void   ) 
 

Draws the game-over foreground.

TODO

void DLevel::DrawLevelOver void   ) 
 

Draws the level-over sequence.

TODO

void DLevel::DrawLevelOverWireFrame void   ) 
 

Draws the level-over sequence in Wire-Frame mode.

TODO

void DLevel::DrawWireFrame void   ) 
 

Draws the current scene in Wire-Frame mode.

TODO

void DLevel::DrawWrongCourse void   ) 
 

Draws the alert because of wrong course.

TODO

void DLevel::GameLoop void   ) 
 

Does one Loop in the game.

TODO

void DLevel::Init void   ) 
 

Initializes some about level-data.

TODO

bool DLevel::LoadLevel char *  levelName  ) 
 

Loads a new level from disk.

TODO

void DLevel::MoveFighter void   ) 
 

Move the fighter (avoid collisions).

TODO

DLevelSegment * DLevel::NewLevelSegment DLevelSegment currentSegment,
float  x,
float  y,
float  z
 

TODO


The documentation for this class was generated from the following files:
Generated on Thu Jun 19 21:55:40 2003 for Debris by doxygen 1.3.2