1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
vcmi/lib/spells/ExternalCaster.h

39 lines
837 B
C++
Raw Normal View History

2023-04-10 03:39:25 +02:00
/*
2023-04-10 18:56:50 +02:00
* ExternalCaster.h, part of VCMI engine
2023-04-10 03:39:25 +02:00
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
#include "ProxyCaster.h"
VCMI_LIB_NAMESPACE_BEGIN
class SpellSchool;
2023-04-10 03:39:25 +02:00
namespace spells
{
2023-04-10 18:56:50 +02:00
class DLL_LINKAGE ExternalCaster : public ProxyCaster
2023-04-10 03:39:25 +02:00
{
int schoolLevel;
public:
2023-04-10 18:56:50 +02:00
ExternalCaster();
ExternalCaster(const Caster * actualCaster_, int schoolLevel_);
void setActualCaster(const Caster * actualCaster);
void setSpellSchoolLevel(int level);
2023-04-10 03:39:25 +02:00
int32_t getSpellSchoolLevel(const Spell * spell, SpellSchool * outSelectedSchool = nullptr) const override;
2023-04-10 03:39:25 +02:00
void spendMana(ServerCallback * server, const int32_t spellCost) const override;
};
} // namespace spells
VCMI_LIB_NAMESPACE_END