From 05cf6d7a6297bd1ce7f315907774e6de389f3051 Mon Sep 17 00:00:00 2001 From: Deskull Date: Sun, 7 Sep 2014 20:52:49 +0900 Subject: [PATCH] =?utf8?q?Add=20Doxygen=20comments=20to=20other=20function?= =?utf8?q?s=20to=20xtra1.c.=20xtra1.c=20=E5=86=85=E3=81=AE=E6=AE=8B?= =?utf8?q?=E3=82=8A=E9=96=A2=E6=95=B0=E5=85=A8=E3=81=A6=E3=81=AB=20Doxygen?= =?utf8?q?=E3=80=80=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=82=92=E8=BF=BD?= =?utf8?q?=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/xtra1.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/xtra1.c b/src/xtra1.c index 0ab85b3d6..384174665 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -6271,7 +6271,11 @@ void handle_stuff(void) if (p_ptr->window) window_stuff(); } - +/*! + * @brief プレイヤーの現在開いている手の状態を返す + * @param riding_control 乗馬中により片手を必要としている状態ならばTRUEを返す。 + * @return 開いている手のビットフラグ + */ s16b empty_hands(bool riding_control) { s16b status = EMPTY_HAND_NONE; @@ -6289,6 +6293,10 @@ s16b empty_hands(bool riding_control) } +/*! + * @brief プレイヤーが防具重量制限のある職業時にペナルティを受ける状態にあるかどうかを返す。 + * @return ペナルティが適用されるならばTRUE。 + */ bool heavy_armor(void) { u16b monk_arm_wgt = 0; @@ -6307,6 +6315,9 @@ bool heavy_armor(void) return (monk_arm_wgt > (100 + (p_ptr->lev * 4))); } +/*! + * @brief 実ゲームプレイ時間を更新する + */ void update_playtime(void) { /* Check if the game has started */ -- 2.11.0