Package csa.jportal.match

Examples of csa.jportal.match.ManaCollection


        }
        return mc;
    }
    public ManaCollection getMaxAvailableManaUnstated(VirtualMatch vMatch)
    {
        ManaCollection mc = new ManaCollection();

        CardSimList lands = vMatch.getLand(E.pNumber);
        CardSimList field = vMatch.getBattlefield(E.pNumber);
        // 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


        return mc;
    }

    public static ManaCollection getMaxAvailableMana(VirtualMatch vMatch, int player)
    {
        ManaCollection mc = new ManaCollection();

        CardSimList lands = vMatch.getLand(player);
        CardSimList field = vMatch.getBattlefield(player);
        // todo cards that generate mana - played from hand

        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.ManaCollection

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.