Package csa.jportal.match

Examples of csa.jportal.match.ManaItem


        Vector<EAIAction> payment = new Vector<EAIAction>();
        if (items.size() >0 )
        {
            for (int i = 0; i < items.size(); i++)
            {
                ManaItem item = items.elementAt(i);
                payment.addElement(EAIAction.createActivateAction(0, phase, item.generatedBySim(), null, null));
            }
            payment.addElement(EAIAction.createPayManaAction(0, phase, cam.card));
        }

        if (cam.type == CardAndMana.CAM_PLAY)
View Full Code Here


            Vector<EAIAction> payment = new Vector<EAIAction>();
            if (items.size() >0 )
            {
                for (int i = 0; i < items.size(); i++)
                {
                    ManaItem item = items.elementAt(i);
                    payment.addElement(EAIAction.createActivateAction(i, -1, item.generatedBySim(), null, null));
                }
                EAIAction p = EAIAction.createPayManaAction(items.size(), -1, null);
                // p.source = pendingCommunication;
                payment.addElement(p);
                for (int i=0; i< payment.size(); i++)
View Full Code Here

        for (int i=0; i< landsOnly.size(); i++)
        {
            CardSim newLand = landsOnly.getCard(i);
            possibleMana = E.helper.getMaxAvailableManaUnstated(vMatch);
           
            ManaItem mana = ManaItem.createManaItem(newLand);
            possibleMana.addMana(mana);

            int count = EAIHelper.onlyEnoughMana(hand, possibleMana).size();
            if (count == preCount) continue;
            if (newLand.getNowColor().toUpperCase().indexOf("R") != -1)
View Full Code Here

                                if (items.size() >0 )
                                {
                                    for (int mi = 0; mi < items.size(); mi++)
                                    {
                                        // for now just tap them
                                        ManaItem item = items.elementAt(mi);
                                        CardSim manaCard = allCards.get(item.generatedBySim().getCard().getUniqueID());
                                        manaCard.setTapped(true);
                                    }
                                }

                            }
View Full Code Here

        for(int i=0; i < lands.size(); i++)
        {
            CardSim card = lands.getCard(i);
            if (card.isTapped()) continue;
            ManaItem mana = ManaItem.createManaItem(card);
            mc.addMana(mana);
        }

        for(int i=0; i < field.size(); i++)
        {
            CardSim card = field.getCard(i);

            String m = getManaGeneratingAbilityString(card.getCard());
            if (m.length() == 0) continue;
            if (card.isTapped()) continue;
            if (card.isSick()) continue;

            ManaItem mana = ManaItem.createManaItem(m, card);
            mc.addMana(mana);
        }
        return mc;
    }
View Full Code Here

        // todo cards that generate mana - played from hand

        for(int i=0; i < lands.size(); i++)
        {
            CardSim card = lands.getCard(i);
            ManaItem mana = ManaItem.createManaItem(card);
            mc.addMana(mana);
        }

        for(int i=0; i < field.size(); i++)
        {
            CardSim card = field.getCard(i);

            String m = getManaGeneratingAbilityString(card.getCard());
            if (m.length() == 0) continue;

            ManaItem mana = ManaItem.createManaItem(m, card);
            mc.addMana(mana);
        }
        return mc;
    }
View Full Code Here

        for(int i=0; i < lands.size(); i++)
        {
            CardSim card = lands.getCard(i);
            if (card.isTapped()) continue;
            ManaItem mana = ManaItem.createManaItem(card);
            mc.addMana(mana);
        }

        for(int i=0; i < field.size(); i++)
        {
            CardSim card = field.getCard(i);

            String m = getManaGeneratingAbilityString(card.getCard());
            if (m.length() == 0) continue;
            if (card.isTapped()) continue;
            if (card.isSick()) continue;

            ManaItem mana = ManaItem.createManaItem(m, card);
            mc.addMana(mana);
        }
        return mc;
    }
View Full Code Here

TOP

Related Classes of csa.jportal.match.ManaItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.