Beispiel #1
0
        public void CreateInHand(Entity entity, int turn)
        {
            var ce = new CardEntity(entity)
            {
                Turn = turn, CardMark = CardMark.Created, Created = true
            };

            Hand.Add(ce);
            if (IsLocalPlayer)
            {
                CreatedInHandCardIds.Add(entity.CardId);
            }
            Log("CreateInHand", ce);
        }
Beispiel #2
0
        public void CreateInHand(Entity entity, int turn)
        {
            var ce = new CardEntity(entity)
            {
                Turn = turn, CardMark = CardMark.Created, Created = true
            };

            if (entity != null &&
                (entity.CardId == HearthDb.CardIds.NonCollectible.Neutral.TheCoin ||
                 entity.CardId == HearthDb.CardIds.NonCollectible.Neutral.GallywixsCoinToken))
            {
                ce.CardMark = CardMark.Coin;
            }
            Hand.Add(ce);
            if (IsLocalPlayer)
            {
                CreatedInHandCardIds.Add(entity.CardId);
            }
            Log("CreateInHand", ce);
        }
Beispiel #3
0
        public void Reset()
        {
            Name                = "";
            Class               = "";
            Id                  = -1;
            GoingFirst          = false;
            Fatigue             = 0;
            DrawnCardsMatchDeck = true;
            Hand.Clear();
            Board.Clear();
            Deck.Clear();
            Graveyard.Clear();
            Secrets.Clear();
            DrawnCardIds.Clear();
            DrawnCardIdsTotal.Clear();
            RevealedCards.Clear();
            CreatedInHandCardIds.Clear();
            Removed.Clear();

            for (var i = 0; i < DeckSize; i++)
            {
                Deck.Add(new CardEntity(null));
            }
        }