OSDN Git Service

Merge pull request #2810 from Hourier/Remove-KindObjectIndex
[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
5 /*!
6  * @brief コンソールに表示された施設に関する情報を消去する / Clear the building information
7  * @details 消去は行毎にヌル文字列で行われる。
8  * @param min_row 開始行番号
9  * @param max_row 末尾行番号
10  */
11 void clear_bldg(int min_row, int max_row)
12 {
13     for (int i = min_row; i <= max_row; i++) {
14         prt("", i, 0);
15     }
16 }
17
18 /*!
19  * @brief 所持金を表示する。
20  * @param player_ptr プレイヤーへの参照ポインタ
21  */
22 void building_prt_gold(PlayerType *player_ptr)
23 {
24     char tmp_str[80];
25     prt(_("手持ちのお金: ", "Gold Remaining: "), 23, 53);
26     sprintf(tmp_str, "%9ld", (long)player_ptr->au);
27     prt(tmp_str, 23, 68);
28 }