protected override void TalkSmack(CardPileViewModel pile, IGameClient client)
        {
            base.TalkSmack(pile, client);

            if (pile.Name == "Province")
                client.SendChatMessage("Province muthafucka!");

            if (pile.Name == "Colony")
                client.SendChatMessage("COLONY! SUCK IT!");
        }
示例#2
0
        protected override void TalkSmack(CardPileViewModel pile, IGameClient client)
        {
            base.TalkSmack(pile, client);

            if (pile.Name == "Province")
            {
                client.SendChatMessage("Province muthafucka!");
            }

            if (pile.Name == "Colony")
            {
                client.SendChatMessage("COLONY! SUCK IT!");
            }
        }
示例#3
0
 protected virtual void TalkSmack(CardPileViewModel pile, IGameClient client)
 {
 }
 public static bool Is <T>(this CardPileViewModel pile) where T : Card
 {
     return(pile.Name == typeof(T).Name);
 }
 public static bool IsAny(this CardPileViewModel pile, params CardType[] cardType)
 {
     return(pile.Types.Intersect(cardType.Select(ct => ct.ToString())).Any());
 }
 public static bool Is(this CardPileViewModel pile, CardType cardType)
 {
     return(IsAny(pile, new[] { cardType }));
 }
 protected virtual void TalkSmack(CardPileViewModel pile, IGameClient client)
 {
     
 }