src/ai/api/ai_controller.hpp.sq
author truebrain
Sat, 07 Jun 2008 23:05:36 +0000
branchnoai
changeset 10853 87f2238f47d4
parent 10643 970417eef395
child 11097 6967c52c78c5
permissions -rw-r--r--
(svn r13404) [NoAI] -Change [API CHANGE]: AITile::IsBuildable no longer returns 'true' on road, but only on a halve piece of road (as that is auto-removed). This should make this function return less 'true', and more sane results :)
#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);
}