2017-07-20 07:08:49 +03:00
|
|
|
/*
|
|
|
|
|
* PossibleSpellcast.h, part of VCMI engine
|
|
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
|
2018-03-17 17:58:30 +03:00
|
|
|
#include <vcmi/spells/Magic.h>
|
|
|
|
|
|
2017-07-20 07:08:49 +03:00
|
|
|
#include "../../lib/battle/Destination.h"
|
|
|
|
|
|
2022-07-26 16:07:42 +03:00
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
|
|
2017-07-20 07:08:49 +03:00
|
|
|
class CSpell;
|
|
|
|
|
|
2022-07-26 16:07:42 +03:00
|
|
|
VCMI_LIB_NAMESPACE_END
|
|
|
|
|
|
2017-07-20 07:08:49 +03:00
|
|
|
class PossibleSpellcast
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
using ValueMap = std::map<uint32_t, int64_t>;
|
|
|
|
|
|
|
|
|
|
const CSpell * spell;
|
|
|
|
|
spells::Target dest;
|
2023-08-26 13:06:41 +03:00
|
|
|
float value;
|
2017-07-20 07:08:49 +03:00
|
|
|
|
|
|
|
|
PossibleSpellcast();
|
|
|
|
|
virtual ~PossibleSpellcast();
|
|
|
|
|
};
|