OSDN Git Service

cb383efd6d3fee0d9080b5994e38f7ad17ca5f42
[hengbandforosx/hengbandosx.git] / src / market / building-util.cpp
1 #include "market/building-util.h"
2 #include "system/player-type-definition.h"
3 #include "term/screen-processor.h"
4 #include "term/z-form.h"
5
6 /*!
7  * @brief コンソールに表示された施設に関する情報を消去する / Clear the building information
8  * @details 消去は行毎にヌル文字列で行われる。
9  * @param min_row 開始行番号
10  * @param max_row 末尾行番号
11  */
12 void clear_bldg(int min_row, int max_row)
13 {
14     for (int i = min_row; i <= max_row; i++) {
15         prt("", i, 0);
16     }
17 }
18
19 /*!
20  * @brief 所持金を表示する。
21  * @param player_ptr プレイヤーへの参照ポインタ
22  */
23 void building_prt_gold(PlayerType *player_ptr)
24 {
25     prt(_("手持ちのお金: ", "Gold Remaining: "), 23, 53);
26     prt(format("%9ld", (long)player_ptr->au), 23, 68);
27 }