OSDN Git Service

Merge branch 'For2.2.2-Refactoring' into For2.2.2-Fix-Hourier
[hengband/hengband.git] / src / view / display-player-misc-info.c
1 #include "view/display-player-stat-info.h"
2 #include "player-personality.h"
3 #include "player-sex.h"
4 #include "term.h"
5
6 /*!
7  * @brief プレイヤーの特性フラグ一覧表示2a /
8  * @param creature_ptr プレーヤーへの参照ポインタ
9  * Special display, part 2a
10  * @return なし
11  */
12 void display_player_misc_info(player_type *creature_ptr)
13 {
14         put_str(_("名前  :", "Name  :"), 1, 26);
15         put_str(_("性別  :", "Sex   :"), 3, 1);
16         put_str(_("種族  :", "Race  :"), 4, 1);
17         put_str(_("職業  :", "Class :"), 5, 1);
18
19         char buf[80];
20         char tmp[80];
21         strcpy(tmp, ap_ptr->title);
22 #ifdef JP
23         if (ap_ptr->no == 1)
24                 strcat(tmp, "の");
25 #else
26         strcat(tmp, " ");
27 #endif
28         strcat(tmp, creature_ptr->name);
29
30         c_put_str(TERM_L_BLUE, tmp, 1, 34);
31         c_put_str(TERM_L_BLUE, sp_ptr->title, 3, 9);
32         c_put_str(TERM_L_BLUE, (creature_ptr->mimic_form ? mimic_info[creature_ptr->mimic_form].title : rp_ptr->title), 4, 9);
33         c_put_str(TERM_L_BLUE, cp_ptr->title, 5, 9);
34
35         put_str(_("レベル:", "Level :"), 6, 1);
36         put_str(_("HP  :", "Hits  :"), 7, 1);
37         put_str(_("MP  :", "Mana  :"), 8, 1);
38
39         (void)sprintf(buf, "%d", (int)creature_ptr->lev);
40         c_put_str(TERM_L_BLUE, buf, 6, 9);
41         (void)sprintf(buf, "%d/%d", (int)creature_ptr->chp, (int)creature_ptr->mhp);
42         c_put_str(TERM_L_BLUE, buf, 7, 9);
43         (void)sprintf(buf, "%d/%d", (int)creature_ptr->csp, (int)creature_ptr->msp);
44         c_put_str(TERM_L_BLUE, buf, 8, 9);
45 }