Jeck - Added theme substyles, which are chosen dynamically based on the player's deck composition. Also added lazy unit test for booster packs, though there should be a better way to framework this.

This commit is contained in:
wagic.jeck
2010-08-28 10:51:38 +00:00
parent 3ad28096b1
commit 8114944db9
46 changed files with 415 additions and 26 deletions
+8 -2
View File
@@ -47,6 +47,12 @@ class TestSuiteState{
void cleanup();
};
class TestSuitePregame{
public:
virtual void performTest() = 0;
};
class TestSuite{
public:
MTGAllCards* collection;
@@ -67,13 +73,14 @@ class TestSuite{
int load(const char * filename);
TestSuite(const char * filename,MTGAllCards* _collection);
void initGame();
void pregameTests();
int assertGame();
MTGPlayerCards * buildDeck(int playerId);
string getNextAction();
Interruptible * getActionByMTGId(int mtgid);
int loadNext();
void cleanup();
int Log(const char * text);
static int Log(const char * text);
};
@@ -85,7 +92,6 @@ class TestSuiteAI:public AIPlayerBaka{
TestSuiteAI(TestSuite * suite, int playerId);
virtual int Act(float dt);
virtual int displayStack();
};