Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

Maze Class Reference

Maze is a collection of rooms connected by doors. More...

#include <Maze.hpp>

List of all members.

Public Methods

 Maze (RoomPtr aPtr)
 Default constructor starts with a room.

virtual ~Maze (void)
 Virtual destructor.

bool operator== (MazeCref) const
 Equality, compares start room pointers.

RoomCref getStartLocation (void) const
 Get the starting room.

RoomCref getCurrentLocation (void) const
 Get the current location.

void walkInDirection (Direction)
 Change the location if possible.


Protected Methods

 Maze (void) throw ( corelinux::Assertion )
 Default constructor not allowed.

 Maze (MazeCref) throw ( corelinux::Assertion )
 Copy constructor not allowed.

MazeRef operator= (MazeCref) throw ( corelinux::Assertion )
 Assignment not allowed.

void addRoom (RoomPtr)
 Add a room to the maze.

RoomMapRef getRooms (void)
 Get a room to manipulate.


Friends

class MazeBuilder


Detailed Description

Maze is a collection of rooms connected by doors.

You can move through the maze in various directions


The documentation for this class was generated from the following files:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium