Angband
get.h
Go to the documentation of this file.
1 #ifndef GET_H
2 #define GET_H
3 
4 struct getset {
5  bool (*file)(const char *suggested_name, char *path, size_t len);
6  bool (*string)(const char *prompt, char *buf, size_t len);
7  s16b (*quantity)(const char *prompt, int max);
8  bool (*check)(const char *prompt);
9  bool (*item)(struct object *choice, const char *pmt, const char *fail, cmd_code cmd, item_filter filter, int mode);
10  bool (*direction)(int *dir, bool allow_5);
11  bool (*target)(int *dp);
12  int (*spell)(const char *verb, bool (*spell_test)(int spell));
13 };
14 
15 void set_getfunctions(struct getset *go);
16 
17 /* Getters */
18 bool get_file(const char *suggested_name, char *path, size_t len);
19 bool get_string(const char *prompt, char *buf, size_t len);
20 s16b get_quantity(const char *prompt, int max);
21 bool get_check(const char *prompt);
22 bool get_item(struct object **choice, const char *pmt, const char *fail, cmd_code cmd, item_filter filter, int mode);
23 bool get_direction(int *dir, bool allow_5);
24 bool get_target(int *dp);
25 int get_spell(const char *verb, bool (*spell_test)(int spell));
26 
27 #endif /* GET_H */
char ** path
Definition: main.c:147
int get_spell(const char *verb, bool(*spell_test)(int spell))
Definition: get.c:66
bool(* file)(const char *suggested_name, char *path, size_t len)
Definition: get.h:5
typedef int
Definition: libpng12/png.h:1135
bool get_check(const char *prompt)
Verify something with the user.
Definition: game-input.c:83
static const char * prompt
Definition: ui-object.c:576
Object information, for a specific object.
Definition: object.h:394
bool get_string(const char *prompt, char *buf, size_t len)
Prompt for a string from the user.
Definition: game-input.c:49
bool get_item(struct object **choice, const char *pmt, const char *fail, cmd_code cmd, item_filter filter, int mode)
Definition: get.c:54
png_bytep buf
Definition: libpng12/png.h:2815
bool get_file(const char *suggested_name, char *path, size_t len)
Definition: get.c:36
bool get_direction(int *dir, bool allow_5)
Definition: get.c:58
int16_t s16b
Definition: h-basic.h:170
cmd_code
All valid game commands.
Definition: cmd-core.h:29
bool(* item)(struct object *choice, const char *pmt, const char *fail, cmd_code cmd, item_filter filter, int mode)
Definition: get.h:9
bool(* direction)(int *dir, bool allow_5)
Definition: get.h:10
int(* spell)(const char *verb, bool(*spell_test)(int spell))
Definition: get.h:12
Definition: get.h:4
bool get_target(int *dp)
Definition: get.c:62
void set_getfunctions(struct getset *go)
Definition: get.c:7
s16b(* quantity)(const char *prompt, int max)
Definition: get.h:7
bool(* target)(int *dp)
Definition: get.h:11
s16b get_quantity(const char *prompt, int max)
Request a quantity from the user.
Definition: game-input.c:65
bool(* check)(const char *prompt)
Definition: get.h:8