C# 클래스 ArmedCards.Entities.GameRound

The object that defines a round in a game
파일 보기 프로젝트 열기: kwmcrell/ArmedCards

공개 메소드들

메소드 설명
AllPlayersAnswered ( ) : System.Boolean

Check to see if all players have answered

GameRound ( ) : System
GameRound ( IDataReader idr ) : System
GroupedAnswers ( ) : Entities.GameRoundCard>>.List

Return grouped answers based on who played them

HasAnswer ( Int32 userId ) : System.Boolean

Check to see if user has answered the question already

HasWinner ( ) : System.Boolean

The round has a winner

IsCommander ( Int32 userId ) : System.Boolean

Determine if the user is the card commander

ValidateCardPlayedCount ( Int32 cardsCount ) : System.Boolean

Validate the right number of cards were played for the question

ValidateWinnerSelection ( List cardIDs ) : List

Validate that the selected winner was in fact played during the round

Winner ( ) : Entities.User

Get the next commander based round winner

메소드 상세

AllPlayersAnswered() 공개 메소드

Check to see if all players have answered
public AllPlayersAnswered ( ) : System.Boolean
리턴 System.Boolean

GameRound() 공개 메소드

public GameRound ( ) : System
리턴 System

GameRound() 공개 메소드

public GameRound ( IDataReader idr ) : System
idr IDataReader
리턴 System

GroupedAnswers() 공개 메소드

Return grouped answers based on who played them
public GroupedAnswers ( ) : Entities.GameRoundCard>>.List
리턴 Entities.GameRoundCard>>.List

HasAnswer() 공개 메소드

Check to see if user has answered the question already
public HasAnswer ( Int32 userId ) : System.Boolean
userId System.Int32 The user Id to check
리턴 System.Boolean

HasWinner() 공개 메소드

The round has a winner
public HasWinner ( ) : System.Boolean
리턴 System.Boolean

IsCommander() 공개 메소드

Determine if the user is the card commander
public IsCommander ( Int32 userId ) : System.Boolean
userId System.Int32 The user Id to check
리턴 System.Boolean

ValidateCardPlayedCount() 공개 메소드

Validate the right number of cards were played for the question
public ValidateCardPlayedCount ( Int32 cardsCount ) : System.Boolean
cardsCount System.Int32 The number of cards played
리턴 System.Boolean

ValidateWinnerSelection() 공개 메소드

Validate that the selected winner was in fact played during the round
public ValidateWinnerSelection ( List cardIDs ) : List
cardIDs List The IDs of winning cards
리턴 List

Winner() 공개 메소드

Get the next commander based round winner
public Winner ( ) : Entities.User
리턴 Entities.User