1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-20 03:29:32 +02:00
vcmi/lib/spells/ExternalCaster.cpp

53 lines
988 B
C++
Raw Normal View History

2023-04-10 05:39:25 +04:00
/*
2023-04-10 20:56:50 +04:00
* ExternalCaster.cpp, part of VCMI engine
2023-04-10 05:39:25 +04: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
*
*/
2023-04-10 12:17:43 +04:00
#include "StdInc.h"
2023-04-10 20:56:50 +04:00
#include "ExternalCaster.h"
2023-04-10 05:39:25 +04:00
VCMI_LIB_NAMESPACE_BEGIN
namespace spells
{
2023-04-10 20:56:50 +04:00
ExternalCaster::ExternalCaster()
: ProxyCaster(nullptr), schoolLevel(0)
{
}
2023-04-10 20:56:50 +04:00
ExternalCaster::ExternalCaster(const Caster * actualCaster_, int schoolLevel_)
2023-04-10 05:39:25 +04:00
: ProxyCaster(actualCaster_), schoolLevel(schoolLevel_)
{
}
2023-04-10 20:56:50 +04:00
void ExternalCaster::setActualCaster(const Caster * actualCaster_)
{
actualCaster = actualCaster_;
}
2023-04-10 05:39:25 +04:00
2023-04-10 20:56:50 +04:00
void ExternalCaster::setSpellSchoolLevel(int level)
{
schoolLevel = level;
2023-04-10 05:39:25 +04:00
}
2023-04-10 20:56:50 +04:00
void ExternalCaster::spendMana(ServerCallback * server, const int32_t spellCost) const
2023-04-10 05:39:25 +04:00
{
//do nothing
}
2023-04-10 20:56:50 +04:00
int32_t ExternalCaster::getSpellSchoolLevel(const Spell * spell, int32_t * outSelectedSchool) const
2023-04-10 05:39:25 +04:00
{
return schoolLevel;
}
}
VCMI_LIB_NAMESPACE_END