From: Deskull Date: Fri, 5 Sep 2014 10:02:23 +0000 (+0900) Subject: Add Doxygen comments to weight limit processes in xtra1.c. X-Git-Tag: v2.2.0~124 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=19f0f87f6507d97cf97e1c3f572896ab89ed5fe1;p=hengbandforosx%2Fhengbandosx.git Add Doxygen comments to weight limit processes in xtra1.c. xtra1.c の重量制限に関する処理に Doxygen コメントを追加。 --- 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]];