OSDN Git Service

[Refactor] #38993 lite_n/x/y を floor_type に取り込む。 / Move lite_n/x/y to floor_type...
[hengband/hengband.git] / src / variable.c
index 8670d32..86ddf8e 100644 (file)
@@ -111,15 +111,8 @@ bool msg_flag;                     /* Used in msg_print() for "buffering" */
 s16b running;                  /* Current counter for running, if any */
 GAME_TURN resting;                     /* Current counter for resting, if any */
 
-MONSTER_NUMBER num_repro; /*!< Current reproducer count */
-DEPTH object_level;            /*!< アイテムの生成レベル、current_floor_ptr->base_levelを起点に一時変更する時に参照 / Current object creation level */
-DEPTH monster_level;   /*!< モンスターの生成レベル、current_floor_ptr->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 */
-GAME_TURN dungeon_turn;                        /*!< NASTY生成の計算に関わる内部ターン値 / Game turn in dungeon */
-GAME_TURN dungeon_turn_limit;  /*!< dungeon_turnの最大値 / Limit of game turn in dungeon */
 GAME_TURN old_turn;                    /* Turn when level began */
 GAME_TURN old_battle;
 
@@ -160,6 +153,7 @@ MONSTER_IDX m_cnt = 0; /* Number of live monsters */
 
 MONSTER_IDX hack_m_idx = 0;    /* Hack -- see "process_monsters()" */
 MONSTER_IDX hack_m_idx_ii = 0;
+
 bool multi_rew = FALSE;
 char summon_kin_type;   /* Hack, by Julian Lighton: summon 'relatives' */
 
@@ -215,10 +209,6 @@ char player_base[32];
 char savefile[1024];
 char savefile_base[40];
 
-POSITION_IDX lite_n; //!< Array of grids lit by player lite (see "current_floor_ptr->grid_array.c")
-POSITION lite_y[LITE_MAX];
-POSITION lite_x[LITE_MAX];
-
 POSITION_IDX mon_lite_n; //!< Array of grids lit by player lite (see "current_floor_ptr->grid_array.c")
 POSITION mon_lite_y[MON_LITE_MAX];
 POSITION mon_lite_x[MON_LITE_MAX];
@@ -464,8 +454,6 @@ const concptr angband_music_basic_name[MUSIC_BASIC_MAX] =
 floor_type floor;
 floor_type *current_floor_ptr = &floor;
 
-
-
 /*
  * The array of saved floors
  */
@@ -478,6 +466,10 @@ saved_floor_type saved_floors[MAX_SAVED_FLOORS];
 FLOOR_IDX max_floor_id;
 
 
+world_type world;
+world_type *current_world_ptr = &world;
+
+
 /*
  * Sign for current process used in temporal files.
  * Actually it is the start time of current process.
@@ -486,23 +478,6 @@ u32b saved_floor_file_sign;
 
 
 /*
- * The array of dungeon items [max_o_idx]
- */
-object_type *o_list;
-
-/*
- * The array of dungeon monsters [max_m_idx]
- */
-monster_type *m_list;
-
-/*
- * The array to process dungeon monsters [max_m_idx]
- */
-s16b *mproc_list[MAX_MTIMED];
-s16b mproc_max[MAX_MTIMED]; /* Number of monsters to be processed */
-
-
-/*
  * Maximum number of towns
  */
 TOWN_IDX max_towns;
@@ -774,21 +749,7 @@ EGO_IDX max_e_idx;
  */
 DUNGEON_IDX max_d_idx;
 
-/*
- * Maximum number of objects in the level
- */
-OBJECT_IDX max_o_idx;
 
-/*
- * Maximum number of monsters in the level
- */
-MONSTER_IDX max_m_idx;
-
-/*
- * Maximum size of the wilderness
- */
-POSITION max_wild_x;
-POSITION max_wild_y;
 
 /*
  * Quest info