From 19f0f87f6507d97cf97e1c3f572896ab89ed5fe1 Mon Sep 17 00:00:00 2001 From: Deskull Date: Fri, 5 Sep 2014 19:02:23 +0900 Subject: [PATCH] =?utf8?q?Add=20Doxygen=20comments=20to=20weight=20limit?= =?utf8?q?=20processes=20in=20xtra1.c.=20xtra1.c=20=E3=81=AE=E9=87=8D?= =?utf8?q?=E9=87=8F=E5=88=B6=E9=99=90=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B?= =?utf8?q?=E5=87=A6=E7=90=86=E3=81=AB=20Doxygen=20=E3=82=B3=E3=83=A1?= =?utf8?q?=E3=83=B3=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/xtra1.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/xtra1.c b/src/xtra1.c index 1c25e99a3..903f353a3 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -3025,9 +3025,10 @@ static void calc_torch(void) } - -/* +/*! + * @brief プレイヤーの所持重量制限を計算する / * Computes current weight limit. + * @return 制限重量(ポンド) */ u32b weight_limit(void) { @@ -3041,12 +3042,21 @@ u32b weight_limit(void) return i; } - +/*! + * @brief プレイヤーが現在右手/左手に武器を持っているか判定する / + * @param i 判定する手のID(右手:0 左手:1) + * @return 持っているならばTRUE + */ bool buki_motteruka(int i) { return ((inventory[i].k_idx && object_is_melee_weapon(&inventory[i])) ? TRUE : FALSE); } +/*! + * @brief 射撃武器がプレイヤーにとって重すぎるかどうかの判定 / + * @param o_ptr 判定する射撃武器のアイテム情報参照ポインタ + * @return 重すぎるならばTRUE + */ bool is_heavy_shoot(object_type *o_ptr) { int hold = adj_str_hold[p_ptr->stat_ind[A_STR]]; -- 2.11.0