OSDN Git Service

Merge branch 'master' of git.osdn.net:/gitroot/hengband/hengband
[hengband/hengband.git] / src / inventory / item-selection-util.h
1 #pragma once
2
3 #include "object/tval-types.h"
4 #include "system/angband.h"
5
6 /* Floor Item Selection*/
7 typedef struct fis_type {
8     COMMAND_CODE *cp;
9     BIT_FLAGS mode;
10     tval_type tval;
11     char n1;
12     char n2;
13     char which;
14     COMMAND_CODE i1;
15     COMMAND_CODE i2;
16     COMMAND_CODE e1;
17     COMMAND_CODE e2;
18     COMMAND_CODE k;
19     bool done;
20     bool item;
21     bool oops;
22     bool equip;
23     bool inven;
24     bool floor;
25     bool force;
26     bool allow_equip;
27     bool allow_inven;
28     bool allow_floor;
29     bool toggle;
30     char tmp_val[160];
31     char out_val[160];
32     ITEM_NUMBER floor_num;
33     OBJECT_IDX floor_list[23];
34     int floor_top;
35     TERM_LEN min_width;
36     int menu_line;
37     int max_inven;
38     int max_equip;
39     char cur_tag;
40 } fis_type;
41
42 typedef struct item_selection_type {
43     COMMAND_CODE *cp;
44     BIT_FLAGS mode;
45     tval_type tval;
46     OBJECT_IDX this_o_idx;
47     OBJECT_IDX next_o_idx;
48     char which;
49     OBJECT_IDX k;
50     OBJECT_IDX i1;
51     OBJECT_IDX i2;
52     OBJECT_IDX e1;
53     OBJECT_IDX e2;
54     bool done;
55     bool item;
56     bool oops;
57     bool equip;
58     bool inven;
59     bool floor;
60     bool allow_floor;
61     bool toggle;
62     char tmp_val[160];
63     char out_val[160];
64     int menu_line;
65     int max_inven;
66     int max_equip;
67     char cur_tag;
68 } item_selection_type;
69
70 fis_type *initialize_fis_type(fis_type *fis_ptr, COMMAND_CODE *cp, BIT_FLAGS mode, tval_type tval);
71 item_selection_type *initialize_item_selection_type(item_selection_type *item_selection_ptr, COMMAND_CODE *cp, BIT_FLAGS mode, tval_type tval);