Created by Scott Robert Ladd at Coyote Gulch Productions.
A cell in a 2D maze grid. More...
#include <maze.h>
Public Member Functions | |
| cell () | |
| Constructor. More... | |
| cell (const cell &a_source) | |
| Copy constructor. More... | |
| cell & | operator= (const cell &a_source) |
| Assignment operator. More... | |
| virtual | ~cell () |
| Destructor. More... | |
Public Attributes | |
| wall * | m_walls [4] |
| Pointers to four walls, indexed by wall values. | |
Each cell knows the state of its four walls. A cell references its walls by pointer; that way, two adjoining cells share the same pointer to the wall that they share.
| libcoyotl::maze::cell::cell | ( | ) |
Creates a new cell. The wall references are initially NULL (they do not point to any walls).
| libcoyotl::maze::cell::cell | ( | const cell & | a_source | ) |
Creates a new cell with the same state as an existing one.
| a_source | - The object to be copied. |
|
virtual |
Destroys an existing cell; does nothing in this class, but might be required for a derived cell type.
Assigns the state of one cell to another.
| a_source | - The object to be copied. |
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.