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 */