mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Cleanup
This commit is contained in:
@@ -925,7 +925,7 @@ void AdventureMapInterface::onScreenResize()
|
|||||||
activate();
|
activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AdventureMapInterface::isValidAdventureSpellTarget(int3 targetPosition)
|
bool AdventureMapInterface::isValidAdventureSpellTarget(int3 targetPosition) const
|
||||||
{
|
{
|
||||||
spells::detail::ProblemImpl problem;
|
spells::detail::ProblemImpl problem;
|
||||||
|
|
||||||
|
@@ -93,7 +93,7 @@ private:
|
|||||||
void performSpellcasting(const int3 & castTarget);
|
void performSpellcasting(const int3 & castTarget);
|
||||||
|
|
||||||
/// performs clientside validation of valid targets for adventure spells
|
/// performs clientside validation of valid targets for adventure spells
|
||||||
bool isValidAdventureSpellTarget(int3 targetPosition);
|
bool isValidAdventureSpellTarget(int3 targetPosition) const;
|
||||||
|
|
||||||
/// dim interface if some windows opened
|
/// dim interface if some windows opened
|
||||||
void dim(Canvas & to);
|
void dim(Canvas & to);
|
||||||
|
@@ -29,8 +29,8 @@ class AdventureSpellMechanics : public IAdventureSpellMechanics
|
|||||||
public:
|
public:
|
||||||
AdventureSpellMechanics(const CSpell * s);
|
AdventureSpellMechanics(const CSpell * s);
|
||||||
|
|
||||||
bool canBeCast(spells::Problem & problem, const CGameInfoCallback * cb, const spells::Caster * caster) 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 override 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;
|
bool adventureCast(SpellCastEnvironment * env, const AdventureSpellCastParameters & parameters) const override final;
|
||||||
protected:
|
protected:
|
||||||
|
Reference in New Issue
Block a user