1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00
vcmi/test/mock/mock_spells_Spell.h
Alexander Shishkin 8b002ad774
Issue2888 (#421)
Fixed issue 2888
* Merged AFTER_ATTACK & BEFORE_ATTACK cast modes.
* Introduced new caster class for creature ability usage
* Added few tests
2018-03-02 13:22:51 +03:00

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 &)> &));
};
}