Smart Minotaur
 Alle Klassen Dateien Funktionen Variablen Seiten
minotaur::MazeMap Klassenreferenz

The MazeMap class manages MazeNode objects in a 2D array and contains various properties of the maze. Mehr ...

#include <MazeMap.hpp>

Öffentliche Methoden

 MazeMap (const unsigned int p_width, const unsigned int p_height)
MazeNodenode (const unsigned int p_x, const unsigned int p_y)
unsigned int getWidth ()
unsigned int getHeight ()
void setNodeDimension (const float p_width, const float p_height)
 Set the dimensions of a node in meter.
float getNodeWidth ()
float getNodeHeight ()
void saveASCIIFile (const std::string &p_file) const
 Saves the map and its blocked areas as ASCII art file.

Ausführliche Beschreibung

The MazeMap class manages MazeNode objects in a 2D array and contains various properties of the maze.

Dokumentation der Elementfunktionen

float minotaur::MazeMap::getNodeHeight ( )
Rückgabe
node height in meter
float minotaur::MazeMap::getNodeWidth ( )
Rückgabe
node width in meter
void minotaur::MazeMap::saveASCIIFile ( const std::string &  p_file) const

Saves the map and its blocked areas as ASCII art file.

Parameter
p_filetarget file
void minotaur::MazeMap::setNodeDimension ( const float  p_width,
const float  p_height 
)

Set the dimensions of a node in meter.

Parameter
p_widthnode width in meter
p_heightnode height in meter

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: