• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision4b93d1af71856a7d024bb4ebc07ff2aa89a2e074 (tree)
Time2013-12-28 21:36:26
Authordeskull <deskull@0568...>
Commiterdeskull

Log Message

Add Doxygen comment to birth.c.

Change Summary

Incremental Difference

--- a/src/birth.c
+++ b/src/birth.c
@@ -58,19 +58,19 @@ struct hist_type
5858
5959
6060 /*!
61- * 生い立ちテーブルの定義 / Background information (see below)
62- *
63- * Chart progression by race:
64- * Human --> 1 --> 2 --> 3 --> 50 --> 51 --> 52 --> 53
65- * Half-Elf --> 4 --> 1 --> 2 --> 3 --> 50 --> 51 --> 52 --> 53
66- * Elf/High-Elf --> 7 --> 8 --> 9 --> 54 --> 55 --> 56
67- * Hobbit --> 10 --> 11 --> 3 --> 50 --> 51 --> 52 --> 53
68- * Gnome --> 13 --> 14 --> 3 --> 50 --> 51 --> 52 --> 53
69- * Dwarf --> 16 --> 17 --> 18 --> 57 --> 58 --> 59 --> 60 --> 61
70- * Half-Orc --> 19 --> 20 --> 2 --> 3 --> 50 --> 51 --> 52 --> 53
71- * Half-Troll --> 22 --> 23 --> 62 --> 63 --> 64 --> 65 --> 66
72- *
73- * XXX XXX XXX This table *must* be correct or drastic errors may occur!
61+ * 生い立ちテーブルの定義 / Background information (see below)\n
62+ *\n
63+ * Chart progression by race:\n
64+ * Human --> 1 --> 2 --> 3 --> 50 --> 51 --> 52 --> 53\n
65+ * Half-Elf --> 4 --> 1 --> 2 --> 3 --> 50 --> 51 --> 52 --> 53\n
66+ * Elf/High-Elf --> 7 --> 8 --> 9 --> 54 --> 55 --> 56\n
67+ * Hobbit --> 10 --> 11 --> 3 --> 50 --> 51 --> 52 --> 53\n
68+ * Gnome --> 13 --> 14 --> 3 --> 50 --> 51 --> 52 --> 53\n
69+ * Dwarf --> 16 --> 17 --> 18 --> 57 --> 58 --> 59 --> 60 --> 61\n
70+ * Half-Orc --> 19 --> 20 --> 2 --> 3 --> 50 --> 51 --> 52 --> 53\n
71+ * Half-Troll --> 22 --> 23 --> 62 --> 63 --> 64 --> 65 --> 66\n
72+ *\n
73+ * XXX XXX XXX This table *must* be correct or drastic errors may occur!\n
7474 */
7575 static hist_type bg[] =
7676 {
@@ -2057,18 +2057,23 @@ static struct {
20572057 /*! オートローラ中、各能力値が水準を超えた回数 / Autoroll matches */
20582058 static s32b stat_match[6];
20592059
2060-/*1 オートローラの試行回数 / Autoroll round */
2060+/*! オートローラの試行回数 / Autoroll round */
20612061 static s32b auto_round;
20622062
2063+/*!
2064+ * @brief プレイヤー作成を中断して変愚蛮怒を終了する
2065+ * @return なし
2066+ */
20632067 static void birth_quit(void)
20642068 {
20652069 remove_loc();
20662070 quit(NULL);
20672071 }
20682072
2069-
2070-/*
2071- * Show specific help file
2073+/*!
2074+ * @brief 指定されたヘルプファイルを表示する / Show specific help file
2075+ * @param helpfile ファイル名
2076+ * @return なし
20722077 */
20732078 static void show_help(cptr helpfile)
20742079 {
@@ -2083,8 +2088,11 @@ static void show_help(cptr helpfile)
20832088 }
20842089
20852090
2086-/*
2087- * Choose from one of the available magical realms
2091+/*!
2092+ * @brief プレイヤーの魔法領域を選択する / Choose from one of the available magical realms
2093+ * @param choices 選択可能な魔法領域のビット配列
2094+ * @param count 選択可能な魔法領域を返すポインタ群。
2095+ * @return 選択した魔法領域のID
20882096 */
20892097 static byte choose_realm(s32b choices, int *count)
20902098 {
@@ -2345,8 +2353,9 @@ static byte choose_realm(s32b choices, int *count)
23452353 }
23462354
23472355
2348-/*
2349- * Choose the magical realms
2356+/*!
2357+ * @brief 選択した魔法領域の解説を表示する / Choose the magical realms
2358+ * @return ユーザが魔法領域の確定を選んだらTRUEを返す。
23502359 */
23512360 static bool get_player_realms(void)
23522361 {
@@ -2480,8 +2489,10 @@ else
24802489 }
24812490
24822491
2483-/*
2484- * Save the current data for later
2492+/*!
2493+ * @brief プレイヤーのクイックスタート情報をプレイヤー構造体から保存する / Save the current data for later
2494+ * @param birther_ptr クイックスタート構造体の参照ポインタ
2495+ * @return なし。
24852496 */
24862497 static void save_prev_data(birther *birther_ptr)
24872498 {
@@ -2529,8 +2540,10 @@ static void save_prev_data(birther *birther_ptr)
25292540 }
25302541
25312542
2532-/*
2533- * Load the previous data
2543+/*!
2544+ * @brief プレイヤーのクイックスタート情報をプレイヤー構造体へ読み込む / Load the previous data
2545+ * @param swap TRUEならば現在のプレイヤー構造体上との内容をスワップする形で読み込む。
2546+ * @return なし。
25342547 */
25352548 static void load_prev_data(bool swap)
25362549 {
@@ -2595,8 +2608,11 @@ static void load_prev_data(bool swap)
25952608
25962609
25972610
2598-/*
2599- * Returns adjusted stat -JK- Algorithm by -JWT-
2611+/*!
2612+ * @brief プレイヤーの能力値表現に基づいて加減算を行う。
2613+ * @param value 現在の能力値
2614+ * @param amount 加減算する値
2615+ * @return 加減算の結果
26002616 */
26012617 static int adjust_stat(int value, int amount)
26022618 {
Show on old repository browser