// AIPlayer aiPlayer = player.getAIPlayer();
// AIBoosterStrategie st = aiPlayer.mBoosterStrategie;
Scoring sc = new Scoring();
sc.addScore(st.getLandDestroySetting()*10, AIHelper.AI_STRATEGIE_LAND_DESTROY);
sc.addScore(st.getCreatureSetting()*10, AIHelper.AI_STRATEGIE_CREATURE);
sc.addScore(st.getCreatureDamagePreference()*10, AIHelper.AI_STRATEGIE_CREATURE_DAMAGE);
sc.addScore(st.getHandSorceryPreference()*10, AIHelper.AI_STRATEGIE_HAND);
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)
{