summaryrefslogtreecommitdiffstats
path: root/trunk/source/spl-book.h
diff options
context:
space:
mode:
authorpeterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573>2005-07-21 02:34:44 +0000
committerpeterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573>2005-07-21 02:34:44 +0000
commit673bdae75485d14f759af597c3c62b99601f9a43 (patch)
tree368103f29fe0ce5dcf98060d9b5faa04590085fb /trunk/source/spl-book.h
parent7e900be770db24b0405fd2162491c405a425873e (diff)
downloadcrawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.tar.gz
crawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.zip
Initial revision
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'trunk/source/spl-book.h')
-rw-r--r--trunk/source/spl-book.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/trunk/source/spl-book.h b/trunk/source/spl-book.h
new file mode 100644
index 0000000000..359f2c052c
--- /dev/null
+++ b/trunk/source/spl-book.h
@@ -0,0 +1,63 @@
+/*
+ * 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);
+
+#endif