diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:56 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:56 +0100 |
commit | a07a80ac3cf4cd61a91f25092342142cc68894b1 (patch) | |
tree | 22519a159fcca6e1043c6f78db941a43cd0bd0ee /src/spell_type.hpp | |
parent | 9688ede57bcd87f51d94a2888f86da9fea37263a (diff) |
Simplify spell_type_for_each to spell_type_get_schools
Diffstat (limited to 'src/spell_type.hpp')
-rw-r--r-- | src/spell_type.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/spell_type.hpp b/src/spell_type.hpp index ac710341..c053f9fd 100644 --- a/src/spell_type.hpp +++ b/src/spell_type.hpp @@ -1,6 +1,7 @@ #pragma once #include "spell_type_fwd.hpp" +#include <vector> #include <string> #include <functional> #include "h-basic.h" @@ -76,7 +77,7 @@ bool_ spell_type_castable_while_blind(spell_type *spell); bool_ spell_type_castable_while_confused(spell_type *spell); s16b spell_type_minimum_pval(spell_type *spell); s16b spell_type_random_type(spell_type *spell); -bool_ spell_type_school_foreach(spell_type *spell, bool_ (*callback)(void *data, s32b school_idx), void *data); +std::vector<s32b> const spell_type_get_schools(spell_type *spell); bool_ spell_type_inertia(spell_type *spell, s32b *difficulty, s32b *delay); s32b spell_type_failure_rate(spell_type *spell); s16b spell_type_casting_stat(spell_type *spell); |