C# 클래스 WebSocketServer.Round

Specifies information about a game round.
파일 보기 프로젝트 열기: qJake/planning-poker 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

DecideVote() 공개 메소드

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".
리턴 void

FlipCards() 공개 메소드

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

RegisterVote() 공개 메소드

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

Restart() 공개 메소드

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

Round() 공개 메소드

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

UndoVote() 공개 메소드

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.
리턴 void