C# 클래스 Battlefield.Logic.Fields.Field

Field class holding the playfield.
상속: IField
파일 보기 프로젝트 열기: kiko81/HQC---Battle-Field-4-TeamWork 1 사용 예제들

공개 메소드들

메소드 설명
Explode ( Battlefield.Logic.GameObjects.Cell cell, bool chainEnabled, Battlefield.Logic.GameObjects.CompositeBomb chainedBombs ) : int

Handling explosions.

Field ( int size, int numberOfBombs ) : System.Collections.Generic
ToString ( ) : string

ToString overriding.

비공개 메소드들

메소드 설명
FillFieldWithEmptyCells ( ) : void

Filling playfield with empty cells.

PlaceBombs ( int mineNumber ) : void

Method arming the field with bombs.

메소드 상세

Explode() 공개 메소드

Handling explosions.
public Explode ( Battlefield.Logic.GameObjects.Cell cell, bool chainEnabled, Battlefield.Logic.GameObjects.CompositeBomb chainedBombs ) : int
cell Battlefield.Logic.GameObjects.Cell Coordinates and eventually value of the cell.
chainEnabled bool Boolean value if chain reaction enabled.
chainedBombs Battlefield.Logic.GameObjects.CompositeBomb Array for holding chained bombs.
리턴 int

Field() 공개 메소드

public Field ( int size, int numberOfBombs ) : System.Collections.Generic
size int
numberOfBombs int
리턴 System.Collections.Generic

ToString() 공개 메소드

ToString overriding.
public ToString ( ) : string
리턴 string