OSDN Git Service

[Refactor] struct player_type を class PlayerType に置換。
[hengbandforosx/hengbandosx.git] / src / core / game-closer.cpp
index 3b24184..2cca64d 100644 (file)
@@ -32,7 +32,7 @@
 #include "view/display-scores.h"
 #include "world/world.h"
 
-static void clear_floor(player_type *player_ptr)
+static void clear_floor(PlayerType *player_ptr)
 {
     (void)fd_close(highscore_fd);
     highscore_fd = -1;
@@ -40,7 +40,7 @@ static void clear_floor(player_type *player_ptr)
     signals_handle_tstp();
 }
 
-static void send_world_score_on_closing(player_type *player_ptr, bool do_send)
+static void send_world_score_on_closing(PlayerType *player_ptr, bool do_send)
 {
     if (send_world_score(player_ptr, do_send, display_player))
         return;
@@ -60,7 +60,7 @@ static void send_world_score_on_closing(player_type *player_ptr, bool do_send)
  * @param player_ptr プレイヤー構造体参照ポインタ。
  * @return 死亡していればTRUE, まだ生きているならば各処理を済ませた上ででFALSE。
  */
-static bool check_death(player_type *player_ptr)
+static bool check_death(PlayerType *player_ptr)
 {
     if (player_ptr->is_dead)
         return true;
@@ -79,7 +79,7 @@ static bool check_death(player_type *player_ptr)
  * @brief 勝利者用の引退演出処理 /
  * Change the player into a King! -RAK-
  */
-static void kingly(player_type *player_ptr)
+static void kingly(PlayerType *player_ptr)
 {
     bool seppuku = streq(player_ptr->died_from, "Seppuku");
     player_ptr->current_floor_ptr->dun_level = 0;
@@ -139,7 +139,7 @@ static void kingly(player_type *player_ptr)
  * This function is called only from "main.c" and "signals.c".
  * </pre>
  */
-void close_game(player_type *player_ptr)
+void close_game(PlayerType *player_ptr)
 {
     bool do_send = true;
     handle_stuff(player_ptr);