ExternalCaster.h 813 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * ExternalCaster.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 "ProxyCaster.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. namespace spells
  14. {
  15. class DLL_LINKAGE ExternalCaster : public ProxyCaster
  16. {
  17. int schoolLevel;
  18. public:
  19. ExternalCaster();
  20. ExternalCaster(const Caster * actualCaster_, int schoolLevel_);
  21. void setActualCaster(const Caster * actualCaster);
  22. void setSpellSchoolLevel(int level);
  23. int32_t getSpellSchoolLevel(const Spell * spell, int32_t * outSelectedSchool = nullptr) const override;
  24. void spendMana(ServerCallback * server, const int32_t spellCost) const override;
  25. };
  26. } // namespace spells
  27. VCMI_LIB_NAMESPACE_END