1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Some work towards useful AI:

-It is possible to toggle adventure AI on / off typing "ai" in the console (default is true)
-General cleaning and formatting of code
-Some minor optimizations
-Teal console log for AI

AI tends to hang in the maze of mutexes and current player interface, further investigation is needed.

Fixed #580
minor tweaks
This commit is contained in:
DjWarmonger
2010-11-28 16:39:13 +00:00
parent 73a4c2e446
commit ea03273c8e
11 changed files with 555 additions and 493 deletions

View File

@ -42,6 +42,7 @@
#define CONSOLE_YELLOW FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY
#define CONSOLE_WHITE FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY
#define CONSOLE_GRAY FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE
#define CONSOLE_TEAL FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY
#endif
TColor defColor;
@ -168,6 +169,9 @@ void CConsoleHandler::setColor(int level)
case 5:
color = CONSOLE_GRAY;
break;
case -2:
color = CONSOLE_TEAL;
break;
default:
color = defColor;
break;