ScuttleBoatMechanics.h 749 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * ScuttleBoatMechanics.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "AdventureSpellMechanics.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. class ScuttleBoatMechanics final : public AdventureSpellMechanics
  14. {
  15. public:
  16. ScuttleBoatMechanics(const CSpell * s);
  17. protected:
  18. bool canBeCastAtImpl(spells::Problem & problem, const IGameInfoCallback * cb, const spells::Caster * caster, const int3 & pos) const override;
  19. ESpellCastResult applyAdventureEffects(SpellCastEnvironment * env, const AdventureSpellCastParameters & parameters) const override;
  20. };
  21. VCMI_LIB_NAMESPACE_END