OSDN Git Service

[Refactor] #37353 hack_m_idx, hack_m_idx_ii を monster2.c / monster.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 repair_monsters;   /* Hack -- optimize detect monsters */
30 bool repair_objects;    /* Hack -- optimize detect objects */
31
32 int total_friends = 0;
33
34 bool reinit_wilderness = FALSE;
35
36 /*
37  * Dungeon size info
38  */
39
40 POSITION panel_row_min, panel_row_max;
41 POSITION panel_col_min, panel_col_max;
42 POSITION panel_col_prt, panel_row_prt;
43
44
45 /*
46  * User info
47  */
48 int player_uid;
49 int player_euid;
50 int player_egid;
51
52 /*
53  * Buffer to hold the current savefile name
54  * 'savefile' holds full path name. 'savefile_base' holds only base name.
55  */
56 char savefile[1024];
57 char savefile_base[40];
58
59
60 pos_list tmp_pos;
61
62 /*
63  * The number of quarks
64  */
65 STR_OFFSET quark__num;
66
67 /*
68  * The pointers to the quarks [QUARK_MAX]
69  */
70 concptr *quark__str;
71
72 /*
73  * The array of window pointers
74  */
75 term *angband_term[8];
76
77 /*
78  * Keymaps for each "mode" associated with each keypress.
79  */
80 concptr keymap_act[KEYMAP_MODES][256];
81
82
83
84 /*** Player information ***/
85
86 /*
87  * Static player info record
88  */
89 player_type p_body;
90
91 /*
92  * Pointer to the player info
93  */
94 player_type *p_ptr = &p_body;
95
96 bool can_save = FALSE;        /* Game can be saved */
97
98
99 MONSTER_IDX pet_t_m_idx;
100 MONSTER_IDX riding_t_m_idx;
101
102 MONSTER_IDX today_mon;
103
104 u32b start_time;
105
106 bool sukekaku;
107 bool new_mane;
108
109 /*
110  * Which dungeon ?
111  */
112 DEPTH *max_dlv;
113
114 COMMAND_CODE now_message;
115 bool use_menu;
116
117 #ifdef CHUUKEI
118 bool chuukei_server;
119 bool chuukei_client;
120 char *server_name;
121 int server_port;
122 #endif
123
124 /* for movie */
125 bool browsing_movie;
126
127
128 /* for snipers */
129 bool reset_concent = FALSE;   /* Concentration reset flag */
130
131