1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

* implemented 206 and 207 from mantis

This commit is contained in:
mateuszb
2009-11-08 14:44:58 +00:00
parent 882ae5a53a
commit db4ee5844f
8 changed files with 159 additions and 84 deletions

View File

@ -164,6 +164,7 @@ struct DLL_EXPORT BattleInfo
ui32 getSpellCost(const CSpell * sp, const CGHeroInstance * caster) const; //returns cost of given spell
int hexToWallPart(int hex) const; //returns part of destructible wall / gate / keep under given hex or -1 if not found
std::pair<const CStack *, int> getNearestStack(const CStack * closest, boost::logic::tribool attackerOwned) const; //if attackerOwned is indetermnate, returened stack is of any owner; hex is the number of hex we should be looking from; returns (nerarest creature, predecessorHex)
ui32 calculateSpellDmg(const CSpell * sp, const CGHeroInstance * caster, const CStack * affectedCreature) const; //calculates damage inflicted by spell
};
class DLL_EXPORT CStack