OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
autocalcspell.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_AUTOCALCSPELL_H
2 #define OPENMW_AUTOCALCSPELL_H
3 
4 #include <cfloat>
5 #include <set>
6 
10 
11 namespace MWMechanics
12 {
13 
16 
17 std::vector<std::string> autoCalcNpcSpells(const int* actorSkills, const int* actorAttributes, const ESM::Race* race);
18 
19 std::vector<std::string> autoCalcPlayerSpells(const int* actorSkills, const int* actorAttributes, const ESM::Race* race);
20 
21 // Helpers
22 
23 bool attrSkillCheck (const ESM::Spell* spell, const int* actorSkills, const int* actorAttributes);
24 
26 
27 void calcWeakestSchool(const ESM::Spell* spell, const int* actorSkills, int& effectiveSchool, float& skillTerm);
28 
29 float calcAutoCastChance(const ESM::Spell* spell, const int* actorSkills, const int* actorAttributes, int effectiveSchool);
30 
31 }
32 
33 #endif
Definition: loadspel.hpp:14
ESM::Skill::SkillEnum mapSchoolToSkill(int school)
Definition: autocalcspell.cpp:243
void calcWeakestSchool(const ESM::Spell *spell, const int *actorSkills, int &effectiveSchool, float &skillTerm)
Definition: autocalcspell.cpp:256
std::vector< std::string > autoCalcNpcSpells(const int *actorSkills, const int *actorAttributes, const ESM::Race *race)
Definition: autocalcspell.cpp:24
float calcAutoCastChance(const ESM::Spell *spell, const int *actorSkills, const int *actorAttributes, int effectiveSchool)
Definition: autocalcspell.cpp:289
std::vector< std::string > autoCalcPlayerSpells(const int *actorSkills, const int *actorAttributes, const ESM::Race *race)
Definition: autocalcspell.cpp:144
Definition: loadrace.hpp:18
SkillEnum
Definition: loadskil.hpp:45
bool attrSkillCheck(const ESM::Spell *spell, const int *actorSkills, const int *actorAttributes)
Definition: autocalcspell.cpp:217