You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
509 B
24 lines
509 B
using System;
|
|
using TheGameExtreme.model.card;
|
|
|
|
namespace TheGameExtreme.model.rule.playRules
|
|
{
|
|
public class Descendant : PlayRule
|
|
{
|
|
|
|
public static readonly String REGLE_DESCENDANT = "Descendant";
|
|
|
|
public Descendant()
|
|
{
|
|
}
|
|
|
|
public bool Test(Card upStack, Card playedCard, bool bottomUp)
|
|
{
|
|
if (bottomUp && playedCard.Value > upStack.Value)
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
} |