summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.h
diff options
context:
space:
mode:
authornlanza <nlanza@c06c8d41-db1a-0410-9941-cceddc491573>2006-08-13 02:19:00 +0000
committernlanza <nlanza@c06c8d41-db1a-0410-9941-cceddc491573>2006-08-13 02:19:00 +0000
commitaa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f (patch)
treed0551b96eaebb5b55694579fb8dae4abc7a38407 /crawl-ref/source/spl-book.h
parent2b32f164e6ca1c4b3d587789f6cf46f46fe02fe8 (diff)
downloadcrawl-ref-aa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f.tar.gz
crawl-ref-aa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f.zip
Clean up a mistake in the SVN import.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.h')
-rw-r--r--crawl-ref/source/spl-book.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-book.h b/crawl-ref/source/spl-book.h
new file mode 100644
index 0000000000..d6aa2843bc
--- /dev/null
+++ b/crawl-ref/source/spl-book.h
@@ -0,0 +1,68 @@
+/*
+ * File: spl-book.h
+ * Summary: Some spellbook related functions.
+ * Written by: Josh Fishman
+ *
+ * Change History (most recent first):
+ *
+ * 22mar2000 jmf Created
+ */
+
+
+#ifndef SPL_BOOK_H
+#define SPL_BOOK_H
+
+#include "externs.h"
+#include "FixVec.h"
+
+
+// used in dungeon.cc, it_use3.cc, spl-book.cc, spl-book.h - {dlb}
+#define SPELLBOOK_SIZE 9
+// used in spl-book.cc, spl-book.h - {dlb}
+#define NUMBER_SPELLBOOKS 60
+
+
+// updated 24may2000 {dlb}
+/* ***********************************************************************
+ * called from: dungeon - effects - shopping
+ * *********************************************************************** */
+char book_rarity(unsigned char which_book);
+
+
+// updated 24may2000 {dlb}
+/* ***********************************************************************
+ * called from: it_use3 - item_use - spl-book
+ * *********************************************************************** */
+bool is_valid_spell_in_book( unsigned int splbook, int spell );
+
+
+// updated 24may2000 {dlb}
+/* ***********************************************************************
+ * called from: it_use3 - item_use - spl-book
+ * *********************************************************************** */
+unsigned char read_book( item_def &item, int action );
+
+
+// updated 24may2000 {dlb}
+/* ***********************************************************************
+ * called from: acr
+ * *********************************************************************** */
+bool learn_spell(void);
+
+
+// updated 24may2000 {dlb}
+/* ***********************************************************************
+ * called from: it_use3 - item_use - spl-book
+ * *********************************************************************** */
+int which_spell_in_book(int sbook_type, int spl);
+
+int staff_spell( int zap_device_2 );
+
+bool undead_cannot_memorise(unsigned char spell, unsigned char being);
+
+unsigned char spellbook_contents( item_def &book, int action,
+ formatted_string *fs = NULL );
+
+int count_staff_spells(const item_def &item, bool need_id);
+
+#endif