src/ai/api/ai_controller.hpp.sq
author truelight
Sun, 19 Aug 2007 13:16:06 +0000
branchnoai
changeset 9696 4384ed3de1f0
parent 9596 8af5a1399842
child 9743 4c44aa6a8f43
permissions -rw-r--r--
(svn r10937) [NoAI] -Add: added AIStation::GetName on request by Nickman
[NoAI] -Fix: AICompant::GetCompanyName returned \0 for invalid company instead of NULL
#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);
}