--- a/src/ai/api/ai_transactionmode.hpp Sun Mar 30 20:58:41 2008 +0000
+++ b/src/ai/api/ai_transactionmode.hpp Mon Mar 31 06:32:27 2008 +0000
@@ -1,6 +1,6 @@
/* $Id$ */
-/** @file ai_transactionmode.hpp class to switch the AI to Transaction mode */
+/** @file ai_transactionmode.hpp Switch the AI to Transaction Mode. */
#ifndef AI_TRANSACTIONMODE_HPP
#define AI_TRANSACTIONMODE_HPP
@@ -21,6 +21,9 @@
* built things.
*/
class AITransactionMode : public AIObject {
+public:
+ static const char *GetClassName() { return "AITransactionMode"; }
+
private:
struct AITransactionModeCommand {
TileIndex tile;
@@ -45,11 +48,6 @@
public:
/**
- * The name of the class, needed by several sub-processes.
- */
- static const char *GetClassName() { return "AITransactionMode"; }
-
- /**
* Creating instance of this class switches the build mode to Transaction.
* @note when the instance is destroyed, he restores the mode that was
* current when the instance was created!