C# Class TheGame.Universe

Afficher le fichier Open project: stonemonkey/Internship2013 Class Usage Examples

Méthodes publiques

Свойство Type Description
CurrentWorld List
NewBornShouldBeGrey bool
NextWorld List

Méthodes publiques

Méthode Description
AddAliveCellInNextGeneration ( Cell cell ) : void
AddCellInCurrentGeneration ( int i, int j ) : void
AddDeadCellInNextGeneration ( Cell cell ) : void
AliveCellRemainsAlive ( Cell cell ) : void
CellHasNeighboursOnRightAndLeftSide ( Cell cellToBeVerified, Cell cell ) : bool
CellHasNeighboursOnTop ( Cell cellToBeVerified, Cell unit ) : bool
CellHasNeighboursUnder ( Cell cellToBeVerified, Cell unit ) : bool
CountNumberOfWhiteAndBlackCells ( Cell cell, int &white, int &black ) : void
DeadCellRevives ( Cell cell ) : void
DecideIfCellBecomesDeadOrAlive ( Cell cell ) : void
DecideIfNewBornShouldBeGrey ( int black, int white ) : void
DrawWorld ( ) : void
IncreaseNumberOfAliveNeighbours ( int &numberOfAliveNeighbours ) : void
NumberOfAliveNeighbours ( Cell cellToBeVerified ) : int
Universe ( ) : System
WorldStillHasAliveCells ( ) : bool

Method Details

AddAliveCellInNextGeneration() public méthode

public AddAliveCellInNextGeneration ( Cell cell ) : void
cell Cell
Résultat void

AddCellInCurrentGeneration() public méthode

public AddCellInCurrentGeneration ( int i, int j ) : void
i int
j int
Résultat void

AddDeadCellInNextGeneration() public méthode

public AddDeadCellInNextGeneration ( Cell cell ) : void
cell Cell
Résultat void

AliveCellRemainsAlive() public méthode

public AliveCellRemainsAlive ( Cell cell ) : void
cell Cell
Résultat void

CellHasNeighboursOnRightAndLeftSide() public méthode

public CellHasNeighboursOnRightAndLeftSide ( Cell cellToBeVerified, Cell cell ) : bool
cellToBeVerified Cell
cell Cell
Résultat bool

CellHasNeighboursOnTop() public méthode

public CellHasNeighboursOnTop ( Cell cellToBeVerified, Cell unit ) : bool
cellToBeVerified Cell
unit Cell
Résultat bool

CellHasNeighboursUnder() public méthode

public CellHasNeighboursUnder ( Cell cellToBeVerified, Cell unit ) : bool
cellToBeVerified Cell
unit Cell
Résultat bool

CountNumberOfWhiteAndBlackCells() public méthode

public CountNumberOfWhiteAndBlackCells ( Cell cell, int &white, int &black ) : void
cell Cell
white int
black int
Résultat void

DeadCellRevives() public méthode

public DeadCellRevives ( Cell cell ) : void
cell Cell
Résultat void

DecideIfCellBecomesDeadOrAlive() public méthode

public DecideIfCellBecomesDeadOrAlive ( Cell cell ) : void
cell Cell
Résultat void

DecideIfNewBornShouldBeGrey() public méthode

public DecideIfNewBornShouldBeGrey ( int black, int white ) : void
black int
white int
Résultat void

DrawWorld() public méthode

public DrawWorld ( ) : void
Résultat void

IncreaseNumberOfAliveNeighbours() public méthode

public IncreaseNumberOfAliveNeighbours ( int &numberOfAliveNeighbours ) : void
numberOfAliveNeighbours int
Résultat void

NumberOfAliveNeighbours() public méthode

public NumberOfAliveNeighbours ( Cell cellToBeVerified ) : int
cellToBeVerified Cell
Résultat int

Universe() public méthode

public Universe ( ) : System
Résultat System

WorldStillHasAliveCells() public méthode

public WorldStillHasAliveCells ( ) : bool
Résultat bool

Property Details

CurrentWorld public_oe property

public List CurrentWorld
Résultat List

NewBornShouldBeGrey public_oe property

public bool NewBornShouldBeGrey
Résultat bool

NextWorld public_oe property

public List NextWorld
Résultat List