1 #include "io-dump/player-status-dump.h"
4 * @brief 画面番号を指定してダンプする
5 * @param creature_ptr プレーヤーへの参照ポインタ
7 * @param display_player 画面表示へのコールバック
8 * @param screen_num 画面番号
11 * @param change_color バッファへ詰める文字の変更有無
14 static void dump_player_status_with_screen_num(
15 player_type *creature_ptr, FILE *fff, display_player_pf display_player,
16 int screen_num, TERM_LEN start_y, TERM_LEN end_y, bool change_color)
21 display_player(creature_ptr, screen_num);
22 for (TERM_LEN y = start_y; y < end_y; y++)
25 for (x = 0; x < 79; x++)
27 (void)(term_what(x, y, &a, &c));
41 while ((x > 0) && (buf[x - 1] == ' '))
44 fprintf(fff, "%s\n", buf);
50 * @brief プレイヤーのステータス表示をファイルにダンプする
51 * @param creature_ptr プレーヤーへの参照ポインタ
53 * @param display_player 画面表示へのコールバック
56 void dump_aux_player_status(player_type *creature_ptr, FILE *fff, display_player_pf display_player)
58 dump_player_status_with_screen_num(creature_ptr, fff, display_player, 0, 1, 22, FALSE);
59 dump_player_status_with_screen_num(creature_ptr, fff, display_player, 1, 10, 19, FALSE);
61 dump_player_status_with_screen_num(creature_ptr, fff, display_player, 2, 2, 22, TRUE);
63 dump_player_status_with_screen_num(creature_ptr, fff, display_player, 3, 1, 22, TRUE);