C# 클래스 TheGame.Universe

파일 보기 프로젝트 열기: stonemonkey/Internship2013 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CurrentWorld List
NewBornShouldBeGrey bool
NextWorld List

공개 메소드들

메소드 설명
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

메소드 상세

AddAliveCellInNextGeneration() 공개 메소드

public AddAliveCellInNextGeneration ( Cell cell ) : void
cell Cell
리턴 void

AddCellInCurrentGeneration() 공개 메소드

public AddCellInCurrentGeneration ( int i, int j ) : void
i int
j int
리턴 void

AddDeadCellInNextGeneration() 공개 메소드

public AddDeadCellInNextGeneration ( Cell cell ) : void
cell Cell
리턴 void

AliveCellRemainsAlive() 공개 메소드

public AliveCellRemainsAlive ( Cell cell ) : void
cell Cell
리턴 void

CellHasNeighboursOnRightAndLeftSide() 공개 메소드

public CellHasNeighboursOnRightAndLeftSide ( Cell cellToBeVerified, Cell cell ) : bool
cellToBeVerified Cell
cell Cell
리턴 bool

CellHasNeighboursOnTop() 공개 메소드

public CellHasNeighboursOnTop ( Cell cellToBeVerified, Cell unit ) : bool
cellToBeVerified Cell
unit Cell
리턴 bool

CellHasNeighboursUnder() 공개 메소드

public CellHasNeighboursUnder ( Cell cellToBeVerified, Cell unit ) : bool
cellToBeVerified Cell
unit Cell
리턴 bool

CountNumberOfWhiteAndBlackCells() 공개 메소드

public CountNumberOfWhiteAndBlackCells ( Cell cell, int &white, int &black ) : void
cell Cell
white int
black int
리턴 void

DeadCellRevives() 공개 메소드

public DeadCellRevives ( Cell cell ) : void
cell Cell
리턴 void

DecideIfCellBecomesDeadOrAlive() 공개 메소드

public DecideIfCellBecomesDeadOrAlive ( Cell cell ) : void
cell Cell
리턴 void

DecideIfNewBornShouldBeGrey() 공개 메소드

public DecideIfNewBornShouldBeGrey ( int black, int white ) : void
black int
white int
리턴 void

DrawWorld() 공개 메소드

public DrawWorld ( ) : void
리턴 void

IncreaseNumberOfAliveNeighbours() 공개 메소드

public IncreaseNumberOfAliveNeighbours ( int &numberOfAliveNeighbours ) : void
numberOfAliveNeighbours int
리턴 void

NumberOfAliveNeighbours() 공개 메소드

public NumberOfAliveNeighbours ( Cell cellToBeVerified ) : int
cellToBeVerified Cell
리턴 int

Universe() 공개 메소드

public Universe ( ) : System
리턴 System

WorldStillHasAliveCells() 공개 메소드

public WorldStillHasAliveCells ( ) : bool
리턴 bool

프로퍼티 상세

CurrentWorld 공개적으로 프로퍼티

public List CurrentWorld
리턴 List

NewBornShouldBeGrey 공개적으로 프로퍼티

public bool NewBornShouldBeGrey
리턴 bool

NextWorld 공개적으로 프로퍼티

public List NextWorld
리턴 List