summaryrefslogtreecommitdiffstats
path: root/trunk/source/invent.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/invent.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/invent.h')
-rw-r--r--trunk/source/invent.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/trunk/source/invent.h b/trunk/source/invent.h
new file mode 100644
index 0000000000..2de7636200
--- /dev/null
+++ b/trunk/source/invent.h
@@ -0,0 +1,48 @@
+/*
+ * File: invent.cc
+ * Summary: Functions for inventory related commands.
+ * Written by: Linley Henzell
+ *
+ * Change History (most recent first):
+ *
+ * <1> -/--/-- LRH Created
+ */
+
+
+#ifndef INVENT_H
+#define INVENT_H
+
+#include <stddef.h>
+
+#define PROMPT_ABORT -1
+#define PROMPT_GOT_SPECIAL -2
+
+int prompt_invent_item( const char *prompt, int type_expect,
+ bool must_exist = true,
+ bool allow_auto_list = true,
+ bool allow_easy_quit = true,
+ const char other_valid_char = '\0',
+ int *const count = NULL );
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: invent - ouch - shopping
+ * *********************************************************************** */
+unsigned char invent(int item_class_inv, bool show_price);
+
+
+// last updated 24may2000 {dlb}
+/* ***********************************************************************
+ * called from: acr - command - food - item_use - items - spl-book - spells1
+ * *********************************************************************** */
+unsigned char get_invent(int invent_type);
+
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: acr
+ * *********************************************************************** */
+void list_commands(bool wizard);
+
+
+#endif