Life001.cpp File Reference

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

Go to the source code of this file.

Classes

class  ModN
class  LifeMatrix

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 = ' '


Typedef Documentation

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

Definition at line 16 of file Life001.cpp.


Variable Documentation

const char ALIVE = '*' [static]

Definition at line 14 of file Life001.cpp.

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

const char DEAD = ' ' [static]

Definition at line 15 of file Life001.cpp.

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

const int SIZE_X = 30 [static]

Definition at line 12 of file Life001.cpp.

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

const int SIZE_Y = 20 [static]

Definition at line 13 of file Life001.cpp.

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


Generated on Thu Jul 3 19:12:45 2008 for Exercise Framework by  doxygen 1.5.1