2025-07-07 17:28:16 +03:00
|
|
|
/*
|
2025-07-08 19:20:13 +03:00
|
|
|
* ViewWorldEffect.h, part of VCMI engine
|
2025-07-07 17:28:16 +03:00
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
|
2025-07-08 19:20:13 +03:00
|
|
|
#include "AdventureSpellEffect.h"
|
2025-07-07 17:28:16 +03:00
|
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
|
|
2025-07-08 19:20:13 +03:00
|
|
|
class ViewWorldEffect final : public IAdventureSpellEffect
|
2025-07-07 17:28:16 +03:00
|
|
|
{
|
2025-07-08 19:20:13 +03:00
|
|
|
std::vector<MapObjectID> filteredObjects;
|
|
|
|
|
bool showTerrain = false;
|
2025-07-07 17:28:16 +03:00
|
|
|
|
2025-07-08 19:20:13 +03:00
|
|
|
public:
|
|
|
|
|
ViewWorldEffect(const CSpell * s, const JsonNode & config);
|
2025-07-07 17:28:16 +03:00
|
|
|
|
|
|
|
|
ESpellCastResult applyAdventureEffects(SpellCastEnvironment * env, const AdventureSpellCastParameters & parameters) const override;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_END
|