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

LifeExercise1.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  LifeExercise
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 = ' '
LifeExercise proto ("LifeExercise")


Typedef Documentation

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

Definition at line 17 of file LifeExercise1.cpp.


Variable Documentation

const char ALIVE = '*' [static]
 

Definition at line 15 of file LifeExercise1.cpp.

Referenced by LifeExercise::calc(), LifeMatrix::fillGlider(), LifeMatrix::fillLine(), LifeMatrix::fillRand(), LifeMatrix::fillSquare58(), and LifeMatrix::neighbours().

const char DEAD = ' ' [static]
 

Definition at line 16 of file LifeExercise1.cpp.

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

LifeExercise proto("LifeExercise") [static]
 

const int SIZE_X = 30 [static]
 

Definition at line 13 of file LifeExercise1.cpp.

Referenced by LifeExercise::calc(), LifeMatrix::display(), LifeMatrix::fill(), LifeMatrix::LifeMatrix::indexLeft(), and LifeMatrix::LifeMatrix::indexRight().

const int SIZE_Y = 20 [static]
 

Definition at line 14 of file LifeExercise1.cpp.

Referenced by LifeExercise::calc(), LifeMatrix::display(), LifeMatrix::fill(), LifeMatrix::LifeMatrix::indexDown(), and LifeMatrix::LifeMatrix::indexUp().


Generated on Mon Mar 3 17:50:33 2003 for Exercise Framework by doxygen1.2.18