bin/ai/SQNoAI/main.nut
branchnoai
changeset 9449 8b688e6517d0
parent 9444 fd27df7ca2a0
child 9455 1ed0871b75e5
--- a/bin/ai/SQNoAI/main.nut	Sun Mar 18 00:00:51 2007 +0000
+++ b/bin/ai/SQNoAI/main.nut	Sun Mar 18 14:23:26 2007 +0000
@@ -19,16 +19,20 @@
 
 	function Start();
 	function Stop();
+	function GameLoop();
+}
+
+function SQNoAI::Start()
+{
+	while (!this.stop) {
+		this.Sleep(1);
+		this.GameLoop();
+	}
 }
 
 /* Define the GameLoop. This is called every tick. */
-function SQNoAI::Start()
+function SQNoAI::GameLoop()
 {
-	while (!this.stop) {
-		print("Look at me!" + this.GetTick());
-		this.Sleep(50);
-	}
-	return;
 	if (this.GetTick() == 1) {
 		if (!this.company.SetCompanyName("SQNoAI")) {
 			this.company.SetCompanyName("SQNoAI " + this.base.Random());