Esempio n. 1
0
 public void ResolveCard(Card_Game card)
 {
     // Remove and reposition hand
     hand.Remove(card.gameObject);
     Destroy(card.gameObject);
     RepositionCards();
 }
Esempio n. 2
0
    //Handling the self-aspects of the card (costs, etc)
    public void ResolveCard(Card_Game card)
    {
        //Subtract Mana
        SetManaPool(manaPool - (uint)card.data.Cost);
        hand.CostDisable(manaPool);

        //Send card down the pipeline
        hand.ResolveCard(card);
    }
Esempio n. 3
0
    //Handles interactions between players (damage, etc)
    public void ResolveCard(Card_Game card)
    {
        //Damage
        int newHealth = players[((int)currentPlayer + 1) % 2].TakeDamage(card.data.AP + card.data.TP);

        if (newHealth <= 0)
        {
            SetWinner(currentPlayer);
        }
        //Send card down the pipeline
        players[(int)currentPlayer].ResolveCard(card);
    }