Lamthai/game/logic/spells.h

21 lines
1.1 KiB
C++

void init_spell(Spell& spell_arg,
const std::string& name_arg,
int damage_arg,
int cost_arg,
float precision_arg,
bool zone_arg,
std::vector<Elements> elements_arg,
std::vector<int> combinaison_arg
);
void init_spells(std::vector<Spell>& spell_book_arg);
int possible_spell(const std::vector<Spell>& spell_book_arg, const std::vector<int>& spell_arg);
Spell find_spell_by_combinaison(const std::vector<Spell>& spell_book_arg, const std::vector<int>& spell_arg);
bool cast_spell(Player& player_arg, Player_stats& player_stats_arg, std::vector<int>& spell_arg, int spell_segment_arg, std::vector<Ennemy>& ennemies_arg, std::vector<Ennemy_stats>& ennemies_stats_arg);
void use_spell(const Spell& spell_arg, Player& player_arg, Player_stats& player_stats_arg, std::vector<Ennemy>& ennemies_arg, std::vector<Ennemy_stats>& ennemies_stats_arg);
void spell_damage(Ennemy& ennemy_arg, const Spell& spell_arg);
void ennemy_use_spell(const Spell& spell_arg, Player& player_arg, Ennemy& ennemy_arg);
void print_spell(const Spell& spell_arg);
void print_spell_book(const std::vector<Spell>& spell_book_arg);