3 * @brief グローバル変数定義 / Angband variables
6 * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke<br>
8 * This software may be copied and distributed for educational, research,<br>
9 * and not for profit purposes provided that this copyright and statement<br>
10 * are included in all such copies. Other copyrights may also apply.<br>
16 s16b command_cmd; /* Current "Angband Command" */
18 COMMAND_ARG command_arg; /*!< 各種コマンドの汎用的な引数として扱う / Gives argument of current command */
19 COMMAND_NUM command_rep; /*!< 各種コマンドの汎用的なリピート数として扱う / Gives repetition of current command */
20 DIRECTION command_dir; /*!< 各種コマンドの汎用的な方向値処理として扱う/ Gives direction of current command */
22 s16b command_see; /* See "object1.c" */
23 s16b command_wrk; /* See "object1.c" */
25 TERM_LEN command_gap = 999; /* See "object1.c" */
27 s16b command_new; /* Command chaining from inven/equip view */
29 bool msg_flag; /* Used in msg_print() for "buffering" */
31 s16b running; /* Current counter for running, if any */
35 s16b signal_count; /* Hack -- Count interupts */
37 bool inkey_base; /* See the "inkey()" function */
38 bool inkey_xtra; /* See the "inkey()" function */
39 bool inkey_scan; /* See the "inkey()" function */
40 bool inkey_flag; /* See the "inkey()" function */
41 bool get_com_no_macros = FALSE; /* Expand macros in "get_com" or not */
43 OBJECT_SUBTYPE_VALUE coin_type; /* Hack -- force coin type */
45 bool repair_monsters; /* Hack -- optimize detect monsters */
46 bool repair_objects; /* Hack -- optimize detect objects */
48 MONSTER_IDX hack_m_idx = 0; /* Hack -- see "process_monsters()" */
49 MONSTER_IDX hack_m_idx_ii = 0;
51 bool multi_rew = FALSE;
53 int total_friends = 0;
54 int leaving_quest = 0;
55 bool reinit_wilderness = FALSE;
61 POSITION panel_row_min, panel_row_max;
62 POSITION panel_col_min, panel_col_max;
63 POSITION panel_col_prt, panel_row_prt;
67 * Targetting variables
69 MONSTER_IDX target_who;
82 * Stripped version of "player_name"
88 * Buffer to hold the current savefile name
89 * 'savefile' holds full path name. 'savefile_base' holds only base name.
92 char savefile_base[40];
99 * Number of active macros.
104 * Array of macro patterns [MACRO_MAX]
109 * Array of macro actions [MACRO_MAX]
114 * Array of macro types [MACRO_MAX]
119 * Current macro action [1024]
125 * The number of quarks
127 STR_OFFSET quark__num;
130 * The pointers to the quarks [QUARK_MAX]
135 * The array of window pointers
137 term *angband_term[8];
140 * Sign for current process used in temporal files.
141 * Actually it is the start time of current process.
143 u32b saved_floor_file_sign;
147 * Keymaps for each "mode" associated with each keypress.
149 concptr keymap_act[KEYMAP_MODES][256];
153 /*** Player information ***/
156 * Static player info record
161 * Pointer to the player info
163 player_type *p_ptr = &p_body;
167 * Here is a "pseudo-hook" used during calls to "get_item()" and
168 * "show_inven()" and "show_equip()", and the choice window routines.
170 OBJECT_TYPE_VALUE item_tester_tval;
174 * Here is a "hook" used during calls to "get_item()" and
175 * "show_inven()" and "show_equip()", and the choice window routines.
177 bool (*item_tester_hook)(object_type*);
183 * Hack -- function hooks to restrict "get_mon_num_prep()" function
185 monsterrace_hook_type get_mon_num_hook;
186 monsterrace_hook_type get_mon_num2_hook;
190 * Hack -- function hook to restrict "get_obj_num_prep()" function
192 bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
195 * Flags for initialization
201 * The "highscore" file descriptor, if available.
203 int highscore_fd = -1;
205 bool can_save = FALSE; /* Game can be saved */
208 MONSTER_IDX pet_t_m_idx;
209 MONSTER_IDX riding_t_m_idx;
211 MONSTER_IDX today_mon;
223 COMMAND_CODE now_message;
238 bool reset_concent = FALSE; /* Concentration reset flag */