#include "CEmptyAI.h" #include void CEmptyAI::init(ICallback * 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 &skills, boost::function &callback) { callback(rand()%skills.size()); }