OSDN Git Service

[Refactor] #40233 Moved store_prt_gold() from store.c/h to display-store.c/h
authorHourier <hourier@users.sourceforge.jp>
Thu, 16 Jul 2020 13:38:56 +0000 (22:38 +0900)
committerHourier <hourier@users.sourceforge.jp>
Thu, 16 Jul 2020 13:38:56 +0000 (22:38 +0900)
src/store/store.c
src/store/store.h
src/view/display-store.c
src/view/display-store.h

index 3b11cd6..4cfd817 100644 (file)
@@ -255,21 +255,6 @@ bool noneedtobargain(PRICE minprice)
 }
 
 /*!
- * @brief プレイヤーの所持金を表示する /
- * Displays players gold                                       -RAK-
- * @param player_ptr プレーヤーへの参照ポインタ
- * @return なし
- * @details
- */
-void store_prt_gold(player_type *player_ptr)
-{
-    prt(_("手持ちのお金: ", "Gold Remaining: "), 19 + xtra_stock, 53);
-    char out_val[64];
-    sprintf(out_val, "%9ld", (long)player_ptr->au);
-    prt(out_val, 19 + xtra_stock, 68);
-}
-
-/*!
  * @brief 店舗からアイテムを選択する /
  * Get the ID of a store item and return its value     -RAK-
  * @param com_val 選択IDを返す参照ポインタ
index 80479f3..71b6d4f 100644 (file)
@@ -23,7 +23,6 @@ extern bool allow_inc;
 
 PRICE price_item(player_type *player_ptr, object_type *o_ptr, int greed, bool flip);
 bool noneedtobargain(PRICE minprice);
-void store_prt_gold(player_type *player_ptr);
 void store_shuffle(player_type *player_ptr, int which);
 void store_maintenance(player_type *player_ptr, int town_num, int store_num);
 void store_init(int town_num, int store_num);
index d36cc83..3f3a6dd 100644 (file)
 #include "util/int-char-converter.h"
 
 /*!
+ * @brief プレイヤーの所持金を表示する /
+ * Displays players gold                                       -RAK-
+ * @param player_ptr プレーヤーへの参照ポインタ
+ * @return なし
+ * @details
+ */
+void store_prt_gold(player_type *player_ptr)
+{
+    prt(_("手持ちのお金: ", "Gold Remaining: "), 19 + xtra_stock, 53);
+    char out_val[64];
+    sprintf(out_val, "%9ld", (long)player_ptr->au);
+    prt(out_val, 19 + xtra_stock, 68);
+}
+
+/*!
  * @brief 店の商品リストを再表示する /
  * Re-displays a single store entry
  * @param player_ptr プレーヤーへの参照ポインタ
index 628469f..44ffc75 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "system/angband.h"
 
+void store_prt_gold(player_type *player_ptr);
 void display_entry(player_type *player_ptr, int pos);
 void display_store_inventory(player_type *player_ptr);
 void display_store(player_type *player_ptr);