2015-02-02 10:40:06 +02:00
|
|
|
/*
|
|
|
|
* CreatureSpellMechanics.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
|
|
|
|
*
|
|
|
|
*/
|
2015-02-26 19:59:18 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-03-09 20:24:45 +02:00
|
|
|
#include "ISpellMechanics.h"
|
2015-02-26 19:59:18 +02:00
|
|
|
#include "CDefaultSpellMechanics.h"
|
2015-02-02 11:22:19 +02:00
|
|
|
|
2015-03-09 20:24:45 +02:00
|
|
|
class DLL_LINKAGE AcidBreathDamageMechanics : public DefaultSpellMechanics
|
2015-02-02 11:22:19 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
AcidBreathDamageMechanics(CSpell * s): DefaultSpellMechanics(s){};
|
|
|
|
protected:
|
2015-02-26 19:59:18 +02:00
|
|
|
void applyBattleEffects(const SpellCastEnvironment * env, BattleSpellCastParameters & parameters, SpellCastContext & ctx) const override;
|
2015-02-02 11:22:19 +02:00
|
|
|
};
|
|
|
|
|
2015-03-09 20:24:45 +02:00
|
|
|
class DLL_LINKAGE DeathStareMechanics : public DefaultSpellMechanics
|
2015-02-02 11:22:19 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
DeathStareMechanics(CSpell * s): DefaultSpellMechanics(s){};
|
|
|
|
protected:
|
2015-02-26 19:59:18 +02:00
|
|
|
void applyBattleEffects(const SpellCastEnvironment * env, BattleSpellCastParameters & parameters, SpellCastContext & ctx) const override;
|
2015-02-02 11:22:19 +02:00
|
|
|
};
|
|
|
|
|
2015-03-09 20:24:45 +02:00
|
|
|
class DLL_LINKAGE DispellHelpfulMechanics : public DefaultSpellMechanics
|
2015-02-02 11:22:19 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
DispellHelpfulMechanics(CSpell * s): DefaultSpellMechanics(s){};
|
2015-02-26 19:59:18 +02:00
|
|
|
|
2015-03-09 21:07:28 +02:00
|
|
|
void applyBattle(BattleInfo * battle, const BattleSpellCast * packet) const override final;
|
2015-02-26 19:59:18 +02:00
|
|
|
|
|
|
|
ESpellCastProblem::ESpellCastProblem isImmuneByStack(const CGHeroInstance * caster, const CStack * obj) const override;
|
2015-02-02 11:22:19 +02:00
|
|
|
};
|