Pacman  1.0
Pacman game
Fonctions membres publiques | Attributs privés | Liste de tous les membres
Référence de la classe Maze

Maze class. Plus de détails...

#include <Maze.h>

Fonctions membres publiques

 Maze ()
 Construct a new Maze object. Plus de détails...
 
 ~Maze ()
 
char getCell (int row, int col) const
 
int getWidth () const
 
int getHeight () const
 
std::vector< std::shared_ptr< Intersection > > getIntersections () const
 
std::shared_ptr< IntersectiongetIntersection (int index) const
 
std::vector< std::shared_ptr< Gomme > > getGommes () const
 
void clearGomme (std::shared_ptr< Gomme > gomme)
 

Attributs privés

std::vector< std::vector< int > > cells
 
std::vector< std::shared_ptr< Intersection > > intersections
 
std::vector< std::shared_ptr< Gomme > > gommes
 
int width
 
int height
 

Description détaillée

Maze class.

this class stores the maze, the intersections and the gommes (pac-dots and power pellets).

Documentation des constructeurs et destructeur

◆ Maze()

Maze::Maze ( )

Construct a new Maze object.

◆ ~Maze()

Maze::~Maze ( )

Documentation des fonctions membres

◆ clearGomme()

void Maze::clearGomme ( std::shared_ptr< Gomme gomme)

◆ getCell()

char Maze::getCell ( int  row,
int  col 
) const

◆ getGommes()

std::vector< std::shared_ptr< Gomme > > Maze::getGommes ( ) const

◆ getHeight()

int Maze::getHeight ( ) const

◆ getIntersection()

std::shared_ptr< Intersection > Maze::getIntersection ( int  index) const

◆ getIntersections()

std::vector< std::shared_ptr< Intersection > > Maze::getIntersections ( ) const

◆ getWidth()

int Maze::getWidth ( ) const

Documentation des données membres

◆ cells

std::vector<std::vector<int> > Maze::cells
private

◆ gommes

std::vector<std::shared_ptr<Gomme> > Maze::gommes
private

◆ height

int Maze::height
private

◆ intersections

std::vector<std::shared_ptr<Intersection> > Maze::intersections
private

◆ width

int Maze::width
private

La documentation de cette classe a été générée à partir du fichier suivant :