OSDN Git Service

[Refactor] #37353 msg_flag を util.c/h へ移動.
[hengband/hengband.git] / src / variable.c
1 /*!
2  * @file variable.c
3  * @brief グローバル変数定義 / Angband variables
4  * @date 2014/10/05
5  * @author
6  * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke<br>
7  * <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>
11  */
12
13 #include "angband.h"
14 #include "geometry.h"
15
16 s16b command_cmd;               /* Current "Angband Command" */
17
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 */
21
22 s16b command_see;               /* See "object1.c" */
23 s16b command_wrk;               /* See "object1.c" */
24
25 TERM_LEN command_gap = 999;         /* See "object1.c" */
26
27 s16b command_new;               /* Command chaining from inven/equip view */
28
29 bool get_com_no_macros = FALSE; /* Expand macros in "get_com" or not */
30
31 bool repair_monsters;   /* Hack -- optimize detect monsters */
32 bool repair_objects;    /* Hack -- optimize detect objects */
33
34 MONSTER_IDX hack_m_idx = 0;     /* Hack -- see "process_monsters()" */
35 MONSTER_IDX hack_m_idx_ii = 0;
36
37 int total_friends = 0;
38
39 bool reinit_wilderness = FALSE;
40
41 /*
42  * Dungeon size info
43  */
44
45 POSITION panel_row_min, panel_row_max;
46 POSITION panel_col_min, panel_col_max;
47 POSITION panel_col_prt, panel_row_prt;
48
49
50 /*
51  * User info
52  */
53 int player_uid;
54 int player_euid;
55 int player_egid;
56
57 /*
58  * Buffer to hold the current savefile name
59  * 'savefile' holds full path name. 'savefile_base' holds only base name.
60  */
61 char savefile[1024];
62 char savefile_base[40];
63
64
65 pos_list tmp_pos;
66
67 /*
68  * The number of quarks
69  */
70 STR_OFFSET quark__num;
71
72 /*
73  * The pointers to the quarks [QUARK_MAX]
74  */
75 concptr *quark__str;
76
77 /*
78  * The array of window pointers
79  */
80 term *angband_term[8];
81
82 /*
83  * Keymaps for each "mode" associated with each keypress.
84  */
85 concptr keymap_act[KEYMAP_MODES][256];
86
87
88
89 /*** Player information ***/
90
91 /*
92  * Static player info record
93  */
94 player_type p_body;
95
96 /*
97  * Pointer to the player info
98  */
99 player_type *p_ptr = &p_body;
100
101 bool can_save = FALSE;        /* Game can be saved */
102
103
104 MONSTER_IDX pet_t_m_idx;
105 MONSTER_IDX riding_t_m_idx;
106
107 MONSTER_IDX today_mon;
108
109 u32b start_time;
110
111 bool sukekaku;
112 bool new_mane;
113
114 /*
115  * Which dungeon ?
116  */
117 DEPTH *max_dlv;
118
119 COMMAND_CODE now_message;
120 bool use_menu;
121
122 #ifdef CHUUKEI
123 bool chuukei_server;
124 bool chuukei_client;
125 char *server_name;
126 int server_port;
127 #endif
128
129 /* for movie */
130 bool browsing_movie;
131
132
133 /* for snipers */
134 bool reset_concent = FALSE;   /* Concentration reset flag */
135
136