Created by Scott Robert Ladd at Coyote Gulch Productions.
#include <maze.h>
libcoyotl::maze::maze | ( | const maze & | a_source | ) |
virtual libcoyotl::maze::~maze | ( | ) | [virtual] |
Destroys a maze objet and releases all of its resources.
libcoyotl::maze::maze | ( | size_t | a_width, | |
size_t | a_height | |||
) | [protected] |
This constructor sets parameters, and then calls construct to allocate memory and assign default walls.
static maze libcoyotl::maze::load | ( | std::istream & | a_source | ) | [static] |
Loads a maze from a binary file created using maze::save.
a_source | - Input stream containing the binary maze |
void libcoyotl::maze::save | ( | std::ostream & | a_receiver | ) |
size_t libcoyotl::maze::get_width | ( | ) | const [inline] |
size_t libcoyotl::maze::get_height | ( | ) | const [inline] |
position libcoyotl::maze::get_entrance_cell_position | ( | ) | const [inline] |
position libcoyotl::maze::get_exit_cell_position | ( | ) | const [inline] |
cell libcoyotl::maze::get_cell | ( | size_t | a_col, | |
size_t | a_row | |||
) | const |
void libcoyotl::maze::construct | ( | ) | [protected] |
This constructor creates the raw maze, with all walls solid or closed. It is used by the named constructor generate
void libcoyotl::maze::release | ( | ) | [protected] |
Releases resources allocated to a maze.
void libcoyotl::maze::deep_copy | ( | const maze & | a_source | ) | [protected] |
Performs a deep copy of one maze to another.
a_source | - Source object |
void libcoyotl::maze::read | ( | std::istream & | a_source | ) | [protected] |
Read a maze's data from a binary stream.
a_source | - Input stream containing the binary maze |
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.