1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
vcmi/AI/EmptyAI/CEmptyAI.cpp
Michał W. Urbańczyk b89c951d09 * version set to 0.62
* almost redone treasure chest
* working gaining levels for heroes (including dialog with skill selection)
* corrected another typo i cr_shots
2008-08-13 00:44:31 +00:00

27 lines
619 B
C++

#include "CEmptyAI.h"
#include <iostream>
void CEmptyAI::init(ICallback * CB)
{
cb = CB;
human=false;
playerID=cb->getMyColor();
serialID=cb->getMySerial();
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 HeroMoveDetails &)
{
}
void CEmptyAI::heroGotLevel(const CGHeroInstance *hero, int pskill, std::vector<ui16> &skills, boost::function<void(ui32)> &callback)
{
callback(rand()%skills.size());
}