}
}, test.mAfterRounds);
if (match.didMatchStart())
{
Match.mGameStarted = true;
JPortalInternalFrame frame = null;
if (jCheckBoxDebug.isSelected())
{
frame = mParent.showEAIDebug((mAITestData.mFixedAINumber+1)%2, match);
}
// must be set in order for all
// old AI actions to work,
// since it sometimes refferences match.Match.getLife() - e.g.
Match.match = match;
match.startMatch();
mBreak = false;
// synchronized (this)
{
try
{
while (!mBreak)
{
testerThread.sleep(100);
if (match.isPause())
{
jLabelRunning.setForeground(new java.awt.Color(204,0, 0));
jLabelRunning.setText("Pause!");
jButtonUnpause.setVisible(true);
unpauseMatch = match;
}
else
{
jLabelRunning.setForeground(new java.awt.Color(0, 204, 0));
jLabelRunning.setText("Running!");
jButtonUnpause.setVisible(false);
unpauseMatch = null;
}
if (mBreak)
{
continue;
}
}
}
catch (InterruptedException e)
{
System.out.println(e);
}
catch (Throwable e)
{
System.out.println(e);
e.printStackTrace();
}
}
if (frame != null)
{
try
{
frame.setClosed(true);
}
catch (Throwable e) {}
}
Match.match = null;
Match.mGameStarted = false;