Issue: 474

modified player status to recognize that test suite has been activated.  This is to allow deactivation of "phase skip automation" game setting during test suite.  
TODO: fix "Phase Skip Automation" such that if turned on the test suite does not break.  This fix should be considered temporary
This commit is contained in:
techdragon.nguyen@gmail.com
2010-10-04 16:26:55 +00:00
parent 154ccc2555
commit 8e83e0d632
4 changed files with 10 additions and 14 deletions
+1 -9
View File
@@ -12,18 +12,10 @@
using std::string;
enum ENUM_PLAY_MODE
{
MODE_TEST_SUITE,
MODE_HUMAN,
MODE_AI,
};
TestSuiteAI::TestSuiteAI(TestSuite * _suite, int playerId):AIPlayerBaka(_suite->buildDeck(playerId),"testsuite", "testsuite","baka.jpg"){
suite = _suite;
timer = 0;
playMode = MODE_TEST_SUITE;
}
@@ -329,7 +321,7 @@ int TestSuite::assertGame(){
}
for (int i = 0; i < 2; i++){
TestSuiteAI * p = (TestSuiteAI *)(g->players[i]);
if (p->playMode == MODE_AI) wasAI = true;
if (p->playMode == Player::MODE_AI) wasAI = true;
if (p->life != endState.playerData[i].life){
sprintf(result, "<span class=\"error\">==life problem for player %i. Expected %i, got %i==</span><br />",i,endState.playerData[i].life, p->life);