(svn r85) -Add: initial commit of new AI (enable in Patch menu)

-Add: generalised A* Algorithm
-Add: generalised queues (Fifo, Stack, InsSort, BinaryHeap)
This commit is contained in:
truelight
2004-08-20 09:32:32 +00:00
parent 80b1e25b6c
commit 788ace088d
23 changed files with 3688 additions and 27 deletions

3
ttd.c
View File

@@ -20,6 +20,7 @@
#include "hal.h"
#include "airport.h"
#include "saveload.h"
#include "ai.h"
#include <stdarg.h>
@@ -429,6 +430,7 @@ void SetDebugString(const char *s)
_debug_spritecache_level = v;
_debug_misc_level = v;
_debug_grf_level = v;
_debug_ai_level = v;
}
// individual levels
@@ -445,6 +447,7 @@ void SetDebugString(const char *s)
if IS_LVL("misc") p = &_debug_misc_level;
else if IS_LVL("spritecache") p = &_debug_spritecache_level;
else if IS_LVL("grf") p = &_debug_grf_level;
else if IS_LVL("ai") p = &_debug_ai_level;
else {
ShowInfoF("Unknown debug level '%.*s'", s-t, t);
return;