- Added cache for the count of AI decks, to reduce file access especially on victory screen. This fixes some massive lags on the PSP when winning a game

- bumped version number to 0.17
- removed some dead code in utils.h
This commit is contained in:
wagic.the.homebrew
2011-12-07 14:34:59 +00:00
parent 17e506147e
commit 69a0323c86
7 changed files with 58 additions and 78 deletions

View File

@@ -67,6 +67,9 @@ public:
class AIPlayer: public Player{
private:
static int totalAIDecks; //a cache that counts the number of AI deck files in the AI folder. see getTotalAIDecks() below.
protected:
bool mFastTimerMode;
queue<AIAction *> clickstream;
@@ -98,6 +101,9 @@ public:
RandomGenerator* getRandomGenerator(){return &randomGenerator;};
bool parseLine(const string& s);
static int getTotalAIDecks();
static void invalidateTotalAIDecks();
};