src/ai/ai.h
author truebrain
Mon, 30 Jun 2008 12:15:10 +0000
branchnoai
changeset 11097 6967c52c78c5
parent 10891 5ebb6f9068d0
child 11098 37d15a8951b8
permissions -rw-r--r--
(svn r13654) [NoAI] -Change [API CHANGE]: moved AISetting::SetCommandDelay to AIController::SetCommandDelay, as it was silly to have it in a seperate class, while it was part of the controller.
/* $Id$ */

/** @file ai.h Base functions for all AIs. */

#ifndef AI_H
#define AI_H

#include "api/ai_event_types.hpp"

bool AI_StartNewAI(PlayerID player);
void AI_PlayerDied(PlayerID player);
void AI_RunGameLoop();
void AI_Initialize();
void AI_KillAll();
void AI_Uninitialize();
bool AI_AllowNewAI();
void AI_ForceAI(const char *forced_ai);
void AI_Event(PlayerID player, AIEvent *event);
char *AI_GetConsoleList(char *p, const char *last);
bool AI_ImportLibrary(const char *library, const char *class_name, int version, HSQUIRRELVM vm);
void AI_Rescan();

void CcAI(bool success, TileIndex tile, uint32 p1, uint32 p2);

#endif /* AI_H */