Added action logging during attack/block of the AI player. To do that, I wrapped some of the direct access from the player to the action layer into the game observer.

First version where I managed to finish a normal game while undoing several actions until the end. There are still some problems in direct damage spells and interruption management. I added several assert in the code to catch them.
This commit is contained in:
Xawotihs
2011-10-16 22:16:47 +00:00
parent 8554076f3c
commit 84a074aede
5 changed files with 198 additions and 124 deletions

View File

@@ -183,11 +183,14 @@ bool JFileSystem::DirExists(const string& strDirname)
bool JFileSystem::FileExists(const string& strFilename)
{
izfstream temp;
bool result = openForRead(temp, strFilename);
if (temp)
temp.close();
bool result = false;
if(strFilename != "")
{
izfstream temp;
result = openForRead(temp, strFilename);
if (temp)
temp.close();
}
return result;
}