2007-10-17 01:41:45 +03:00
|
|
|
#include "CEmptyAI.h"
|
2007-10-21 19:45:13 +03:00
|
|
|
#include <iostream>
|
2007-12-06 20:32:06 +02:00
|
|
|
void CEmptyAI::init(ICallback * CB)
|
2007-10-21 19:45:13 +03:00
|
|
|
{
|
|
|
|
cb = CB;
|
|
|
|
human=false;
|
2007-12-01 14:50:33 +02:00
|
|
|
playerID=cb->getMyColor();
|
2007-10-21 19:45:13 +03:00
|
|
|
std::cout << "EmptyAI initialized." << std::endl;
|
|
|
|
}
|
2007-10-17 01:41:45 +03:00
|
|
|
void CEmptyAI::yourTurn()
|
|
|
|
{
|
2008-07-27 20:07:37 +03:00
|
|
|
cb->endTurn();
|
2007-10-17 01:41:45 +03:00
|
|
|
}
|
2008-02-05 05:56:45 +02:00
|
|
|
void CEmptyAI::heroKilled(const CGHeroInstance *)
|
2007-10-17 01:41:45 +03:00
|
|
|
{
|
|
|
|
}
|
2008-02-05 05:56:45 +02:00
|
|
|
void CEmptyAI::heroCreated(const CGHeroInstance *)
|
2007-10-17 01:41:45 +03:00
|
|
|
{
|
|
|
|
}
|
2011-01-29 21:07:49 +02:00
|
|
|
void CEmptyAI::heroMoved(const TryMoveHero& TMH)
|
2007-10-17 01:41:45 +03:00
|
|
|
{
|
2008-08-13 03:44:31 +03:00
|
|
|
}
|
|
|
|
void CEmptyAI::heroGotLevel(const CGHeroInstance *hero, int pskill, std::vector<ui16> &skills, boost::function<void(ui32)> &callback)
|
|
|
|
{
|
|
|
|
callback(rand()%skills.size());
|
2010-08-04 06:32:24 +03:00
|
|
|
}
|