mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-24 03:47:18 +02:00
Something that compiles.
This commit is contained in:
parent
f32849a73e
commit
f7b5ecf642
@ -5,9 +5,6 @@
|
|||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{132126f1-89bb-4505-a77e-d4c3a18103be}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="filesystem">
|
<Filter Include="filesystem">
|
||||||
<UniqueIdentifier>{a2ca6977-50bf-4585-aa6e-779a10863922}</UniqueIdentifier>
|
<UniqueIdentifier>{a2ca6977-50bf-4585-aa6e-779a10863922}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
@ -33,7 +33,7 @@ class DLL_LINKAGE CureMechanics : public DefaultSpellMechanics
|
|||||||
public:
|
public:
|
||||||
CureMechanics(CSpell * s): DefaultSpellMechanics(s){};
|
CureMechanics(CSpell * s): DefaultSpellMechanics(s){};
|
||||||
|
|
||||||
void applyBattle(BattleInfo * battle, const BattleSpellCast * packet) const override;
|
void applyBattle(BattleInfo * battle, const BattleSpellCast * packet) const override final;
|
||||||
};
|
};
|
||||||
|
|
||||||
class DLL_LINKAGE DispellMechanics : public DefaultSpellMechanics
|
class DLL_LINKAGE DispellMechanics : public DefaultSpellMechanics
|
||||||
@ -41,7 +41,7 @@ class DLL_LINKAGE DispellMechanics : public DefaultSpellMechanics
|
|||||||
public:
|
public:
|
||||||
DispellMechanics(CSpell * s): DefaultSpellMechanics(s){};
|
DispellMechanics(CSpell * s): DefaultSpellMechanics(s){};
|
||||||
|
|
||||||
void applyBattle(BattleInfo * battle, const BattleSpellCast * packet) const override;
|
void applyBattle(BattleInfo * battle, const BattleSpellCast * packet) const override final;
|
||||||
};
|
};
|
||||||
|
|
||||||
class DLL_LINKAGE HypnotizeMechanics : public DefaultSpellMechanics
|
class DLL_LINKAGE HypnotizeMechanics : public DefaultSpellMechanics
|
||||||
|
@ -34,7 +34,7 @@ class DLL_LINKAGE DispellHelpfulMechanics : public DefaultSpellMechanics
|
|||||||
public:
|
public:
|
||||||
DispellHelpfulMechanics(CSpell * s): DefaultSpellMechanics(s){};
|
DispellHelpfulMechanics(CSpell * s): DefaultSpellMechanics(s){};
|
||||||
|
|
||||||
void applyBattle(BattleInfo * battle, const BattleSpellCast * packet) const override;
|
void applyBattle(BattleInfo * battle, const BattleSpellCast * packet) const override final;
|
||||||
|
|
||||||
ESpellCastProblem::ESpellCastProblem isImmuneByStack(const CGHeroInstance * caster, const CStack * obj) const override;
|
ESpellCastProblem::ESpellCastProblem isImmuneByStack(const CGHeroInstance * caster, const CStack * obj) const override;
|
||||||
};
|
};
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "CSpellHandler.h"
|
#include "CSpellHandler.h"
|
||||||
#include "../BattleHex.h"
|
#include "../BattleHex.h"
|
||||||
|
#include "../BattleState.h"
|
||||||
|
#include "../NetPacks.h"
|
||||||
|
|
||||||
class DLL_LINKAGE ISpellMechanics
|
class DLL_LINKAGE ISpellMechanics
|
||||||
{
|
{
|
||||||
@ -39,9 +41,9 @@ public:
|
|||||||
|
|
||||||
virtual ESpellCastProblem::ESpellCastProblem isImmuneByStack(const CGHeroInstance * caster, const CStack * obj) const = 0;
|
virtual ESpellCastProblem::ESpellCastProblem isImmuneByStack(const CGHeroInstance * caster, const CStack * obj) const = 0;
|
||||||
|
|
||||||
|
virtual void applyBattle(BattleInfo * battle, const BattleSpellCast * packet) const = 0;
|
||||||
virtual bool adventureCast(const SpellCastEnvironment * env, AdventureSpellCastParameters & parameters) const = 0;
|
virtual bool adventureCast(const SpellCastEnvironment * env, AdventureSpellCastParameters & parameters) const = 0;
|
||||||
virtual void battleCast(const SpellCastEnvironment * env, BattleSpellCastParameters & parameters) const = 0;
|
virtual void battleCast(const SpellCastEnvironment * env, BattleSpellCastParameters & parameters) const = 0;
|
||||||
virtual void applyBattle(BattleInfo * battle, const BattleSpellCast * packet) const = 0;
|
|
||||||
|
|
||||||
static ISpellMechanics * createMechanics(CSpell * s);
|
static ISpellMechanics * createMechanics(CSpell * s);
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user