summaryrefslogtreecommitdiff
path: root/src/ai/ai.hpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-13 14:00:26 +0000
committertruebrain <truebrain@openttd.org>2009-01-13 14:00:26 +0000
commitc3249d599fb4805b6c59e89c28c4d2720a7bcae0 (patch)
treefcc285a1912310512f00a09a911ee585210e5611 /src/ai/ai.hpp
parent405239758ecd3dad1d52322b2fea05ed350d15bb (diff)
downloadopenttd-c3249d599fb4805b6c59e89c28c4d2720a7bcae0.tar.xz
(svn r15059) -Add [NoAI]: use 'start_date' from the AI configure to see when an AI should start next
Diffstat (limited to 'src/ai/ai.hpp')
-rw-r--r--src/ai/ai.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ai/ai.hpp b/src/ai/ai.hpp
index 0bf0a1991..214b9e119 100644
--- a/src/ai/ai.hpp
+++ b/src/ai/ai.hpp
@@ -18,6 +18,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);