src/ai/api/ai_testmode.hpp
branchnoai
changeset 9829 80fbe02a4184
parent 9629 66dde6412125
child 9839 ea94d60d13e7
--- a/src/ai/api/ai_testmode.hpp	Sun Mar 30 20:58:41 2008 +0000
+++ b/src/ai/api/ai_testmode.hpp	Mon Mar 31 06:32:27 2008 +0000
@@ -1,6 +1,6 @@
 /* $Id$ */
 
-/** @file ai_testmode.hpp class to switch the AI to Testing mode */
+/** @file ai_testmode.hpp Switch the AI to Test Mode. */
 
 #ifndef AI_TESTMODE_HPP
 #define AI_TESTMODE_HPP
@@ -8,7 +8,7 @@
 #include "ai_object.hpp"
 
 /**
- * Class to switch current mode to Testing mode.
+ * Class to switch current mode to Test Mode.
  * If you create an instance of this class, the mode will be switched to
  *   Testing. The original mode is stored and recovered from when ever the
  *   instance is destroyed.
@@ -17,6 +17,9 @@
  *   the cost would be.
  */
 class AITestMode : public AIObject {
+public:
+	static const char *GetClassName() { return "AITestMode"; }
+
 private:
 	AIModeProc *last_mode;
 	AIObject *last_instance;
@@ -29,11 +32,6 @@
 
 public:
 	/**
-	 * The name of the class, needed by several sub-processes.
-	 */
-	static const char *GetClassName() { return "AITestMode"; }
-
-	/**
 	 * Creating instance of this class switches the build mode to Testing.
 	 * @note when the instance is destroyed, he restores the mode that was
 	 *   current when the instance was created!