C# Class Battlefield.Logic.Fields.Field

Field class holding the playfield.
Inheritance: IField
Exibir arquivo Open project: kiko81/HQC---Battle-Field-4-TeamWork Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
FillFieldWithEmptyCells ( ) : void

Filling playfield with empty cells.

PlaceBombs ( int mineNumber ) : void

Method arming the field with bombs.

Method Details

Explode() public method

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.
return int

Field() public method

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

ToString() public method

ToString overriding.
public ToString ( ) : string
return string