C# Class Battlefield.Logic.Fields.Field

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

Méthodes publiques

Méthode 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

Méthode Description
FillFieldWithEmptyCells ( ) : void

Filling playfield with empty cells.

PlaceBombs ( int mineNumber ) : void

Method arming the field with bombs.

Method Details

Explode() public méthode

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.
Résultat int

Field() public méthode

public Field ( int size, int numberOfBombs ) : System.Collections.Generic
size int
numberOfBombs int
Résultat System.Collections.Generic

ToString() public méthode

ToString overriding.
public ToString ( ) : string
Résultat string