C# Class MBC.Core.Game.ClassicMatch

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

Public Methods

Method Description
ClassicMatch ( ) : System

Constructs a match with the application-wide configuration.

ClassicMatch ( Configuration conf ) : System

Constructs a match with a specific configuration.

Protected Methods

Method Description
PlayLogic ( ) : bool

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

Private Methods

Method 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 method

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

ClassicMatch() public method

Constructs a match with a specific configuration.
public ClassicMatch ( Configuration conf ) : System
conf Configuration
return System

PlayLogic() protected method

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