mAIPlayer.getData().mInternalAI = jCheckBoxInternalAI.isSelected();
mAIPlayer.getData().mClassName = jTextField1.getText();
if (!mAIPlayer.isScriptedAI())
{
EAIConfigurationData eaiConfig = mAIPlayer.getEAIConfig();
if (eaiConfig == null) eaiConfig = new EAIConfigurationData();
mAIPlayer.setEAIConfig(eaiConfig);
eaiConfig.mName = mAIPlayer.getData().mName;
if (jComboBox6.getSelectedIndex() == -1) // default...
eaiConfig.setMaxEaiDepth(EAIConstants.EAI_SIM_DEPTH_BLOCK_OF_OPPONENTS_ATTACK);
else
{
int s = jComboBox6.getSelectedIndex();
eaiConfig.setMaxEaiDepth(s);
}
String s = jTextField2.getText();
int ss = csa.util.UtilityString.IntX(s, 5);
eaiConfig.setMaxEAIWidth(ss);
s = jTextField3.getText();
ss = csa.util.UtilityString.IntX(s, 5);
eaiConfig.setAttackDecrease(jCheckBoxAttackDecrease.isSelected());
eaiConfig.setAttackIncrease(jCheckBoxAttackIncrease.isSelected());
eaiConfig.setAttackByPower(jCheckBoxPower.isSelected());
eaiConfig.setAttackByToughness(jCheckBoxToughness.isSelected());
eaiConfig.setAttackStepCount(csa.util.UtilityString.IntX(jTextFieldAttackStep.getText(),0));
eaiConfig.setreduceXCountToMax(csa.util.UtilityString.IntX(jTextFieldReduceX.getText(),0));
eaiConfig.setInternalOOMPrevention(jCheckBoxOOMPrevention.isSelected());
eaiConfig.setSavetyHealthThreshold(csa.util.UtilityString.IntX(jTextFieldAttackThreshold.getText(),0));
eaiConfig.setReduceLibrarySearch(ss);
eaiConfig.setLandForceMain1(jCheckBox4.isSelected());
eaiConfig.setOnlyLeafScoring(jCheckBoxLeafScoring.isSelected());
eaiConfig.setEAIAdjustmentBorder(csa.util.UtilityString.IntX(jTextFieldAdjustment.getText(),0));
eaiConfig.setreduceSingleTargetPermutation(csa.util.UtilityString.IntX(jTextFieldSingleTargetReduction.getText(),0));
eaiConfig.setOpponentAdaptiveBlocking(jCheckBoxAdaptiveBlocking.isSelected());
eaiConfig.setOpponentBlockStrategy(jComboBoxOpponentBlockStrategy.getSelectedIndex());
eaiConfig.setDontDamageOwn(jCheckBox6.isSelected());
eaiConfig.setEnableCombatCaching(jCheckBoxcombatEvalCache.isSelected());
eaiConfig.setEnableAttackPreCombatScoring(jCheckBoxExperimentActive.isSelected());
eaiConfig.setTrySimpleBLock(jCheckBoxSimpleBlock.isSelected());
eaiConfig.setTrySimpleAttack(jCheckBoxSimpleAttack.isSelected());
eaiConfig.setTryExtremeTesting(jCheckBoxExtremeTesting.isSelected());
eaiConfig.setUseScoringInBlockEvaluation(jCheckBoxScoringInBlocking.isSelected());
eaiConfig.setReducedActivationEvaluation(jCheckBoxReducedActivation.isSelected());
eaiConfig.setMaximizeTargetSelection(jCheckBox7.isSelected());
eaiConfig.setDoAttackOnNoBlocker(jCheckBox8.isSelected());
eaiConfig.setDoQuickReblockAnalyze(jCheckBox9.isSelected());
eaiConfig.setOnlyFullBlockerList(jCheckBoxFullBlockerlist.isSelected());
eaiConfig.setBlockerInDefensiveOrder(jCheckBoxBlockDefOrder.isSelected());
eaiConfig.setRemoveNonEffectiveBlockers(jCheckBoxRemoveNonEffectiveBlockers.isSelected());
eaiConfig.setRemoveUnblockableAttackers(jCheckBoxUnblockableAttackers.isSelected());
eaiConfig.setRemoveUnblockableBlockers(jCheckBoxRemoveUnblockableBlockers.isSelected());
if (jComboBoxScoringCollectionActive.getSelectedIndex() != -1)
eaiConfig.setActiveWeightingCollection(jComboBoxScoringCollectionActive.getSelectedItem().toString());
/*
if (jCheckBox5.isSelected())
{
eaiConfig.setActiveWeightingCollection("REAL_INTERNAL");
}