C# Class MBC.Core.Game.ClassicMatch

A type of match that uses the standard rules of battleship as logic.
Inheritance: MatchCore
Afficher le fichier Open project: aiclub/Mohawk_Battleship Class Usage Examples

Méthodes publiques

Méthode Description
ClassicMatch ( ) : System

Constructs a match with the application-wide configuration.

ClassicMatch ( Configuration conf ) : System

Constructs a match with a specific configuration.

Méthodes protégées

Méthode Description
PlayLogic ( ) : bool

Plays through the current state of the match, in one iteration.

Private Methods

Méthode Description
HandleAddPlayer ( Event ev ) : void
HandlePlayerLose ( Event ev ) : void
HandlePlayerShot ( Event ev ) : void
HandleRemovePlayer ( Event ev ) : void
HandleRoundBegin ( Event ev ) : void
HandleRoundEnd ( Event ev ) : void
HandleShipDestroyed ( Event ev ) : void
HandleShipMove ( Event ev ) : void
WaitForTimeout ( ) : void

Method Details

ClassicMatch() public méthode

Constructs a match with the application-wide configuration.
public ClassicMatch ( ) : System
Résultat System

ClassicMatch() public méthode

Constructs a match with a specific configuration.
public ClassicMatch ( Configuration conf ) : System
conf Configuration
Résultat System

PlayLogic() protected méthode

Plays through the current state of the match, in one iteration.
protected PlayLogic ( ) : bool
Résultat bool