Simplified the parsing, now the TestSuite reworks on Windows.

This commit is contained in:
Xawotihs
2011-10-01 17:07:11 +00:00
parent d47ece1202
commit daf362f736
8 changed files with 193 additions and 7 deletions
+2 -3
View File
@@ -76,7 +76,7 @@ int TestSuiteAI::displayStack()
int TestSuiteAI::Act(float dt)
{
observer->gameOver = NULL; // Prevent draw rule from losing the game
observer->gameOver = NULL; // Prevent draw rule from losing the game
//Last bits of initialization require to be done here, after the first "update" call of the game
if (suite->currentAction == 0)
@@ -261,8 +261,7 @@ TestSuiteState::TestSuiteState()
void TestSuiteState::parsePlayerState(int playerId, string s)
{
stringstream stream(s);
stream >> *players[playerId];
players[playerId]->parseLine(s);
}