Package csa.jportal.ai.helper

Examples of csa.jportal.ai.helper.Pair


        sc.addScore(st.getHealingPreference()*10, AIHelper.AI_STRATEGIE_HEALING);
        sc.addScore(st.getPlayerDamagePreference()*10, AIHelper.AI_STRATEGIE_PLAYER_DAMAGE);
        sc.sort();

        int listSize = 0;
        Pair pairs[] = new Pair[7];
        for (int i=0; i<6; i++)
        {
            pairs[i] = new Pair();
            pairs[i].type = sc.getHighScoreTypeString();
            pairs[i].value = sc.getHighScoreValue();
            pairs[i].wanted = (pairs[i].value != 0);

            pairs[i].subListHeap = AIHelper.getSubListByType(tHeap, pairs[i].type);

            pairs[i].subListBooster = AIHelper.getSubListByType(tBooster, pairs[i].type);
            if (tHeap.size() > 0)
                pairs[i].current = (pairs[i].subListHeap.size()*100) / tHeap.size();
            sc.removeType(pairs[i].type);
            listSize += pairs[i].subListBooster.size();
        }
        pairs[6] = new Pair();
        if (listSize==0)
        {
            pairs[6].subListBooster = tHeap.copyList();
        }

View Full Code Here

TOP

Related Classes of csa.jportal.ai.helper.Pair

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.