--- a/src/ai/api/ai_controller.cpp Tue Feb 26 18:39:33 2008 +0000
+++ b/src/ai/api/ai_controller.cpp Tue Feb 26 21:35:22 2008 +0000
@@ -8,7 +8,13 @@
#include "../../player_func.h"
#include "../ai_threads.h"
-void AIController::Sleep(uint ticks)
+/* static */ void AIController::Sleep(uint ticks)
{
AI_SuspendPlayer(_current_player, ticks);
}
+
+/* static */ void AIController::Print(bool error_msg, const char *message)
+{
+ if (error_msg) fprintf(stderr, "%s", message);
+ else printf("%s", message);
+}