OSDN Git Service

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