ViewWorldEffect.h 669 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * ViewWorldEffect.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 "AdventureSpellEffect.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. class ViewWorldEffect final : public IAdventureSpellEffect
  14. {
  15. std::vector<MapObjectID> filteredObjects;
  16. bool showTerrain = false;
  17. public:
  18. ViewWorldEffect(const CSpell * s, const JsonNode & config);
  19. ESpellCastResult applyAdventureEffects(SpellCastEnvironment * env, const AdventureSpellCastParameters & parameters) const override;
  20. };
  21. VCMI_LIB_NAMESPACE_END