src/ai/api/ai_controller.hpp.sq
author rubidium
Sat, 12 Apr 2008 21:38:49 +0000
branchnoai
changeset 10142 56ee7da4ad56
parent 9782 e8d8d8894f23
child 10643 970417eef395
permissions -rw-r--r--
(svn r12673) [NoAI] -Sync: with trunk r12596:12672. Note that due to the order rewrite AIOrder.ChangeOrder does currently not work as expected.
#include "ai_controller.hpp"

void SQAIController_Register(Squirrel *engine) {
	DefSQClass <AIControllerSquirrel> SQAIController("AIController");
	SQAIController.PreRegister(engine);
	SQAIController.DefSQMethod(engine, &AIControllerSquirrel::GetTick, "GetTick", 1, "x");
	SQAIController.DefSQStaticMethod(engine, &AIControllerSquirrel::Sleep, "Sleep", 2, "xi");
	SQAIController.DefSQStaticMethod(engine, &AIControllerSquirrel::Print, "Print", 3, "xbs");
	SQAIController.PostRegister(engine);
}