1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-28 23:06:24 +02:00
vcmi/lib/spells/ExternalCaster.cpp

53 lines
988 B
C++
Raw Normal View History

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