C# Класс MBC.Shared.Entities.Match

Provides the modifications, events, and properties that are necessary to operate a game of battleship. All events must be subscribed to.
Наследование: System.Entity
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Match ( System.Entity parent ) : System

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

Метод Описание
Begin ( ) : void

Begins the match.

End ( ) : void

Ends the match.

PlayerAdd ( Player player ) : void

Creates a MatchAddPlayerEvent from within the match and returns it. Invokes any event subscriptions to OnPlayerAdd.

PlayerRemove ( Player player ) : void

Creates a MatchRemovePlayerEvent from within the match and returns it. Invokes any event subscriptions to OnPlayerRemove.

RoundBegin ( ) : void

Creates a RoundBeginEvent from within the match and returns it. Invokes any event subscriptions to OnRoundBegin.

RoundEnd ( int roundNumber ) : void

Creates a RoundEndEvent from within the match and returns it. Invokes any event subscriptions to OnRoundEnd.

TeamAdd ( Team team ) : void

Creates a MatchTeamAddEvent from within the match and returns it. Invokes any event subscriptions to OnTeamAdd.

TeamRemove ( Team team ) : void

Creates a MatchTeamRemoveEvent from within the match and returns it. Invokes any event subscriptions to OnTeamRemove.

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

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

Begins the match.
protected Begin ( ) : void
Результат void

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

Ends the match.
protected End ( ) : void
Результат void

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

public Match ( System.Entity parent ) : System
parent System.Entity
Результат System

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

Creates a MatchAddPlayerEvent from within the match and returns it. Invokes any event subscriptions to OnPlayerAdd.
Thrown when the event being created is not valid for the /// current state of the match.
protected PlayerAdd ( Player player ) : void
player Player
Результат void

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

Creates a MatchRemovePlayerEvent from within the match and returns it. Invokes any event subscriptions to OnPlayerRemove.
Thrown when the event being created is not valid for the /// current state of the match.
protected PlayerRemove ( Player player ) : void
player Player
Результат void

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

Creates a RoundBeginEvent from within the match and returns it. Invokes any event subscriptions to OnRoundBegin.
Thrown when the event being created is not valid for the /// current state of the match.
protected RoundBegin ( ) : void
Результат void

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

Creates a RoundEndEvent from within the match and returns it. Invokes any event subscriptions to OnRoundEnd.
Thrown when the event being created is not valid for the /// current state of the match.
protected RoundEnd ( int roundNumber ) : void
roundNumber int
Результат void

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

Creates a MatchTeamAddEvent from within the match and returns it. Invokes any event subscriptions to OnTeamAdd.
Thrown when the event being created is not valid for the /// current state of the match.
protected TeamAdd ( Team team ) : void
team Team
Результат void

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

Creates a MatchTeamRemoveEvent from within the match and returns it. Invokes any event subscriptions to OnTeamRemove.
Thrown when the event being created is not valid for the /// current state of the match.
protected TeamRemove ( Team team ) : void
team Team
Результат void