src/ai/api/ai_controller.hpp.sq
author truebrain
Mon, 19 May 2008 14:11:21 +0000
branchnoai
changeset 10643 970417eef395
parent 9782 e8d8d8894f23
child 11097 6967c52c78c5
permissions -rw-r--r--
(svn r13187) [NoAI] -Codechange: rewrote the AI register part; C++ AIs are completely impossible now, and registration happens directly via AISquirrel. This cleans up the registration flow, and makes everything readable again, as sure I made a mess out of it :)
[NoAI] -Codechange: as a side-effect, ai_controller.cpp now includes all .hpp.sq
#include "ai_controller.hpp"

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