C# Класс UnoTV.Web.Game.GameState

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
MoveToNextPlayer ( Card card ) : void
UpdateIndex ( int index ) : int

Описание методов

AddPlayer() публичный Метод

Adds a new player to the game.
public AddPlayer ( Player player ) : void
player UnoTV.Web.Domain.Player
Результат void

GameState() публичный Метод

public GameState ( ) : System
Результат System

PlayCard() публичный Метод

Plays a card, removes from face down pile and adds to played pile
public PlayCard ( Card card ) : void
card UnoTV.Web.Domain.Card
Результат void

ResetGame() публичный Метод

Resets the game to initial hands.
public ResetGame ( ) : void
Результат void

Start() публичный Метод

Starts the game which determines the player order and deals the initial hands to the players.
public Start ( ) : void
Результат void