mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-10 09:50:17 +02:00
7f04ed990b
Introduction of pre compiled headers,...
28 lines
592 B
C++
28 lines
592 B
C++
#include "StdInc.h"
|
|
#include "CEmptyAI.h"
|
|
|
|
void CEmptyAI::init(CCallback * CB)
|
|
{
|
|
cb = CB;
|
|
human=false;
|
|
playerID=cb->getMyColor();
|
|
std::cout << "EmptyAI initialized." << std::endl;
|
|
}
|
|
void CEmptyAI::yourTurn()
|
|
{
|
|
cb->endTurn();
|
|
}
|
|
void CEmptyAI::heroKilled(const CGHeroInstance *)
|
|
{
|
|
}
|
|
void CEmptyAI::heroCreated(const CGHeroInstance *)
|
|
{
|
|
}
|
|
void CEmptyAI::heroMoved(const TryMoveHero& TMH)
|
|
{
|
|
}
|
|
void CEmptyAI::heroGotLevel(const CGHeroInstance *hero, int pskill, std::vector<ui16> &skills, boost::function<void(ui32)> &callback)
|
|
{
|
|
callback(rand()%skills.size());
|
|
}
|