libcoyotl - A Library of C++ Tools

Created by Scott Robert Ladd at Coyote Gulch Productions.


libcoyotl::maze::cell Struct Reference

A cell in a 2D maze grid. More...

#include <maze.h>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
a_source - The object to be copied.

virtual libcoyotl::maze::cell::~cell  )  [virtual]
 

Destroys an existing cell; does nothing in this class, but might be required for a derived cell type.


Member Function Documentation

cell& libcoyotl::maze::cell::operator= const cell a_source  ) 
 

Assigns the state of one cell to another.

Parameters:
a_source - The object to be copied.
Returns:
A reference to the target object.


The documentation for this struct was generated from the following file:

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