mock_IGameInfoCallback.h 991 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * mock_IGameInfoCallback.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 "../../lib/CGameInfoCallback.h"
  12. class IGameInfoCallbackMock : public IGameInfoCallback
  13. {
  14. public:
  15. //various
  16. MOCK_CONST_METHOD1(getDate, int(Date));
  17. MOCK_CONST_METHOD2(isAllowed, bool(int32_t, int32_t));
  18. //player
  19. MOCK_CONST_METHOD1(getPlayer, const Player *(PlayerColor));
  20. MOCK_CONST_METHOD0(getLocalPlayer, PlayerColor());
  21. MOCK_CONST_METHOD0(getPlayerID, std::optional<PlayerColor>());
  22. //hero
  23. MOCK_CONST_METHOD1(getHero, const CGHeroInstance *(ObjectInstanceID));
  24. MOCK_CONST_METHOD1(getHeroWithSubid, const CGHeroInstance *(int));
  25. //objects
  26. MOCK_CONST_METHOD2(getObj, const CGObjectInstance *(ObjectInstanceID, bool));
  27. MOCK_CONST_METHOD2(getVisitableObjs, std::vector<const CGObjectInstance*>(int3, bool));
  28. };