C# Class UnoTV.Web.Game.GameState

Afficher le fichier Open project: TomDudfield/UnoTV Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
MoveToNextPlayer ( Card card ) : void
UpdateIndex ( int index ) : int

Method Details

AddPlayer() public méthode

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

GameState() public méthode

public GameState ( ) : System
Résultat System

PlayCard() public méthode

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

ResetGame() public méthode

Resets the game to initial hands.
public ResetGame ( ) : void
Résultat void

Start() public méthode

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