C# Class WebSocketServer.Round

Specifies information about a game round.
Afficher le fichier Open project: qJake/planning-poker Class Usage Examples

Méthodes publiques

Méthode Description
DecideVote ( string card ) : void

Sets the final decision on a round, and clears the votes.

FlipCards ( ) : void

Flips the cards so that all clients can see all votes.

RegisterVote ( Vote newVote ) : bool

Registers a new vote into this round.

Restart ( ) : void

Restarts the round by clearing all votes, un-flipping the cards, and clearing any final decision.

Round ( string title ) : System

Initializes a new instance of the Round class.

UndoVote ( Client c ) : void

Un-does a vote from a specific client. If the specified client didn't vote, this method does nothing.

Method Details

DecideVote() public méthode

Sets the final decision on a round, and clears the votes.
public DecideVote ( string card ) : void
card string The card to mark as the "decision".
Résultat void

FlipCards() public méthode

Flips the cards so that all clients can see all votes.
public FlipCards ( ) : void
Résultat void

RegisterVote() public méthode

Registers a new vote into this round.
public RegisterVote ( Vote newVote ) : bool
newVote Vote The new vote to register.
Résultat bool

Restart() public méthode

Restarts the round by clearing all votes, un-flipping the cards, and clearing any final decision.
public Restart ( ) : void
Résultat void

Round() public méthode

Initializes a new instance of the Round class.
public Round ( string title ) : System
title string The round title.
Résultat System

UndoVote() public méthode

Un-does a vote from a specific client. If the specified client didn't vote, this method does nothing.
public UndoVote ( Client c ) : void
c Client The client whose vote to remove.
Résultat void