OSDN Git Service

[Refactor] #37353 reinit_wilderness を bldg.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 /*
35  * Dungeon size info
36  */
37
38 POSITION panel_row_min, panel_row_max;
39 POSITION panel_col_min, panel_col_max;
40 POSITION panel_col_prt, panel_row_prt;
41
42
43 /*
44  * User info
45  */
46 int player_uid;
47 int player_euid;
48 int player_egid;
49
50 pos_list tmp_pos;
51
52 /*
53  * The number of quarks
54  */
55 STR_OFFSET quark__num;
56
57 /*
58  * The pointers to the quarks [QUARK_MAX]
59  */
60 concptr *quark__str;
61
62 /*
63  * The array of window pointers
64  */
65 term *angband_term[8];
66
67 /*
68  * Keymaps for each "mode" associated with each keypress.
69  */
70 concptr keymap_act[KEYMAP_MODES][256];
71
72
73
74 /*** Player information ***/
75
76 /*
77  * Static player info record
78  */
79 player_type p_body;
80
81 /*
82  * Pointer to the player info
83  */
84 player_type *p_ptr = &p_body;
85
86
87 MONSTER_IDX pet_t_m_idx;
88 MONSTER_IDX riding_t_m_idx;
89
90 MONSTER_IDX today_mon;
91
92 u32b start_time;
93
94 bool sukekaku;
95 bool new_mane;
96
97 /*
98  * Which dungeon ?
99  */
100 DEPTH *max_dlv;
101
102 bool use_menu;
103
104 #ifdef CHUUKEI
105 bool chuukei_server;
106 bool chuukei_client;
107 char *server_name;
108 int server_port;
109 #endif
110
111 /* for movie */
112 bool browsing_movie;
113
114
115 /* for snipers */
116 bool reset_concent = FALSE;   /* Concentration reset flag */
117
118