diff --git a/projects/mtg/include/TestSuiteAI.h b/projects/mtg/include/TestSuiteAI.h index 24f87c0a3..ad8ee8d36 100644 --- a/projects/mtg/include/TestSuiteAI.h +++ b/projects/mtg/include/TestSuiteAI.h @@ -1,6 +1,8 @@ #ifndef _TESTSUITE_AI_H_ #define _TESTSUITE_AI_H_ +#ifdef TESTSUITE + #define MAX_TESTSUITE_ACTIONS 100 #define MAX_TESTUITE_CARDS 100 @@ -98,3 +100,4 @@ class TestSuiteAI:public AIPlayerBaka{ #endif +#endif \ No newline at end of file diff --git a/projects/mtg/src/TestSuiteAI.cpp b/projects/mtg/src/TestSuiteAI.cpp index d774fb0fd..b5c9753a4 100644 --- a/projects/mtg/src/TestSuiteAI.cpp +++ b/projects/mtg/src/TestSuiteAI.cpp @@ -11,6 +11,8 @@ using std::string; +#ifdef TESTSUITE + // NULL is sent in place of a MTGDeck since there is no way to create a MTGDeck without a proper deck file. // TestSuiteAI will be responsible for managing its own deck state. TestSuiteAI::TestSuiteAI(TestSuite * _suite, int playerId) : @@ -761,3 +763,4 @@ void TestSuite::pregameTests() if (!sb.unitTest()) nbFailed++; } } +#endif \ No newline at end of file