/*!
* @brief プレイヤーの呪文学習可能状態を表示する
+ * @param player_ptr プレーヤーへの参照ポインタ
* @return なし
*/
-static void print_study(void)
+static void print_study(player_type *player_ptr)
{
TERM_LEN wid, hgt, row_study, col_study;
col_study = wid + COL_STUDY;
row_study = hgt + ROW_STUDY;
- if (p_ptr->new_spells)
+ if (player_ptr->new_spells)
{
put_str(_("学習", "Stud"), row_study, col_study);
}
/*!
* @brief プレイヤーのものまね可能状態を表示する
+ * @param player_ptr プレーヤーへの参照ポインタ
* @return なし
*/
-static void print_imitation(void)
+static void print_imitation(player_type *player_ptr)
{
TERM_LEN wid, hgt, row_study, col_study;
col_study = wid + COL_STUDY;
row_study = hgt + ROW_STUDY;
- if (p_ptr->pclass == CLASS_IMITATOR)
+ if (player_ptr->pclass == CLASS_IMITATOR)
{
- if (p_ptr->mane_num)
+ if (player_ptr->mane_num)
{
TERM_COLOR attr;
- if (p_ptr->new_mane) attr = TERM_L_RED;
+ if (player_ptr->new_mane) attr = TERM_L_RED;
else attr = TERM_WHITE;
c_put_str(attr, _("まね", "Imit"), row_study, col_study);
}
}
-
/*!
* @brief モンスターの体力ゲージを表示する
* @param riding TRUEならば騎乗中のモンスターの体力、FALSEならターゲットモンスターの体力を表示する。表示位置は固定。
print_hunger(player_ptr);
print_state(player_ptr);
print_speed(player_ptr);
- print_study();
- print_imitation();
+ print_study(player_ptr);
+ print_imitation(player_ptr);
print_status(player_ptr);
}
if (creature_ptr->redraw & (PR_IMITATION))
{
creature_ptr->redraw &= ~(PR_IMITATION);
- print_imitation();
+ print_imitation(creature_ptr);
}
}
else if (creature_ptr->redraw & (PR_STUDY))
{
creature_ptr->redraw &= ~(PR_STUDY);
- print_study();
+ print_study(creature_ptr);
}
}
+
/*!
* @brief player_ptr->window のフラグに応じた更新をまとめて行う / Handle "player_ptr->window"
* @param player_ptr プレーヤーへの参照ポインタ