1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Next part of Seer Hut code, including large number of Components, packs and help functions.

Mapa now contains separate vector of monsters to avoid linear search trough all objects.
This commit is contained in:
DjWarmonger
2010-02-02 17:05:03 +00:00
parent 3dbeaa5ef8
commit ce00ceaf08
15 changed files with 231 additions and 19 deletions

View File

@ -1702,6 +1702,8 @@ void CGameHandler::giveCreatures (int objid, const CGHeroInstance * h, CCreature
return;
}
}
void CGameHandler::takeCreatures (int objid, CCreatureSet creatures)
{}
void CGameHandler::showCompInfo(ShowInInfobox * comp)
{
sendToAllClients(comp);
@ -1781,6 +1783,8 @@ void CGameHandler::giveHeroArtifact(int artid, int hid, int position) //pos==-1
sendAndApply(&sha);
}
void CGameHandler::removeArtifact(int artid, int hid)
{}
void CGameHandler::startBattleI(const CArmedInstance *army1, const CArmedInstance *army2, int3 tile, const CGHeroInstance *hero1, const CGHeroInstance *hero2, bool creatureBank, boost::function<void(BattleResult*)> cb, const CGTownInstance *town) //use hero=NULL for no hero
{