mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
8b002ad774
Fixed issue 2888 * Merged AFTER_ATTACK & BEFORE_ATTACK cast modes. * Introduced new caster class for creature ability usage * Added few tests
28 lines
537 B
C++
28 lines
537 B
C++
/*
|
|
* mock_spells_Spell.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 "../../lib/spells/Magic.h"
|
|
|
|
namespace spells
|
|
{
|
|
|
|
class SpellMock : public Spell
|
|
{
|
|
public:
|
|
MOCK_CONST_METHOD0(getIndex, int32_t());
|
|
MOCK_CONST_METHOD0(getLevel, int32_t());
|
|
MOCK_CONST_METHOD1(forEachSchool, void(const std::function<void (const SchoolInfo &, bool &)> &));
|
|
};
|
|
|
|
}
|
|
|