OSDN Git Service

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