mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Cleanup
This commit is contained in:
parent
3fc4383153
commit
320469d773
@ -925,7 +925,7 @@ void AdventureMapInterface::onScreenResize()
|
||||
activate();
|
||||
}
|
||||
|
||||
bool AdventureMapInterface::isValidAdventureSpellTarget(int3 targetPosition)
|
||||
bool AdventureMapInterface::isValidAdventureSpellTarget(int3 targetPosition) const
|
||||
{
|
||||
spells::detail::ProblemImpl problem;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user