#include <Maze.h>
Inherits Object.
Public Member Functions | |
Maze () | |
virtual | ~Maze () |
void | AddRoom (class Room *) |
class Room * | RoomNo (int) const |
virtual void | Print (int indent=0) |
Private Attributes | |
class ObjectArray * | Rooms |
Definition at line 12 of file Maze.h.
Maze::Maze | ( | ) |
void Maze::AddRoom | ( | class Room * | room | ) |
Definition at line 17 of file Maze.cpp.
References Room::GetRoomNo(), ObjectArray::PutAt(), and Rooms.
Referenced by MazeGame::CreateMaze().
void Maze::Print | ( | int | indent = 0 |
) | [virtual] |
Reimplemented from Object.
Definition at line 27 of file Maze.cpp.
References ObjectArray::Print(), PrintIndent(), and Rooms.
Referenced by main().
class Room * Maze::RoomNo | ( | int | roomNo | ) | const |
class ObjectArray* Maze::Rooms [private] |