#include <Builder.h>
Inherits MazeBuilder.
Public Member Functions | |
StandardMazeBuilder () | |
virtual void | BuildMaze () |
virtual void | BuildRoom (int) |
virtual void | BuildDoor (int, int) |
virtual Maze * | GetMaze () |
Private Member Functions | |
Direction | CommonWall (Room *, Room *) |
Private Attributes | |
Maze * | _currentMaze |
Definition at line 22 of file Builder.h.
StandardMazeBuilder::StandardMazeBuilder | ( | ) |
void StandardMazeBuilder::BuildDoor | ( | int | n1, | |
int | n2 | |||
) | [virtual] |
Reimplemented from MazeBuilder.
Definition at line 45 of file Builder.cpp.
References _currentMaze, CommonWall(), Maze::RoomNo(), and Room::SetSide().
void StandardMazeBuilder::BuildMaze | ( | ) | [virtual] |
void StandardMazeBuilder::BuildRoom | ( | int | n | ) | [virtual] |
Reimplemented from MazeBuilder.
Definition at line 31 of file Builder.cpp.
References _currentMaze, Maze::AddRoom(), East, North, Maze::RoomNo(), Room::SetSide(), South, and West.
Definition at line 34 of file Builder.h.
References East.
Referenced by BuildDoor().
Maze * StandardMazeBuilder::GetMaze | ( | ) | [virtual] |
Reimplemented from MazeBuilder.
Definition at line 25 of file Builder.cpp.
References _currentMaze.
Referenced by create_standard_maze().
Maze* StandardMazeBuilder::_currentMaze [private] |
Definition at line 41 of file Builder.h.
Referenced by BuildDoor(), BuildMaze(), BuildRoom(), GetMaze(), and StandardMazeBuilder().