C# Class UnoTV.Web.Game.GameState

显示文件 Open project: TomDudfield/UnoTV Class Usage Examples

Public Methods

Method Description
AddPlayer ( Player player ) : void

Adds a new player to the game.

GameState ( ) : System
PlayCard ( Card card ) : void

Plays a card, removes from face down pile and adds to played pile

ResetGame ( ) : void

Resets the game to initial hands.

Start ( ) : void

Starts the game which determines the player order and deals the initial hands to the players.

Private Methods

Method Description
MoveToNextPlayer ( Card card ) : void
UpdateIndex ( int index ) : int

Method Details

AddPlayer() public method

Adds a new player to the game.
public AddPlayer ( Player player ) : void
player UnoTV.Web.Domain.Player
return void

GameState() public method

public GameState ( ) : System
return System

PlayCard() public method

Plays a card, removes from face down pile and adds to played pile
public PlayCard ( Card card ) : void
card UnoTV.Web.Domain.Card
return void

ResetGame() public method

Resets the game to initial hands.
public ResetGame ( ) : void
return void

Start() public method

Starts the game which determines the player order and deals the initial hands to the players.
public Start ( ) : void
return void