C# Класс MBC.Core.Game.ClassicMatch

A type of match that uses the standard rules of battleship as logic.
Наследование: MatchCore
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ClassicMatch ( ) : System

Constructs a match with the application-wide configuration.

ClassicMatch ( Configuration conf ) : System

Constructs a match with a specific configuration.

Защищенные методы

Метод Описание
PlayLogic ( ) : bool

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

Приватные методы

Метод Описание
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

Описание методов

ClassicMatch() публичный Метод

Constructs a match with the application-wide configuration.
public ClassicMatch ( ) : System
Результат System

ClassicMatch() публичный Метод

Constructs a match with a specific configuration.
public ClassicMatch ( Configuration conf ) : System
conf Configuration
Результат System

PlayLogic() защищенный Метод

Plays through the current state of the match, in one iteration.
protected PlayLogic ( ) : bool
Результат bool