Maze Class Reference

#include <Maze.h>

Inherits Object.

Collaboration diagram for Maze:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Maze ()
virtual ~Maze ()
void AddRoom (class Room *)
class RoomRoomNo (int) const
virtual void Print (int indent=0)

Private Attributes

class ObjectArrayRooms


Detailed Description

Definition at line 12 of file Maze.h.


Constructor & Destructor Documentation

Maze::Maze (  ) 

Definition at line 7 of file Maze.cpp.

References Rooms.

Referenced by MazeFactory::MakeMaze().

Maze::~Maze (  )  [virtual]

Definition at line 12 of file Maze.cpp.

References Rooms.


Member Function Documentation

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

Definition at line 21 of file Maze.cpp.

References ObjectArray::GetAt(), and Rooms.


Member Data Documentation

class ObjectArray* Maze::Rooms [private]

Definition at line 24 of file Maze.h.

Referenced by AddRoom(), Maze(), Print(), RoomNo(), and ~Maze().


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

Generated on Sat Mar 21 17:07:54 2009 for Abstract Factory Design Pattern by  doxygen 1.5.8