Public Member Functions | Static Public Member Functions | Private Attributes

AIInfo Class Reference

All static information from an AI like name, version, etc. More...

#include <ai_info.hpp>

Inheritance diagram for AIInfo:
ScriptInfo SimpleCountedObject

Public Member Functions

bool CanLoadFromVersion (int version) const
 Check if we can start this AI.
bool UseAsRandomAI () const
 Use this AI as a random AI.
const char * GetAPIVersion () const
 Get the API version this AI is written for.

Static Public Member Functions

static void RegisterAPI (Squirrel *engine)
 Register the functions of this class.
static SQInteger Constructor (HSQUIRRELVM vm)
 Create an AI, using this AIInfo as start-template.
static SQInteger DummyConstructor (HSQUIRRELVM vm)
 Create a dummy-AI.

Private Attributes

int min_loadable_version
 The AI can load savegame data if the version is equal or greater than this.
bool use_as_random
 Should this AI be used when the user wants a "random AI"?
const char * api_version
 API version used by this AI.

Detailed Description

All static information from an AI like name, version, etc.

Definition at line 19 of file ai_info.hpp.


The documentation for this class was generated from the following files: