MiniGame-Madness
Public Member Functions | Friends | List of all members
Maze Class Reference

A class that represents the maze game. More...

#include <maze.h>

Public Member Functions

 Maze (int width, int height)
 Constructor for Maze class. More...
 
 ~Maze ()=default
 Destructor for Maze class.
 
int run ()
 Runs the game logic/loop. More...
 

Friends

class MazeTests::MazeTests
 

Detailed Description

A class that represents the maze game.

This class provides methods to generate the maze, handle player moves, and check game conditions.

Constructor & Destructor Documentation

◆ Maze()

Maze::Maze ( int  width,
int  height 
)

Constructor for Maze class.

Parameters
width- The width of the maze.
height- The height of the maze.

Member Function Documentation

◆ run()

int Maze::run ( )

Runs the game logic/loop.

The game logic will handle player moves, check game conditions, and print the maze to the console.

Returns
either RETURN_TO_MENU or EXIT_GAME based on the user input.

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