Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

LifeExercise.cpp File Reference

#include "macros.h"
#include <string>
#include <iostream>
#include "AbstractExercise.h"
#include <ctime>
#include <cstdlib>

Go to the source code of this file.

Compounds

class  Life
class  LifeExercise
class  LifeMatrix
class  ModN

Typedefs

typedef char lifeMatrix_t [SIZE_X][SIZE_Y]

Variables

const int SIZE_X = 30
const int SIZE_Y = 20
const char ALIVE = '*'
const char DEAD = ' '
LifeExercise proto ("LifeExercise")


Typedef Documentation

typedef char lifeMatrix_t[SIZE_X][SIZE_Y] [static]
 

Definition at line 15 of file LifeExercise.cpp.


Variable Documentation

const char ALIVE = '*' [static]
 

Definition at line 13 of file LifeExercise.cpp.

Referenced by LifeMatrix::enliven(), LifeMatrix::fillGlider(), LifeMatrix::fillLine(), LifeMatrix::fillRand(), LifeMatrix::fillSquare58(), and LifeMatrix::isAlive().

const char DEAD = ' ' [static]
 

Definition at line 14 of file LifeExercise.cpp.

Referenced by LifeMatrix::fillGlider(), LifeMatrix::fillLine(), LifeMatrix::fillRand(), LifeMatrix::fillSquare58(), and LifeMatrix::kill().

LifeExercise proto("LifeExercise") [static]
 

const int SIZE_X = 30 [static]
 

Definition at line 11 of file LifeExercise.cpp.

Referenced by Life::calculate(), LifeMatrix::display(), and LifeMatrix::fill().

const int SIZE_Y = 20 [static]
 

Definition at line 12 of file LifeExercise.cpp.

Referenced by Life::calculate(), LifeMatrix::display(), and LifeMatrix::fill().


Generated on Sat Jul 19 18:19:54 2003 for Exercise Framework by doxygen1.2.18