2017-07-20 06:08:49 +02:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
Entities redesign and a few ERM features
* Made most Handlers derived from CHandlerBase and moved service API there.
* Declared existing Entity APIs.
* Added basic script context caching
* Started Lua script module
* Started Lua spell effect API
* Started script state persistence
* Started battle info callback binding
* CommitPackage removed
* Extracted spells::Caster to own header; Expanded Spell API.
* implemented !!MC:S, !!FU:E, !!FU:P, !!MA, !!VR:H, !!VR:C
* !!BU:C, !!BU:E, !!BU:G, !!BU:M implemented
* Allow use of "MC:S@varName@" to declare normal variable (technically v-variable with string key)
* Re-enabled VERM macros.
* !?GM0 added
* !?TM implemented
* Added !!MF:N
* Started !?OB, !!BM, !!HE, !!OW, !!UN
* Added basic support of w-variables
* Added support for ERM indirect variables
* Made !?FU regular trigger
* !!re (ERA loop receiver) implemented
* Fixed ERM receivers with zero args.
2018-03-17 16:58:30 +02:00
|
|
|
#include <vcmi/spells/Spell.h>
|
2023-05-05 23:45:09 +02:00
|
|
|
#include "GameConstants.h"
|
2017-07-20 06:08:49 +02:00
|
|
|
|
|
|
|
namespace spells
|
|
|
|
{
|
|
|
|
|
|
|
|
class SpellMock : public Spell
|
|
|
|
{
|
|
|
|
public:
|
2023-02-28 13:29:35 +02:00
|
|
|
MOCK_CONST_METHOD0(getNameTranslated, std::string ());
|
|
|
|
MOCK_CONST_METHOD0(getNameTextID, std::string ());
|
|
|
|
MOCK_CONST_METHOD1(getDescriptionTextID, std::string (int32_t));
|
|
|
|
MOCK_CONST_METHOD1(getDescriptionTranslated, std::string (int32_t));
|
Entities redesign and a few ERM features
* Made most Handlers derived from CHandlerBase and moved service API there.
* Declared existing Entity APIs.
* Added basic script context caching
* Started Lua script module
* Started Lua spell effect API
* Started script state persistence
* Started battle info callback binding
* CommitPackage removed
* Extracted spells::Caster to own header; Expanded Spell API.
* implemented !!MC:S, !!FU:E, !!FU:P, !!MA, !!VR:H, !!VR:C
* !!BU:C, !!BU:E, !!BU:G, !!BU:M implemented
* Allow use of "MC:S@varName@" to declare normal variable (technically v-variable with string key)
* Re-enabled VERM macros.
* !?GM0 added
* !?TM implemented
* Added !!MF:N
* Started !?OB, !!BM, !!HE, !!OW, !!UN
* Added basic support of w-variables
* Added support for ERM indirect variables
* Made !?FU regular trigger
* !!re (ERA loop receiver) implemented
* Fixed ERM receivers with zero args.
2018-03-17 16:58:30 +02:00
|
|
|
MOCK_CONST_METHOD1(calculateDamage, int64_t(const Caster *));
|
2017-07-20 06:08:49 +02:00
|
|
|
MOCK_CONST_METHOD0(getIndex, int32_t());
|
Entities redesign and a few ERM features
* Made most Handlers derived from CHandlerBase and moved service API there.
* Declared existing Entity APIs.
* Added basic script context caching
* Started Lua script module
* Started Lua spell effect API
* Started script state persistence
* Started battle info callback binding
* CommitPackage removed
* Extracted spells::Caster to own header; Expanded Spell API.
* implemented !!MC:S, !!FU:E, !!FU:P, !!MA, !!VR:H, !!VR:C
* !!BU:C, !!BU:E, !!BU:G, !!BU:M implemented
* Allow use of "MC:S@varName@" to declare normal variable (technically v-variable with string key)
* Re-enabled VERM macros.
* !?GM0 added
* !?TM implemented
* Added !!MF:N
* Started !?OB, !!BM, !!HE, !!OW, !!UN
* Added basic support of w-variables
* Added support for ERM indirect variables
* Made !?FU regular trigger
* !!re (ERA loop receiver) implemented
* Fixed ERM receivers with zero args.
2018-03-17 16:58:30 +02:00
|
|
|
MOCK_CONST_METHOD0(getIconIndex, int32_t());
|
2023-02-28 13:29:35 +02:00
|
|
|
MOCK_CONST_METHOD0(getJsonKey, std::string ());
|
2024-08-10 22:39:35 +02:00
|
|
|
MOCK_CONST_METHOD0(getModScope, std::string ());
|
Entities redesign and a few ERM features
* Made most Handlers derived from CHandlerBase and moved service API there.
* Declared existing Entity APIs.
* Added basic script context caching
* Started Lua script module
* Started Lua spell effect API
* Started script state persistence
* Started battle info callback binding
* CommitPackage removed
* Extracted spells::Caster to own header; Expanded Spell API.
* implemented !!MC:S, !!FU:E, !!FU:P, !!MA, !!VR:H, !!VR:C
* !!BU:C, !!BU:E, !!BU:G, !!BU:M implemented
* Allow use of "MC:S@varName@" to declare normal variable (technically v-variable with string key)
* Re-enabled VERM macros.
* !?GM0 added
* !?TM implemented
* Added !!MF:N
* Started !?OB, !!BM, !!HE, !!OW, !!UN
* Added basic support of w-variables
* Added support for ERM indirect variables
* Made !?FU regular trigger
* !!re (ERA loop receiver) implemented
* Fixed ERM receivers with zero args.
2018-03-17 16:58:30 +02:00
|
|
|
MOCK_CONST_METHOD0(getName, const std::string &());
|
|
|
|
MOCK_CONST_METHOD0(getId, SpellID());
|
2018-03-02 12:22:51 +02:00
|
|
|
MOCK_CONST_METHOD0(getLevel, int32_t());
|
Entities redesign and a few ERM features
* Made most Handlers derived from CHandlerBase and moved service API there.
* Declared existing Entity APIs.
* Added basic script context caching
* Started Lua script module
* Started Lua spell effect API
* Started script state persistence
* Started battle info callback binding
* CommitPackage removed
* Extracted spells::Caster to own header; Expanded Spell API.
* implemented !!MC:S, !!FU:E, !!FU:P, !!MA, !!VR:H, !!VR:C
* !!BU:C, !!BU:E, !!BU:G, !!BU:M implemented
* Allow use of "MC:S@varName@" to declare normal variable (technically v-variable with string key)
* Re-enabled VERM macros.
* !?GM0 added
* !?TM implemented
* Added !!MF:N
* Started !?OB, !!BM, !!HE, !!OW, !!UN
* Added basic support of w-variables
* Added support for ERM indirect variables
* Made !?FU regular trigger
* !!re (ERA loop receiver) implemented
* Fixed ERM receivers with zero args.
2018-03-17 16:58:30 +02:00
|
|
|
MOCK_CONST_METHOD1(getCost, int32_t(const int32_t));
|
|
|
|
MOCK_CONST_METHOD0(getBasePower, int32_t());
|
|
|
|
MOCK_CONST_METHOD1(getLevelPower, int32_t(const int32_t));
|
|
|
|
MOCK_CONST_METHOD1(getLevelDescription, const std::string &(const int32_t));
|
|
|
|
MOCK_CONST_METHOD0(getPositiveness, boost::logic::tribool());
|
|
|
|
MOCK_CONST_METHOD0(isAdventure, bool());
|
|
|
|
MOCK_CONST_METHOD0(isCombat, bool());
|
|
|
|
MOCK_CONST_METHOD0(isCreatureAbility, bool());
|
|
|
|
MOCK_CONST_METHOD0(isPositive, bool());
|
|
|
|
MOCK_CONST_METHOD0(isNegative, bool());
|
|
|
|
MOCK_CONST_METHOD0(isNeutral, bool());
|
|
|
|
MOCK_CONST_METHOD0(isDamage, bool());
|
|
|
|
MOCK_CONST_METHOD0(isOffensive, bool());
|
|
|
|
MOCK_CONST_METHOD0(isSpecial, bool());
|
2023-03-23 11:01:13 +02:00
|
|
|
MOCK_CONST_METHOD0(isMagical, bool());
|
2024-01-16 15:01:42 +02:00
|
|
|
MOCK_CONST_METHOD0(canCastOnSelf, bool());
|
2023-08-21 21:10:32 +02:00
|
|
|
MOCK_CONST_METHOD1(hasSchool, bool(SpellSchool));
|
Entities redesign and a few ERM features
* Made most Handlers derived from CHandlerBase and moved service API there.
* Declared existing Entity APIs.
* Added basic script context caching
* Started Lua script module
* Started Lua spell effect API
* Started script state persistence
* Started battle info callback binding
* CommitPackage removed
* Extracted spells::Caster to own header; Expanded Spell API.
* implemented !!MC:S, !!FU:E, !!FU:P, !!MA, !!VR:H, !!VR:C
* !!BU:C, !!BU:E, !!BU:G, !!BU:M implemented
* Allow use of "MC:S@varName@" to declare normal variable (technically v-variable with string key)
* Re-enabled VERM macros.
* !?GM0 added
* !?TM implemented
* Added !!MF:N
* Started !?OB, !!BM, !!HE, !!OW, !!UN
* Added basic support of w-variables
* Added support for ERM indirect variables
* Made !?FU regular trigger
* !!re (ERA loop receiver) implemented
* Fixed ERM receivers with zero args.
2018-03-17 16:58:30 +02:00
|
|
|
MOCK_CONST_METHOD1(forEachSchool, void(const SchoolCallback &));
|
|
|
|
MOCK_CONST_METHOD0(getCastSound, const std::string &());
|
|
|
|
MOCK_CONST_METHOD1(registerIcons, void(const IconRegistar &));
|
2017-07-20 06:08:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|