C# 클래스 ArmedCards.Entities.Game

Object that defines a Game
파일 보기 프로젝트 열기: kwmcrell/ArmedCards 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
CurrentRound ( ) : Entities.GameRound

Get the current round

DetermineCommander ( ) : Entities.User

Determine who the card commander is

Game ( ) : System

Default Constructor

Game ( IDataReader idr ) : System

Constructor used by the data layer

HasRequiredNumberOfPlayers ( ) : System.Boolean

Determine if the game has required number of players

HasRounds ( ) : System.Boolean

Determine if the game has rounds

HasWinner ( ) : System.Boolean

Determine if the game has a winner

IsCurrentCommander ( Int32 userId ) : System.Boolean

Determine if user is the card commander

IsCurrentPlayer ( Int32 userID ) : System.Boolean

Determine if user is already a player

IsCurrentSpectator ( Int32 userID ) : System.Boolean

Determine if user is already a player

IsFull ( ) : System.Boolean

Determine if the game is full

IsWaiting ( ) : System.Boolean

Determine if the game is in waiting state

MaxSpectatorsReached ( ) : System.Boolean

Determine if the max number of spectators has been reached

NextCommander ( Entities newCommander ) : Entities.User

Get the next commander

NumberOfPlayersNeededToStart ( ) : Int32

Determine number of players still needed

메소드 상세

CurrentRound() 공개 메소드

Get the current round
public CurrentRound ( ) : Entities.GameRound
리턴 Entities.GameRound

DetermineCommander() 공개 메소드

Determine who the card commander is
public DetermineCommander ( ) : Entities.User
리턴 Entities.User

Game() 공개 메소드

Default Constructor
public Game ( ) : System
리턴 System

Game() 공개 메소드

Constructor used by the data layer
public Game ( IDataReader idr ) : System
idr IDataReader The datareader used to build the game
리턴 System

HasRequiredNumberOfPlayers() 공개 메소드

Determine if the game has required number of players
public HasRequiredNumberOfPlayers ( ) : System.Boolean
리턴 System.Boolean

HasRounds() 공개 메소드

Determine if the game has rounds
public HasRounds ( ) : System.Boolean
리턴 System.Boolean

HasWinner() 공개 메소드

Determine if the game has a winner
public HasWinner ( ) : System.Boolean
리턴 System.Boolean

IsCurrentCommander() 공개 메소드

Determine if user is the card commander
public IsCurrentCommander ( Int32 userId ) : System.Boolean
userId System.Int32
리턴 System.Boolean

IsCurrentPlayer() 공개 메소드

Determine if user is already a player
public IsCurrentPlayer ( Int32 userID ) : System.Boolean
userID System.Int32 The userID
리턴 System.Boolean

IsCurrentSpectator() 공개 메소드

Determine if user is already a player
public IsCurrentSpectator ( Int32 userID ) : System.Boolean
userID System.Int32 The userID
리턴 System.Boolean

IsFull() 공개 메소드

Determine if the game is full
public IsFull ( ) : System.Boolean
리턴 System.Boolean

IsWaiting() 공개 메소드

Determine if the game is in waiting state
public IsWaiting ( ) : System.Boolean
리턴 System.Boolean

MaxSpectatorsReached() 공개 메소드

Determine if the max number of spectators has been reached
public MaxSpectatorsReached ( ) : System.Boolean
리턴 System.Boolean

NextCommander() 공개 메소드

Get the next commander
public NextCommander ( Entities newCommander ) : Entities.User
newCommander Entities The winner of the last round
리턴 Entities.User

NumberOfPlayersNeededToStart() 공개 메소드

Determine number of players still needed
public NumberOfPlayersNeededToStart ( ) : Int32
리턴 System.Int32