Exemplo n.º 1
0
    public static void initializeTacticCards()
    {
        TacticCard ambush = new TacticCard(MyEnum.TacticCards.Ambush, MyEnum.TacticCardPhase.Engagement_Defend, 3);

        tacticCardTypes.Add(ambush);
        //TacticCard breakout = new TacticCard(MyEnum.TacticCards.Breakout, MyEnum.TacticCardPhase.Escape, 3);
        //tacticCardTypes.Add(breakout);
        TacticCard counter = new TacticCard(MyEnum.TacticCards.CounterScheme, MyEnum.TacticCardPhase.Intelligence, 3);

        tacticCardTypes.Add(counter);
        TacticCard deception = new TacticCard(MyEnum.TacticCards.Deception, MyEnum.TacticCardPhase.Intelligence, 4);

        tacticCardTypes.Add(deception);
        TacticCard demoralRaid = new TacticCard(MyEnum.TacticCards.DemoralizingRaid, MyEnum.TacticCardPhase.Raid, 4);

        tacticCardTypes.Add(demoralRaid);
        TacticCard evasion = new TacticCard(MyEnum.TacticCards.Evasion, MyEnum.TacticCardPhase.Escape, 3);

        tacticCardTypes.Add(evasion);
        TacticCard feign = new TacticCard(MyEnum.TacticCards.FeignedRetreat, MyEnum.TacticCardPhase.Engagement_Defend, 3);

        tacticCardTypes.Add(feign);
        TacticCard flank = new TacticCard(MyEnum.TacticCards.Flank, MyEnum.TacticCardPhase.Engagement_Attack, 3);

        tacticCardTypes.Add(flank);
        TacticCard drandDec = new TacticCard(MyEnum.TacticCards.GrandDeception, MyEnum.TacticCardPhase.Intelligence, 3);

        tacticCardTypes.Add(drandDec);
        TacticCard indirect = new TacticCard(MyEnum.TacticCards.IndirectApproach, MyEnum.TacticCardPhase.Engagement_Attack, 3);

        tacticCardTypes.Add(indirect);
        TacticCard line = new TacticCard(MyEnum.TacticCards.LineDefense, MyEnum.TacticCardPhase.Engagement_Defend, 3);

        tacticCardTypes.Add(line);
        TacticCard mastermind = new TacticCard(MyEnum.TacticCards.Mastermind, MyEnum.TacticCardPhase.Intelligence, 3);

        tacticCardTypes.Add(mastermind);
        TacticCard spy = new TacticCard(MyEnum.TacticCards.MilitarySpy, MyEnum.TacticCardPhase.Intelligence, 3);

        tacticCardTypes.Add(spy);
        TacticCard pen = new TacticCard(MyEnum.TacticCards.Penetration, MyEnum.TacticCardPhase.Engagement_Attack, 3);

        tacticCardTypes.Add(pen);
        TacticCard recon = new TacticCard(MyEnum.TacticCards.Recon, MyEnum.TacticCardPhase.Intelligence, 5);

        tacticCardTypes.Add(recon);
        TacticCard repelRaid = new TacticCard(MyEnum.TacticCards.RepelRaid, MyEnum.TacticCardPhase.Raid, 3);

        tacticCardTypes.Add(repelRaid);
        TacticCard supRaid = new TacticCard(MyEnum.TacticCards.SupplyRaid, MyEnum.TacticCardPhase.Raid, 3);

        tacticCardTypes.Add(supRaid);
        TacticCard TargetedRaid = new TacticCard(MyEnum.TacticCards.TargetedRaid, MyEnum.TacticCardPhase.Raid, 3);

        tacticCardTypes.Add(TargetedRaid);
        TacticCard turtle = new TacticCard(MyEnum.TacticCards.TurtleDefense, MyEnum.TacticCardPhase.Engagement_Defend, 3);

        tacticCardTypes.Add(turtle);
    }
Exemplo n.º 2
0
    public static void collectTacticCards(Nation player)
    {
        player.increaseArmyLevel();
        if (player.getArmyLevel() < 3)
        {
            player.setMaximumTacticHandSize(6);
        }
        if (player.getArmyLevel() == 3)
        {
            player.setMaximumTacticHandSize(7);
        }
        if (player.getArmyLevel() == 5)
        {
            player.setMaximumTacticHandSize(8);
        }
        if (player.getArmyLevel() == 7)
        {
            player.setMaximumTacticHandSize(9);
        }
        if (player.getArmyLevel() == 9)
        {
            player.setMaximumTacticHandSize(10);
        }
        if (player.getArmyLevel() == 11)
        {
            player.setMaximumTacticHandSize(11);
        }
        if (player.getArmyLevel() == 13)
        {
            player.setMaximumTacticHandSize(12);
        }
        Debug.Log("Max number of card is now: " + player.getMaximumTacticHandSize());

        MyEnum.Era era         = State.era;
        int        numNewCards = 2;

        if (era == MyEnum.Era.Middle)
        {
            numNewCards = 3;
        }
        if (era == MyEnum.Era.Late)
        {
            numNewCards = 4;
        }
        int count = 0;
        Stack <TacticCard> deck = State.getTacticDeck();

        while (player.getTacticCards().Count <= player.getMaximumTacticHandSize() && count < numNewCards)
        {
            TacticCard newCard = deck.Pop();
            player.addTacticCard(newCard);
            Debug.Log("New Card is: " + newCard.type.ToString());
            count += 1;
        }
    }
Exemplo n.º 3
0
 public void removeTacticCard(TacticCard card)
 {
     this.tacticCards.Remove(card);
 }
Exemplo n.º 4
0
 public void addTacticCard(TacticCard card)
 {
     this.tacticCards.Add(card);
 }