- Split AIPlayer and AIPlayerBaka in 2 files. Moved all "AI" specific code into AIPlayerBaka, as much as possible.
-- This is a copy/paste and shouldn't have any impact on the logic. I just moved some functions from AIPlayer to AIPlayerBaka - Added back the possibility to select a different Resource folder with file Res.txt - Fix a crash when a token id does not exist
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
#include "AIPlayer.h"
|
||||
#include "AIPlayerBaka.h"
|
||||
|
||||
class ManaCost;
|
||||
class MTGAbility;
|
||||
@@ -24,7 +24,7 @@ public:
|
||||
class AIHints
|
||||
{
|
||||
protected:
|
||||
AIPlayer * mPlayer;
|
||||
AIPlayerBaka * mPlayer;
|
||||
vector<AIHint *> hints;
|
||||
AIHint * getByCondition (string condition);
|
||||
AIAction * findAbilityRecursive(AIHint * hint, ManaCost * potentialMana);
|
||||
@@ -34,7 +34,7 @@ protected:
|
||||
bool findSource(int sourceId);
|
||||
bool abilityMatches(MTGAbility * a, AIHint * hint);
|
||||
public:
|
||||
AIHints (AIPlayer * player);
|
||||
AIHints (AIPlayerBaka * player);
|
||||
AIAction * suggestAbility(ManaCost * potentialMana);
|
||||
void add(string line);
|
||||
~AIHints();
|
||||
|
||||
Reference in New Issue
Block a user