OSDN Git Service

[Refactor] #40414 Renamed display_monster_lore() to process_monster_lore()
authorHourier <hourier@users.sourceforge.jp>
Tue, 9 Jun 2020 12:54:49 +0000 (21:54 +0900)
committerHourier <hourier@users.sourceforge.jp>
Tue, 9 Jun 2020 12:54:49 +0000 (21:54 +0900)
src/monster-lore/monster-lore.c
src/monster-lore/monster-lore.h
src/monster/monster1.c

index 99a8947..ed0aa29 100644 (file)
@@ -166,7 +166,7 @@ static void set_damage(player_type *player_ptr, MONRACE_IDX r_idx, monster_spell
 static void hooked_roff(concptr str) { hook_c_roff(TERM_WHITE, str); }
 
 /*!
- * @brief モンスターの思い出情報を表示する
+ * @brief モンスターの思い出情報を表示するメインルーチン
  * Hack -- display monster information using "hooked_roff()"
  * @param r_idx モンスターの種族ID
  * @param mode 表示オプション
@@ -176,7 +176,7 @@ static void hooked_roff(concptr str) { hook_c_roff(TERM_WHITE, str); }
  * left edge of the screen, on a cleared line, in which the recall is
  * to take place.  One extra blank line is left after the recall.
  */
-void display_monster_lore(player_type *player_ptr, MONRACE_IDX r_idx, BIT_FLAGS mode)
+void process_monster_lore(player_type *player_ptr, MONRACE_IDX r_idx, BIT_FLAGS mode)
 {
 #ifdef JP
     char jverb_buf[64];
index 784e347..6ba2007 100644 (file)
@@ -6,4 +6,4 @@ typedef void (*hook_c_roff_pf)(TERM_COLOR attr, concptr str);
 extern hook_c_roff_pf hook_c_roff;
 
 void dice_to_string(int base_damage, int dice_num, int dice_side, int dice_mult, int dice_div, char *msg);
-void display_monster_lore(player_type *player_ptr, MONRACE_IDX r_idx, BIT_FLAGS mode);
+void process_monster_lore(player_type *player_ptr, MONRACE_IDX r_idx, BIT_FLAGS mode);
index d6654f4..81c21c3 100644 (file)
@@ -131,7 +131,7 @@ void screen_roff(player_type *player_ptr, MONRACE_IDX r_idx, BIT_FLAGS mode)
        msg_erase();
        Term_erase(0, 1, 255);
        hook_c_roff = c_roff;
-       display_monster_lore(player_ptr, r_idx, mode);
+       process_monster_lore(player_ptr, r_idx, mode);
        roff_top(r_idx);
 }
 
@@ -152,7 +152,7 @@ void display_roff(player_type *player_ptr)
        Term_gotoxy(0, 1);
        hook_c_roff = c_roff;
        MONRACE_IDX r_idx = player_ptr->monster_race_idx;
-       display_monster_lore(player_ptr, r_idx, 0);
+       process_monster_lore(player_ptr, r_idx, 0);
        roff_top(r_idx);
 }
 
@@ -167,7 +167,7 @@ void display_roff(player_type *player_ptr)
 void output_monster_spoiler(player_type *player_ptr, MONRACE_IDX r_idx, void(*roff_func)(TERM_COLOR attr, concptr str))
 {
        hook_c_roff = roff_func;
-       display_monster_lore(player_ptr, r_idx, 0x03);
+       process_monster_lore(player_ptr, r_idx, 0x03);
 }