Ejemplo n.º 1
0
    static public void Anti_Capital(Player_Behavior opponent)
    {
        List <GameObject> opponentPlayfield = opponent.GetPlayField().GetComponent <SP_CardPile>().GetCardsInCardPile();

        foreach (GameObject card in opponentPlayfield)
        {
            CQBCard cardCharacteristics = card.GetComponent <CQBCard>();
            if (cardCharacteristics.GetUnitType() == CQBCard.UnitType.CAPITAL)
            {
                cardCharacteristics.SetPower(cardCharacteristics.GetCurrentPower() / 3);
                return;
            }
        }
    }
Ejemplo n.º 2
0
    static public void Bomber(Player_Behavior opponent)
    {
        List <GameObject> opponentPlayfield = opponent.GetPlayField().GetComponent <SP_CardPile>().GetCardsInCardPile();

        foreach (GameObject card in opponentPlayfield)
        {
            CQBCard cardCharacteristics = card.GetComponent <CQBCard>();
            if (cardCharacteristics.GetUnitType() == CQBCard.UnitType.FRIGATE && !cardCharacteristics.GetDebuff())
            {
                cardCharacteristics.SetPower(cardCharacteristics.GetCurrentPower() / 2);
                cardCharacteristics.SetDebuff();
                return;
            }
        }
    }