(svn r15059) -Add [NoAI]: use 'start_date' from the AI configure to see when an AI should start next

This commit is contained in:
truebrain
2009-01-13 14:00:26 +00:00
parent 60d4900381
commit ee17e1e7b8
4 changed files with 41 additions and 7 deletions

View File

@@ -17,6 +17,15 @@ void CcAI(bool success, TileIndex tile, uint32 p1, uint32 p2);
class AI {
public:
/**
* The default months AIs start after eachother.
*/
enum StartNext {
START_NEXT_EASY = 48,
START_NEXT_MEDIUM = 24,
START_NEXT_HARD = 12,
};
/**
* Is it possible to start a new AI company?
* @return True if a new AI company can be started.
@@ -88,6 +97,11 @@ public:
*/
static void Load(CompanyID company, int version);
/**
* Get the number of months before the next AI should start.
*/
static int GetStartNextTime();
static char *GetConsoleList(char *p, const char *last);
static const AIInfoList *GetInfoList();
static AIInfo *FindInfo(const char *name, int version);