src/ai/api/ai_controller.cpp
branchnoai
changeset 9782 e8d8d8894f23
parent 9724 b39bc69bb2f2
child 9833 89a64246458f
--- 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);
+}