OSDN Git Service

[Refactor] #37353 can_save を core.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 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 pos_list tmp_pos;
53
54 /*
55  * The number of quarks
56  */
57 STR_OFFSET quark__num;
58
59 /*
60  * The pointers to the quarks [QUARK_MAX]
61  */
62 concptr *quark__str;
63
64 /*
65  * The array of window pointers
66  */
67 term *angband_term[8];
68
69 /*
70  * Keymaps for each "mode" associated with each keypress.
71  */
72 concptr keymap_act[KEYMAP_MODES][256];
73
74
75
76 /*** Player information ***/
77
78 /*
79  * Static player info record
80  */
81 player_type p_body;
82
83 /*
84  * Pointer to the player info
85  */
86 player_type *p_ptr = &p_body;
87
88
89 MONSTER_IDX pet_t_m_idx;
90 MONSTER_IDX riding_t_m_idx;
91
92 MONSTER_IDX today_mon;
93
94 u32b start_time;
95
96 bool sukekaku;
97 bool new_mane;
98
99 /*
100  * Which dungeon ?
101  */
102 DEPTH *max_dlv;
103
104 COMMAND_CODE now_message;
105 bool use_menu;
106
107 #ifdef CHUUKEI
108 bool chuukei_server;
109 bool chuukei_client;
110 char *server_name;
111 int server_port;
112 #endif
113
114 /* for movie */
115 bool browsing_movie;
116
117
118 /* for snipers */
119 bool reset_concent = FALSE;   /* Concentration reset flag */
120
121