File: invent.h

package info (click to toggle)
crawl 1%3A4.0.0beta23-2woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,264 kB
  • ctags: 5,033
  • sloc: cpp: 100,977; perl: 233; makefile: 63; sh: 11
file content (44 lines) | stat: -rw-r--r-- 1,423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 *  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

#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_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