mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
serialID is gone.
This commit is contained in:
@@ -5,7 +5,6 @@ void CEmptyAI::init(ICallback * CB)
|
|||||||
cb = CB;
|
cb = CB;
|
||||||
human=false;
|
human=false;
|
||||||
playerID=cb->getMyColor();
|
playerID=cb->getMyColor();
|
||||||
serialID=cb->getMySerial();
|
|
||||||
std::cout << "EmptyAI initialized." << std::endl;
|
std::cout << "EmptyAI initialized." << std::endl;
|
||||||
}
|
}
|
||||||
void CEmptyAI::yourTurn()
|
void CEmptyAI::yourTurn()
|
||||||
@@ -24,4 +23,4 @@ void CEmptyAI::heroMoved(const HeroMoveDetails &)
|
|||||||
void CEmptyAI::heroGotLevel(const CGHeroInstance *hero, int pskill, std::vector<ui16> &skills, boost::function<void(ui32)> &callback)
|
void CEmptyAI::heroGotLevel(const CGHeroInstance *hero, int pskill, std::vector<ui16> &skills, boost::function<void(ui32)> &callback)
|
||||||
{
|
{
|
||||||
callback(rand()%skills.size());
|
callback(rand()%skills.size());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user