OSDN Git Service

[Refactor] SM_* ビット定義のコメント修正。 / Fix comments of SM_* bit flags definition.
[hengband/hengband.git] / src / variable.c
index 852b0fe..596d508 100644 (file)
@@ -96,29 +96,32 @@ u32b seed_town;                     /* Hack -- consistent town layout */
 
 s16b command_cmd;              /* Current "Angband Command" */
 
-COMMAND_ARG command_arg;               /* Gives argument of current command */
-s16b command_rep;              /* Gives repetition of current command */
-DIRECTION command_dir;         /* Gives direction of current command */
+COMMAND_ARG command_arg;       /*!< 各種コマンドの汎用的な引数として扱う / Gives argument of current command */
+
+COMMAND_NUM command_rep;       /*!< 各種コマンドの汎用的なリピート数として扱う / Gives repetition of current command */
+
+DIRECTION command_dir;         /*!< 各種コマンドの汎用的な方向値処理として扱う/ Gives direction of current command */
 
 s16b command_see;              /* See "object1.c" */
 s16b command_wrk;              /* See "object1.c" */
 
-s16b command_gap = 999;         /* See "object1.c" */
+TERM_POSITION command_gap = 999;         /* See "object1.c" */
 
 s16b command_new;              /* Command chaining from inven/equip view */
 
 bool msg_flag;                 /* Used in msg_print() for "buffering" */
 
 s16b running;                  /* Current counter for running, if any */
-s16b resting;                  /* Current counter for resting, if any */
+GAME_TURN resting;                     /* Current counter for resting, if any */
 
 POSITION cur_hgt;              /* Current dungeon height */
 POSITION cur_wid;              /* Current dungeon width */
-DEPTH dun_level;               /* Current dungeon level */
+DEPTH dun_level;               /*!< 現在の実ダンジョン階層、base_levelの参照元となる / Current dungeon level */
 s16b num_repro;                        /* Current reproducer count */
-DEPTH object_level;            /* Current object creation level */
-DEPTH monster_level;   /* Current monster creation level */
-DEPTH base_level;              /* Base dungeon level */
+DEPTH base_level;              /*!< 基本生成レベル、後述のobject_level, monster_levelの参照元となる / Base dungeon level */
+DEPTH object_level;            /*!< アイテムの生成レベル、base_levelを起点に一時変更する時に参照 / Current object creation level */
+DEPTH monster_level;   /*!< モンスターの生成レベル、base_levelを起点に一時変更する時に参照 / Current monster creation level */
+bool invoking_midnight_curse; /*!< 悪夢モード時の真夜中太古の呪い発生処理フラグ */
 
 GAME_TURN turn;                                /*!< 画面表示上のゲーム時間基準となるターン / Current game turn */
 GAME_TURN turn_limit;          /*!< turnの最大値 / Limit of game turn */
@@ -150,8 +153,7 @@ bool shimmer_objects;       /* Hack -- optimize multi-hued objects */
 bool repair_monsters;  /* Hack -- optimize detect monsters */
 bool repair_objects;   /* Hack -- optimize detect objects */
 
-s16b inven_nxt;                        /* Hack -- unused */
-bool hack_mind;
+bool is_loading_now;   /*!< ロード直後にcalc_bonus()時の徳変化、及びsanity_blast()による異常を抑止する */
 bool hack_mutation;
 
 s16b inven_cnt;                        /* Number of items in inventory */
@@ -418,35 +420,35 @@ char savefile_base[40];
 /*
  * Array of grids lit by player lite (see "cave.c")
  */
-s16b lite_n;
+POSITION_IDX lite_n;
 POSITION lite_y[LITE_MAX];
 POSITION lite_x[LITE_MAX];
 
 /*
  * Array of grids lit by player lite (see "cave.c")
  */
-s16b mon_lite_n;
+POSITION_IDX mon_lite_n;
 POSITION mon_lite_y[MON_LITE_MAX];
 POSITION mon_lite_x[MON_LITE_MAX];
 
 /*
  * Array of grids viewable to the player (see "cave.c")
  */
-s16b view_n;
+POSITION_IDX view_n;
 POSITION view_y[VIEW_MAX];
 POSITION view_x[VIEW_MAX];
 
 /*
  * Array of grids for use by various functions (see "cave.c")
  */
-s16b temp_n;
+POSITION_IDX temp_n;
 POSITION temp_y[TEMP_MAX];
 POSITION temp_x[TEMP_MAX];
 
 /*
  * Array of grids for delayed visual updating (see "cave.c")
  */
-s16b redraw_n = 0;
+POSITION_IDX redraw_n = 0;
 POSITION redraw_y[REDRAW_MAX];
 POSITION redraw_x[REDRAW_MAX];
 
@@ -480,7 +482,7 @@ char *macro__buf;
 /*
  * The number of quarks
  */
-s16b quark__num;
+STR_OFFSET quark__num;
 
 /*
  * The pointers to the quarks [QUARK_MAX]
@@ -650,6 +652,7 @@ const cptr angband_sound_name[SOUND_MAX] =
        "unused",
        "explode",
        "glass",
+       "reflect",
 };
 
 /*
@@ -1049,7 +1052,7 @@ building_type building[MAX_BLDG];
 /*
  * Maximum number of quests
  */
-IDX max_quests;
+QUEST_IDX max_q_idx;
 
 /*
  * Maximum number of monsters in r_info.txt
@@ -1059,7 +1062,7 @@ MONRACE_IDX max_r_idx;
 /*
  * Maximum number of items in k_info.txt
  */
-IDX max_k_idx;
+KIND_OBJECT_IDX max_k_idx;
 
 /*
  * Maximum number of vaults in v_info.txt
@@ -1084,12 +1087,12 @@ IDX max_e_idx;
 /*
  * Maximum number of dungeon in e_info.txt
  */
-IDX max_d_idx;
+DUNGEON_IDX max_d_idx;
 
 /*
  * Maximum number of objects in the level
  */
-IDX max_o_idx;
+OBJECT_IDX max_o_idx;
 
 /*
  * Maximum number of monsters in the level