~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/ai/api/ai_controller.hpp.sq

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman
  • Date: 2009-06-09 21:46:28 UTC
  • mfrom: (1.1.7 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090609214628-6z5uodi6178z050l
[ Matthijs Kooijman ]
* New upstream release.
* Link against libicu to enable right-to-left language support. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: ai_controller.hpp.sq 15462 2009-02-13 00:18:56Z yexo $ */
 
1
/* $Id: ai_controller.hpp.sq 16272 2009-05-10 21:26:46Z rubidium $ */
2
2
 
3
3
#include "ai_controller.hpp"
4
4
 
5
5
void SQAIController_Register(Squirrel *engine) {
6
6
        DefSQClass <AIController> SQAIController("AIController");
7
7
        SQAIController.PreRegister(engine);
8
 
        SQAIController.DefSQStaticMethod(engine, &AIController::GetTick,         "GetTick",         1, "?");
9
 
        SQAIController.DefSQStaticMethod(engine, &AIController::SetCommandDelay, "SetCommandDelay", 2, "?i");
10
 
        SQAIController.DefSQStaticMethod(engine, &AIController::Sleep,           "Sleep",           2, "?i");
11
 
        SQAIController.DefSQStaticMethod(engine, &AIController::GetSetting,      "GetSetting",      2, "?s");
12
 
        SQAIController.DefSQStaticMethod(engine, &AIController::Print,           "Print",           3, "?bs");
 
8
        SQAIController.DefSQStaticMethod(engine, &AIController::GetTick,         "GetTick",         1, ".");
 
9
        SQAIController.DefSQStaticMethod(engine, &AIController::SetCommandDelay, "SetCommandDelay", 2, ".i");
 
10
        SQAIController.DefSQStaticMethod(engine, &AIController::Sleep,           "Sleep",           2, ".i");
 
11
        SQAIController.DefSQStaticMethod(engine, &AIController::GetSetting,      "GetSetting",      2, ".s");
 
12
        SQAIController.DefSQStaticMethod(engine, &AIController::GetVersion,      "GetVersion",      1, ".");
 
13
        SQAIController.DefSQStaticMethod(engine, &AIController::Print,           "Print",           3, ".bs");
13
14
        SQAIController.PostRegister(engine);
14
15
}