Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Private Member Functions | Private Attributes | List of all members
orxonox::MazeGenerator Class Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/modules/hover/MazeGenerator.h>

Public Member Functions

 MazeGenerator (int numCells)
 
 ~MazeGenerator ()
 
void generateMaze ()
 Generates a Maze (for Maze-Generator) More...
 
int * getLevelcode () const
 
void levelOut ()
 Print levelcode_ (for Debugging only) More...
 
void mazeOut ()
 Print Maze (for Debugging only) More...
 
void renderMaze ()
 Generate levelcode_ from Maze. More...
 

Private Member Functions

int cellIdx ()
 
eDirection getDirection ()
 Generates new Direction (for Maze-Generator) More...
 
bool isDirValid (eDirection Dir)
 Checks if Direction is valid (for Maze-Generator) More...
 
int randomInt ()
 
int randomInt4 ()
 

Private Attributes

int headingX_ [9]
 
int headingY_ [9]
 
int * levelcode_
 
int mask_ [9]
 
unsigned char * maze_
 
int numCells_
 
int ptX_
 
int ptY_
 

Constructor & Destructor Documentation

orxonox::MazeGenerator::MazeGenerator ( int  numCells)
orxonox::MazeGenerator::~MazeGenerator ( )

Member Function Documentation

int orxonox::MazeGenerator::cellIdx ( )
private
void orxonox::MazeGenerator::generateMaze ( )

Generates a Maze (for Maze-Generator)

eDirection orxonox::MazeGenerator::getDirection ( )
private

Generates new Direction (for Maze-Generator)

int* orxonox::MazeGenerator::getLevelcode ( ) const
inline
bool orxonox::MazeGenerator::isDirValid ( eDirection  Dir)
private

Checks if Direction is valid (for Maze-Generator)

void orxonox::MazeGenerator::levelOut ( )

Print levelcode_ (for Debugging only)

void orxonox::MazeGenerator::mazeOut ( )

Print Maze (for Debugging only)

int orxonox::MazeGenerator::randomInt ( )
private
int orxonox::MazeGenerator::randomInt4 ( )
private
void orxonox::MazeGenerator::renderMaze ( )

Generate levelcode_ from Maze.

Member Data Documentation

int orxonox::MazeGenerator::headingX_[9]
private
int orxonox::MazeGenerator::headingY_[9]
private
int* orxonox::MazeGenerator::levelcode_
private
int orxonox::MazeGenerator::mask_[9]
private
unsigned char* orxonox::MazeGenerator::maze_
private
int orxonox::MazeGenerator::numCells_
private
int orxonox::MazeGenerator::ptX_
private
int orxonox::MazeGenerator::ptY_
private

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