2012-02-14 21:04:45 +03:00
|
|
|
#pragma once
|
|
|
|
#include "../../Global.h"
|
|
|
|
#include <cassert>
|
|
|
|
#include <boost/lexical_cast.hpp>
|
|
|
|
#include <boost/format.hpp>
|
|
|
|
#include <boost/range/algorithm.hpp>
|
|
|
|
#include <boost/type_traits.hpp>
|
|
|
|
#include "../../lib/AI_Base.h"
|
|
|
|
#include "../../CCallback.h"
|
|
|
|
#include "../../lib/CObjectHandler.h"
|
|
|
|
|
|
|
|
#include <boost/foreach.hpp>
|
|
|
|
#include "../../lib/CThreadHelper.h"
|
|
|
|
#include <boost/thread/tss.hpp>
|
|
|
|
|
|
|
|
#include "../../lib/VCMI_Lib.h"
|
|
|
|
#include "../../lib/CBuildingHandler.h"
|
|
|
|
#include "../../lib/CCreatureHandler.h"
|
|
|
|
#include "../../lib/CTownHandler.h"
|
|
|
|
#include "../../lib/CSpellHandler.h"
|
|
|
|
#include "../../lib/CObjectHandler.h"
|
|
|
|
#include "../../lib/Connection.h"
|
|
|
|
#include "../../lib/CGameState.h"
|
|
|
|
#include "../../lib/map.h"
|
|
|
|
#include "../../lib/NetPacks.h"
|
|
|
|
#include "../../lib/CondSh.h"
|
|
|
|
#include "../../lib/CStopWatch.h"
|
|
|
|
|
2012-07-01 02:48:40 +03:00
|
|
|
#include "Fuzzy.h"
|
|
|
|
|
2012-02-14 21:04:45 +03:00
|
|
|
#include <fstream>
|
|
|
|
#include <queue>
|
|
|
|
|
|
|
|
using boost::format;
|
|
|
|
using boost::str;
|
|
|
|
|
|
|
|
|
2012-02-22 22:22:11 +03:00
|
|
|
extern CLogger &aiLogger;
|
|
|
|
|
2012-02-14 21:04:45 +03:00
|
|
|
#define INDENT AILogger::Tab ___dummy_ind
|
2012-02-22 22:22:11 +03:00
|
|
|
#define PNLOG(txt) {int i = logger.lvl; while(i--) aiLogger << "\t"; aiLogger << txt << "\n";}
|
|
|
|
#define BNLOG(txt, formattingEls) {int i = logger.lvl; while(i--) aiLogger << "\t"; aiLogger << (boost::format(txt) % formattingEls) << "\n";}
|
2012-02-14 21:04:45 +03:00
|
|
|
//#define LOG_ENTRY PNLOG("Entered " __FUNCTION__)
|
|
|
|
#define LOG_ENTRY
|
|
|
|
|