src/ai/api/ai_controller.hpp.sq
author truebrain
Fri, 22 Feb 2008 12:30:17 +0000
branchnoai
changeset 9737 ee408edf3851
parent 9596 8af5a1399842
child 9743 4c44aa6a8f43
permissions -rw-r--r--
(svn r12216) [NoAI] -Codechange: made most functions 'static', which removes the need to create an instance to get, for example, engine information, and therefor heavily simplifying AI creation (Morloth)
#include "ai_controller.hpp"

void SQAIControllerRegister(Squirrel *engine) {
	DefSQClass <AIControllerSquirrel> SQAIController("AIController");
	SQAIController.PreRegister(engine);
	SQAIController.DefSQMethod(engine, &AIControllerSquirrel::GetTick, "GetTick");
	SQAIController.DefSQMethod(engine, &AIControllerSquirrel::Sleep,   "Sleep");
	SQAIController.PostRegister(engine);
}