コード例 #1
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!");
        }
コード例 #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
ファイル: BuyBehaviourBase.cs プロジェクト: vladdou/Dominion
 protected virtual void TalkSmack(CardPileViewModel pile, IGameClient client)
 {
 }
コード例 #4
0
 public static bool Is <T>(this CardPileViewModel pile) where T : Card
 {
     return(pile.Name == typeof(T).Name);
 }
コード例 #5
0
 public static bool IsAny(this CardPileViewModel pile, params CardType[] cardType)
 {
     return(pile.Types.Intersect(cardType.Select(ct => ct.ToString())).Any());
 }
コード例 #6
0
 public static bool Is(this CardPileViewModel pile, CardType cardType)
 {
     return(IsAny(pile, new[] { cardType }));
 }
コード例 #7
0
 protected virtual void TalkSmack(CardPileViewModel pile, IGameClient client)
 {
     
 }