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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user