Exemple #1
0
    public void EndTurn()
    {
        AbstractDungeon.Player.ApplyEndOfTurnTriggers();
        AbstractDungeon.ActionManager.AddToBottom(new ClearCardQueueAction());
        AbstractDungeon.ActionManager.AddToBottom(new DiscardAtEndOfTurnAction());
        for (int i = 0; i < AbstractDungeon.Player.DrawPile.Group.Count; i++)
        {
            AbstractCard tCard = AbstractDungeon.Player.DrawPile.Group[i];
            tCard.ResetAttributes();
        }

        for (int i = 0; i < AbstractDungeon.Player.DiscardPile.Group.Count; i++)
        {
            AbstractCard tCard = AbstractDungeon.Player.DiscardPile.Group[i];
            tCard.ResetAttributes();
        }

        for (int i = 0; i < AbstractDungeon.Player.Hand.Group.Count; i++)
        {
            AbstractCard tCard = AbstractDungeon.Player.Hand.Group[i];
            tCard.ResetAttributes();
        }

        if (null != AbstractDungeon.Player.HoveredCard)
        {
            AbstractDungeon.Player.HoveredCard.ResetAttributes();
        }
    }