#ifndef CSPELLHANDLER_H #define CSPELLHANDLER_H #include #include class CSpell { public: ui32 id; std::string name; std::string abbName; //abbreviated name si32 level; bool earth; bool water; bool fire; bool air; si32 power; //spell's power std::vector costs; //per skill level: 0 - none, 1 - basic, etc std::vector powers; //[er skill level: 0 - none, 1 - basic, etc std::vector probabilities; //% chance to gain for castles std::vector AIVals; //AI values: per skill level: 0 - none, 1 - basic, etc std::vector descriptions; //descriptions of spell for skill levels: 0 - none, 1 - basic, etc std::string attributes; //reference only attributes bool combatSpell; //is this spell combat (true) or adventure (false) bool creatureAbility; //if true, only creatures can use this spell }; class DLL_EXPORT CSpellHandler { public: std::vector spells; void loadSpells(); }; #endif //CSPELLHANDLER_H