예제 #1
0
        public void UpdateZonePos(TAG_ZONE zone, int turn)
        {
            switch (zone)
            {
            case TAG_ZONE.HAND:
                Hand.Sort(ZonePosComparison);
                if (!IsLocalPlayer && turn == 0 && Hand.Count == 5 && Hand[4].Entity.Id > 67)
                {
                    Hand[4].CardMark = CardMark.Coin;
                    Hand[4].Created  = true;
                    Deck.Add(new CardEntity(null));
                    Log("Coin", Hand[4]);
                }
                break;

            case TAG_ZONE.PLAY:
                Board.Sort(ZonePosComparison);
                break;
            }
        }
예제 #2
0
        public void UpdateZonePos(Entity entity, TAG_ZONE zone, int turn)
        {
            //Todo: figure out why CardEntity.Entity needs to be updated manually for zonepos to be correct.
            switch (zone)
            {
            case TAG_ZONE.HAND:
                UpdateCardEntity(entity);
                Hand.Sort(ZonePosComparison);
                if (!IsLocalPlayer && turn == 0 && Hand.Count == 5 && Hand[4].Entity.Id > 67)
                {
                    Hand[4].CardMark = CardMark.Coin;
                    Hand[4].Created  = true;
                    Deck.Add(new CardEntity(null));
                    Log("Coin " + Hand[4]);
                }
                break;

            case TAG_ZONE.PLAY:
                UpdateCardEntity(entity);
                Board.Sort(ZonePosComparison);
                break;
            }
        }
예제 #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));
            }
        }