• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisione5a1c3f8b53d2f9d37c4dd9ac94948afaa146c23 (tree)
Time2014-01-25 21:53:06
Authordeskull <deskull@0568...>
Commiterdeskull

Log Message

Add Doxygen comment to cmd5.c.

Change Summary

Incremental Difference

--- a/src/cmd5.c
+++ b/src/cmd5.c
@@ -47,7 +47,7 @@ cptr spell_category_name(int tval)
4747
4848 bool select_the_force = FALSE;
4949
50-/*
50+/*!
5151 * @brief 領域魔法の閲覧、学習、使用選択するインターフェイス処理
5252 * Allow user to choose a spell/prayer from the given book.
5353 * @param sn 選択した魔法IDを返す参照ポインタ
@@ -347,7 +347,7 @@ static int get_spell(int *sn, cptr prompt, int sval, bool learned, int use_realm
347347 return TRUE;
348348 }
349349
350-/*
350+/*!
351351 * @brief オブジェクトがプレイヤーが使用可能な魔道書かどうかを判定する
352352 * @param 判定したいオブ会ジェクトの構造体参照ポインタ
353353 * @return 学習できる魔道書ならばTRUEを返す
@@ -376,7 +376,7 @@ static bool item_tester_learn_spell(object_type *o_ptr)
376376 return (FALSE);
377377 }
378378
379-/*
379+/*!
380380 * @brief プレイヤーが魔道書を一冊も持っていないかを判定する
381381 * @return 魔道書を一冊も持っていないならTRUEを返す
382382 */
@@ -400,7 +400,11 @@ static bool player_has_no_spellbooks(void)
400400 return TRUE;
401401 }
402402
403-
403+/*!
404+ * @brief プレイヤーの職業が練気術師の時、領域魔法と練気術を切り換える処理のインターフェイス
405+ * @param browse_only 魔法と技能の閲覧を行うならばTRUE
406+ * @return 魔道書を一冊も持っていないならTRUEを返す
407+ */
404408 static void confirm_use_force(bool browse_only)
405409 {
406410 int item;
@@ -453,13 +457,17 @@ static void confirm_use_force(bool browse_only)
453457 }
454458
455459
456-/*
460+/*!
461+ * @brief プレイヤーの魔法と技能を閲覧するコマンドのメインルーチン /
457462 * Peruse the spells/prayers in a book
458- *
463+ * @return なし
464+ * @details
465+ * <pre>
459466 * Note that *all* spells in the book are listed
460467 *
461468 * Note that browsing is allowed while confused or blind,
462469 * and in the dark, primarily to allow browsing in stores.
470+ * </pre>
463471 */
464472 void do_cmd_browse(void)
465473 {
@@ -630,7 +638,11 @@ void do_cmd_browse(void)
630638 screen_load();
631639 }
632640
633-
641+/*!
642+ * @brief プレイヤーの第二魔法領域を変更する /
643+ * @param 変更先の魔法領域ID
644+ * @return なし
645+ */
634646 static void change_realm2(int next_realm)
635647 {
636648 int i, j = 0;
@@ -670,8 +682,10 @@ static void change_realm2(int next_realm)
670682 }
671683
672684
673-/*
685+/*!
686+ * @brief 魔法を学習するコマンドのメインルーチン /
674687 * Study a book to gain a new spell/prayer
688+ * @return なし
675689 */
676690 void do_cmd_study(void)
677691 {
@@ -1107,8 +1121,10 @@ static void wild_magic(int spell)
11071121 }
11081122
11091123
1110-/*
1124+/*!
1125+ * @brief 魔法を詠唱するコマンドのメインルーチン /
11111126 * Cast a spell
1127+ * @return なし
11121128 */
11131129 void do_cmd_cast(void)
11141130 {
@@ -1644,7 +1660,14 @@ msg_print("
16441660 p_ptr->window |= (PW_SPELL);
16451661 }
16461662
1647-
1663+/*!
1664+ * @brief ペットになっているモンスターをソートするための比較処理
1665+ * @param u モンスターの構造体配列
1666+ * @param v 未使用
1667+ * @param a 比較対象のモンスターID1
1668+ * @param b 比較対象のモンスターID2
1669+ * @return 2番目が大ならばTRUEを返す
1670+ */
16481671 static bool ang_sort_comp_pet_dismiss(vptr u, vptr v, int a, int b)
16491672 {
16501673 u16b *who = (u16b*)(u);
@@ -1681,6 +1704,12 @@ static bool ang_sort_comp_pet_dismiss(vptr u, vptr v, int a, int b)
16811704 return w1 <= w2;
16821705 }
16831706
1707+/*!
1708+ * @brief ペットの善悪属性に応じた維持コストの途中計算処理
1709+ * @param m_ptr 計算基準となるモンスターの構造体参照ポインタ
1710+ * @param inc m_ptrで指定したモンスターを維持コスト計算に加えるならTRUE、外すならFALSEを指定
1711+ * @return なし
1712+ */
16841713 void check_pets_num_and_align(monster_type *m_ptr, bool inc)
16851714 {
16861715 s32b old_friend_align = friend_align;
@@ -1702,6 +1731,10 @@ void check_pets_num_and_align(monster_type *m_ptr, bool inc)
17021731 if (old_friend_align != friend_align) p_ptr->update |= (PU_BONUS);
17031732 }
17041733
1734+/*!
1735+ * @brief ペットの維持コスト計算
1736+ * @return 維持コスト(%)
1737+ */
17051738 int calculate_upkeep(void)
17061739 {
17071740 s32b old_friend_align = friend_align;
Show on old repository browser