C# Class UnoTV.Web.Game.PlayableCards

Datei anzeigen Open project: TomDudfield/UnoTV

Public Methods

Method Description
IsPlayable ( PlayableCard card, Card activeCard ) : bool

Returns boolean indicating whether the playable card is playable against the active card.

Process ( IList cards, Card activeCard ) : void

Loops through a players cards setting whether they're are playable with the card provided.

Method Details

IsPlayable() public static method

Returns boolean indicating whether the playable card is playable against the active card.
public static IsPlayable ( PlayableCard card, Card activeCard ) : bool
card UnoTV.Web.Domain.PlayableCard
activeCard UnoTV.Web.Domain.Card
return bool

Process() public static method

Loops through a players cards setting whether they're are playable with the card provided.
public static Process ( IList cards, Card activeCard ) : void
cards IList
activeCard UnoTV.Web.Domain.Card
return void