src/ai/api/ai_object.hpp
branchnoai
changeset 9441 03da911c8d5f
parent 9427 ef0c109c5661
child 9448 2a4c4340233d
--- a/src/ai/api/ai_object.hpp	Fri Mar 16 10:14:14 2007 +0000
+++ b/src/ai/api/ai_object.hpp	Fri Mar 16 17:03:49 2007 +0000
@@ -5,21 +5,15 @@
 #ifndef AI_OBJECT_HPP
 #define AI_OBJECT_HPP
 
-#include "../../stdafx.h"    // Needed for functions.h
-#include "../../functions.h" // Needed for command.h
-#include "../../command.h"   // Needed for CommandCallback
+#include "../../stdafx.h"
+#include "../../functions.h"
 
 class AIObject {
 protected:
 	/**
-	 * Executes a raw DoCommandCc for the AI.
-	 */
-	int32 DoCommandCc(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc, CommandCallback *callback);
-
-	/**
 	 * Executes a raw DoCommand for the AI.
 	 */
-	int32 DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) { return this->DoCommandCc(tile, p1, p2, flags, procc, NULL); }
+	int32 DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc);
 
 	/**
 	 * Checks if the result of a DoCommand went wrong.