libcoyotl - A Library of C++ Tools

Created by Scott Robert Ladd at Coyote Gulch Productions.


maze_recursive.h
1//---------------------------------------------------------------------
2// Algorithmic Conjurings @ http://www.coyotegulch.com
3//
4// maze_recursive.h (libcoyotl)
5//
6// Maze generation and exploration tools
7//-----------------------------------------------------------------------
8//
9// Copyright 1990-2005 Scott Robert Ladd
10//
11// This program is free software; you can redistribute it and/or modify
12// it under the terms of the GNU General Public License as published by
13// the Free Software Foundation; either version 2 of the License, or
14// (at your option) any later version.
15//
16// This program is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19// GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program; if not, write to the
23// Free Software Foundation, Inc.
24// 59 Temple Place - Suite 330
25// Boston, MA 02111-1307, USA.
26//
27//-----------------------------------------------------------------------
28//
29// For more information on this software package, please visit
30// Scott's web site, Coyote Gulch Productions, at:
31//
32// http://www.coyotegulch.com
33//
34//-----------------------------------------------------------------------
35
36#if !defined(LIBCOYOTL_MAZE_RECURSIVE_H)
37#define LIBCOYOTL_MAZE_RECURSIVE_H
38
39#include "maze.h"
40#include "prng.h"
41
42namespace libcoyotl
43{
45
50 {
51 public:
53
59 : m_prng(a_prng) // initialize random number generator
60 {
61 // nada
62 }
63
64
66
71
72 private:
73 // random number generator
74 prng & m_prng;
75 };
76}
77
78#endif
A STL-compatible array class.
Definition array.h:73
Defines the data structure of a maze.
Definition maze.h:56
Pluggable object to randomize a maze.
Definition maze.h:140
Implements a recursive, back-tracking maze architect.
Definition maze_recursive.h:50
virtual void create_floor_plan(libcoyotl::maze &a_target)
Creates a floor plan for a maze.
recursive_maze_architect(prng &a_prng)
Constructor.
Definition maze_recursive.h:58
An abstract definition of a peudorandom number generator.
Definition prng.h:55

© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.