OSDN Git Service

[Refactor] #40624 Added some comments in monster-lite.c and floor-events.h
authorHourier <hourier@users.sourceforge.jp>
Sun, 9 Aug 2020 04:32:21 +0000 (13:32 +0900)
committerHourier <hourier@users.sourceforge.jp>
Wed, 12 Aug 2020 09:35:44 +0000 (18:35 +0900)
src/floor/floor-events.h
src/monster-floor/monster-lite.c

index 650274c..e6a501e 100644 (file)
@@ -8,6 +8,6 @@ MONSTER_NUMBER count_all_hostile_monsters(floor_type *floor_ptr);
 void update_dungeon_feeling(player_type *subject_ptr);
 void glow_deep_lava_and_bldg(player_type *subject_ptr);
 void forget_lite(floor_type *floor_ptr);
-void update_lite(player_type *subject_ptr);
+void update_lite(player_type *subject_ptr); // todo player-statusからだけ呼ばれている.
 void forget_view(floor_type *floor_ptr);
-void update_view(player_type *subject_ptr);
+void update_view(player_type *subject_ptr); // todo player-statusからだけ呼ばれている.
index 450cf79..4de0a14 100644 (file)
@@ -119,11 +119,8 @@ static void update_monster_dark(player_type *subject_ptr, const POSITION y, cons
 }
 
 /*
+ * todo player-status からのみ呼ばれている。しかしあちらは行数が酷いので要調整
  * Update squares illuminated or darkened by monsters.
- *
- * Hack - use the CAVE_ROOM flag (renamed to be CAVE_MNLT) to
- * denote squares illuminated by monsters.
- *
  * The CAVE_TEMP and CAVE_XTRA flag are used to store the state during the
  * updating.  Only squares in view of the player, whos state
  * changes are drawn via lite_spot().
@@ -324,6 +321,11 @@ void update_mon_lite(player_type *subject_ptr)
     subject_ptr->old_monlite = subject_ptr->monlite;
 }
 
+/*!
+ * @brief 画面切り替え等でモンスターの灯りを消去する
+ * @param floor_ptr 現在フロアへの参照ポインタ
+ * @return なし
+ */
 void clear_mon_lite(floor_type *floor_ptr)
 {
     for (int i = 0; i < floor_ptr->mon_lite_n; i++) {