mock_spells_Spell.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * mock_spells_Spell.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include <vcmi/spells/Spell.h>
  12. #include "GameConstants.h"
  13. namespace spells
  14. {
  15. class SpellMock : public Spell
  16. {
  17. public:
  18. MOCK_CONST_METHOD0(getNameTranslated, std::string ());
  19. MOCK_CONST_METHOD0(getNameTextID, std::string ());
  20. MOCK_CONST_METHOD1(getDescriptionTextID, std::string (int32_t));
  21. MOCK_CONST_METHOD1(getDescriptionTranslated, std::string (int32_t));
  22. MOCK_CONST_METHOD1(calculateDamage, int64_t(const Caster *));
  23. MOCK_CONST_METHOD0(getIndex, int32_t());
  24. MOCK_CONST_METHOD0(getIconIndex, int32_t());
  25. MOCK_CONST_METHOD0(getJsonKey, std::string ());
  26. MOCK_CONST_METHOD0(getModScope, std::string ());
  27. MOCK_CONST_METHOD0(getName, const std::string &());
  28. MOCK_CONST_METHOD0(getId, SpellID());
  29. MOCK_CONST_METHOD0(getLevel, int32_t());
  30. MOCK_CONST_METHOD1(getCost, int32_t(const int32_t));
  31. MOCK_CONST_METHOD0(getBasePower, int32_t());
  32. MOCK_CONST_METHOD1(getLevelPower, int32_t(const int32_t));
  33. MOCK_CONST_METHOD1(getLevelDescription, const std::string &(const int32_t));
  34. MOCK_CONST_METHOD0(getPositiveness, boost::logic::tribool());
  35. MOCK_CONST_METHOD0(isAdventure, bool());
  36. MOCK_CONST_METHOD0(isCombat, bool());
  37. MOCK_CONST_METHOD0(isCreatureAbility, bool());
  38. MOCK_CONST_METHOD0(isPositive, bool());
  39. MOCK_CONST_METHOD0(isNegative, bool());
  40. MOCK_CONST_METHOD0(isNeutral, bool());
  41. MOCK_CONST_METHOD0(isDamage, bool());
  42. MOCK_CONST_METHOD0(isOffensive, bool());
  43. MOCK_CONST_METHOD0(isSpecial, bool());
  44. MOCK_CONST_METHOD0(isMagical, bool());
  45. MOCK_CONST_METHOD0(canCastOnSelf, bool());
  46. MOCK_CONST_METHOD0(canCastOnlyOnSelf, bool());
  47. MOCK_CONST_METHOD0(canCastWithoutSkip, bool());
  48. MOCK_CONST_METHOD1(hasSchool, bool(SpellSchool));
  49. MOCK_CONST_METHOD1(forEachSchool, void(const SchoolCallback &));
  50. MOCK_CONST_METHOD0(getCastSound, const std::string &());
  51. MOCK_CONST_METHOD1(registerIcons, void(const IconRegistar &));
  52. };
  53. }