mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
#ifndef CSPELLHANDLER_H
|
|
#define CSPELLHANDLER_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class CSpell
|
|
{
|
|
public:
|
|
bool isAllowed; //true if we can use this spell (depends on map)
|
|
std::string name;
|
|
std::string abbName; //abbreviated name
|
|
int level;
|
|
bool earth;
|
|
bool water;
|
|
bool fire;
|
|
bool air;
|
|
int costNone;
|
|
int costBas;
|
|
int costAdv;
|
|
int costExp;
|
|
int power; //spell's power
|
|
int powerNone; //effect without magic ability
|
|
int powerBas; //efect with basic magic ability
|
|
int powerAdv; //efect with advanced magic ability
|
|
int powerExp; //efect with expert magic ability
|
|
int castle, rampart, tower, inferno, necropolis, dungeon, stronghold, fortress, conflux; //% chance to gain
|
|
int none2, bas2, adv2, exp2; //AI values
|
|
std::string noneTip, basTip, advTip, expTip; //descriptions of spell
|
|
std::string attributes; //reference only attributes
|
|
bool combatSpell; //is this spell combat (true) or adventure (false)
|
|
};
|
|
|
|
class CSpellHandler
|
|
{
|
|
public:
|
|
std::vector<CSpell> spells;
|
|
void loadSpells();
|
|
};
|
|
|
|
#endif //CSPELLHANDLER_H
|