C# Class WebSocketServer.Round

Specifies information about a game round.
显示文件 Open project: qJake/planning-poker Class Usage Examples

Public Methods

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

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".
return void

FlipCards() public method

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

RegisterVote() public method

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

Restart() public method

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

Round() public method

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

UndoVote() public method

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.
return void