mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
39 lines
837 B
C++
39 lines
837 B
C++
/*
|
|
* ExternalCaster.h, part of VCMI engine
|
|
*
|
|
* 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;
|
|
|
|
namespace spells
|
|
{
|
|
|
|
class DLL_LINKAGE ExternalCaster : public ProxyCaster
|
|
{
|
|
int schoolLevel;
|
|
public:
|
|
ExternalCaster();
|
|
ExternalCaster(const Caster * actualCaster_, int schoolLevel_);
|
|
|
|
void setActualCaster(const Caster * actualCaster);
|
|
void setSpellSchoolLevel(int level);
|
|
|
|
int32_t getSpellSchoolLevel(const Spell * spell, SpellSchool * outSelectedSchool = nullptr) const override;
|
|
void spendMana(ServerCallback * server, const int32_t spellCost) const override;
|
|
};
|
|
|
|
} // namespace spells
|
|
|
|
VCMI_LIB_NAMESPACE_END
|