summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-22 08:41:20 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-22 08:41:20 +0000
commit1d0f57cbceb778139ca215cc4fcfd1584951f6dd (patch)
treecafd60c944c51fcce778aa5d6912bc548c518339 /crawl-ref/source/spl-util.h
parent6f5e187a9e5cd348296dba2fd89d2e206e775a01 (diff)
downloadcrawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.tar.gz
crawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.zip
Merged stone_soup r15:451 into trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-util.h')
-rw-r--r--crawl-ref/source/spl-util.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-util.h b/crawl-ref/source/spl-util.h
index 848530dbbf..31a3bc5102 100644
--- a/crawl-ref/source/spl-util.h
+++ b/crawl-ref/source/spl-util.h
@@ -3,6 +3,8 @@
* Summary: data handlers for player spell list
* Written by: don brodale <dbrodale@bigfootinteractive.com>
*
+ * Modified for Crawl Reference by $Author$ on $Date$
+ *
* Changelog(most recent first):
*
* 24jun2000 jmf simplified structures
@@ -20,7 +22,8 @@ struct playerspell
{
int id;
const char *title;
- unsigned int disciplines; //jmf: a bitfield
+ unsigned int disciplines; // bitfield
+ unsigned int flags; // bitfield
unsigned int level;
};
@@ -46,6 +49,8 @@ int spell_difficulty(int which_spell);
int spell_levels_required(int which_spell);
+unsigned int get_spell_flags( int which_spell );
+
// * called from: chardump - spell - spl-book - spells0
bool spell_typematch(int which_spell, unsigned int which_discipline);
unsigned int spell_type( int which_spell ); //jmf: simplification of above
@@ -54,6 +59,8 @@ int count_bits( unsigned int bits );
// * called from: chardump - command - debug - spl-book - spells0
const char *spell_title(int which_spell);
+const char* spelltype_short_name( int which_spelltype );
+
//int spell_restriction(int which_spell, int which_restriction);
int apply_area_visible(int (*func) (int, int, int, int), int power);