1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
This commit is contained in:
Ivan Savenko 2024-04-10 20:03:59 +03:00
parent 3fc4383153
commit 320469d773
3 changed files with 4 additions and 4 deletions

View File

@ -925,7 +925,7 @@ void AdventureMapInterface::onScreenResize()
activate();
}
bool AdventureMapInterface::isValidAdventureSpellTarget(int3 targetPosition)
bool AdventureMapInterface::isValidAdventureSpellTarget(int3 targetPosition) const
{
spells::detail::ProblemImpl problem;

View File

@ -93,7 +93,7 @@ private:
void performSpellcasting(const int3 & castTarget);
/// performs clientside validation of valid targets for adventure spells
bool isValidAdventureSpellTarget(int3 targetPosition);
bool isValidAdventureSpellTarget(int3 targetPosition) const;
/// dim interface if some windows opened
void dim(Canvas & to);

View File

@ -29,8 +29,8 @@ class AdventureSpellMechanics : public IAdventureSpellMechanics
public:
AdventureSpellMechanics(const CSpell * s);
bool canBeCast(spells::Problem & problem, const CGameInfoCallback * cb, const spells::Caster * caster) const override final;
bool canBeCastAt(spells::Problem & problem, const CGameInfoCallback * cb, const spells::Caster * caster, const int3 & pos) const override final;
bool canBeCast(spells::Problem & problem, const CGameInfoCallback * cb, const spells::Caster * caster) const final;
bool canBeCastAt(spells::Problem & problem, const CGameInfoCallback * cb, const spells::Caster * caster, const int3 & pos) const final;
bool adventureCast(SpellCastEnvironment * env, const AdventureSpellCastParameters & parameters) const override final;
protected: