C# Class 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.
Inheritance: System.Entity
Afficher le fichier Open project: aiclub/Mohawk_Battleship Class Usage Examples

Méthodes publiques

Méthode Description
Match ( System.Entity parent ) : System

Méthodes protégées

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

Method Details

Begin() protected méthode

Begins the match.
protected Begin ( ) : void
Résultat void

End() protected méthode

Ends the match.
protected End ( ) : void
Résultat void

Match() public méthode

public Match ( System.Entity parent ) : System
parent System.Entity
Résultat System

PlayerAdd() protected méthode

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
Résultat void

PlayerRemove() protected méthode

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
Résultat void

RoundBegin() protected méthode

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
Résultat void

RoundEnd() protected méthode

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
Résultat void

TeamAdd() protected méthode

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
Résultat void

TeamRemove() protected méthode

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
Résultat void