mock_UnitEnvironment.h 507 B

1234567891011121314151617181920
  1. /*
  2. * mock_UnitEnvironment.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/battle/IUnitInfo.h"
  12. class UnitEnvironmentMock : public battle::IUnitEnvironment
  13. {
  14. public:
  15. MOCK_CONST_METHOD1(unitHasAmmoCart, bool(const battle::Unit *));
  16. MOCK_CONST_METHOD1(unitEffectiveOwner, PlayerColor(const battle::Unit *));
  17. };