public void ChameleosReveal(string cardId)
 {
     if (InDeckPrecitions.All(x => x.CardId != cardId))
     {
         InDeckPrecitions.Add(new PredictedCard(cardId, 0));
     }
 }
Exemplo n.º 2
0
 public void PredictUniqueCardInDeck(string cardId, bool isCreated)
 {
     if (InDeckPrecitions.All(x => x.CardId != cardId))
     {
         InDeckPrecitions.Add(new PredictedCard(cardId, 0, isCreated));
     }
 }
Exemplo n.º 3
0
        private void UpdateKnownEntitesInDeck(string cardId, int turn = int.MaxValue)
        {
            var card = InDeckPrecitions.FirstOrDefault(x => x.CardId == cardId && turn >= x.Turn);

            if (card != null)
            {
                InDeckPrecitions.Remove(card);
            }
        }
Exemplo n.º 4
0
 public void Reset()
 {
     Name       = "";
     Class      = "";
     Id         = -1;
     GoingFirst = false;
     Fatigue    = 0;
     InDeckPrecitions.Clear();
 }
Exemplo n.º 5
0
 public void Reset()
 {
     Name       = "";
     Class      = "";
     Id         = -1;
     GoingFirst = false;
     Fatigue    = 0;
     InDeckPrecitions.Clear();
     SpellsPlayedCount     = 0;
     PogoHopperPlayedCount = 0;
 }
 public void Reset()
 {
     Name       = "";
     Class      = "";
     Id         = -1;
     GoingFirst = false;
     Fatigue    = 0;
     InDeckPrecitions.Clear();
     SpellsPlayedCount     = 0;
     PogoHopperPlayedCount = 0;
     CardsPlayedThisTurn.Clear();
     LastDrawnCardId = null;
 }
Exemplo n.º 7
0
 public void Reset()
 {
     Name    = "";
     Class   = "";
     Id      = -1;
     Fatigue = 0;
     InDeckPrecitions.Clear();
     SpellsPlayedCount     = 0;
     PogoHopperPlayedCount = 0;
     CardsPlayedThisTurn.Clear();
     LastDrawnCardId      = null;
     LibramReductionCount = 0;
 }
Exemplo n.º 8
0
        public void JoustReveal(Entity entity, int turn)
        {
            entity.Info.Turn = turn;
            var card = InDeckPrecitions.FirstOrDefault(x => x.CardId == entity.CardId);

            if (card != null)
            {
                card.Turn = turn;
            }
            else
            {
                InDeckPrecitions.Add(new PredictedCard(entity.CardId, turn));
            }
            Log(entity);
        }