OSDN Git Service

Add Doxygen comments to functions for main routine of Wizard command in wizard2.c.
[hengband/hengband.git] / src / xtra1.c
index 0273824..1764239 100644 (file)
@@ -1,23 +1,22 @@
-
-/* File: misc.c */
-
-/*
- * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
- *
- * This software may be copied and distributed for educational, research,
- * and not for profit purposes provided that this copyright and statement
- * are included in all such copies.  Other copyrights may also apply.
+/*!
+ * @file xtra1.c
+ * @brief 雑多なその他の処理1 / misc code
+ * @date 2014/08/17
+ * @author
+ * Copyright (c) 1989 James E. Wilson, Robert A. Koeneke\n
+ * This software may be copied and distributed for educational, research, and\n
+ * not for profit purposes provided that this copyright and statement are\n
+ * included in all such copies.\n
+ * 2014 Deskull rearranged comment for Doxygen.
  */
 
-/* Purpose: misc code */
-
 #include "angband.h"
 
-
-
-
-/*
- * Converts stat num into a six-char (right justified) string
+/*!
+ * @brief 現在の修正後能力値を3~17及び18/xxx形式に変換する / Converts stat num into a six-char (right justified) string
+ * @param val 能力値
+ * @param out_val 出力先文字列ポインタ
+ * @return なし
  */
 void cnv_stat(int val, char *out_val)
 {
@@ -47,16 +46,19 @@ void cnv_stat(int val, char *out_val)
        }
 }
 
-
-
-/*
+/*!
+ * @brief 能力値現在値から3~17及び18/xxx様式に基づく加減算を行う。
  * Modify a stat value by a "modifier", return new value
- *
+ * @param value 現在値
+ * @param amount 加減算値
+ * @return 加減算後の値
+ * @details
+ * <pre>
  * Stats go up: 3,4,...,17,18,18/10,18/20,...,18/220
  * Or even: 18/13, 18/23, 18/33, ..., 18/220
- *
  * Stats go down: 18/220, 18/210,..., 18/10, 18, 17, ..., 3
  * Or even: 18/13, 18/03, 18, 17, ..., 3
+ * </pre>
  */
 s16b modify_stat_value(int value, int amount)
 {
@@ -99,8 +101,13 @@ s16b modify_stat_value(int value, int amount)
 
 
 
-/*
+/*!
+ * @brief 画面左の能力値表示を行うために指定位置から13キャラ分を空白消去後指定のメッセージを明るい青で描画する /
  * Print character info at given row, column in a 13 char field
+ * @param info 表示文字列
+ * @param row 描画列
+ * @param col 描画行
+ * @return なし
  */
 static void prt_field(cptr info, int row, int col)
 {
@@ -112,8 +119,10 @@ static void prt_field(cptr info, int row, int col)
 }
 
 
-/*
- *  Whether daytime or not
+/*!
+ * @brief ゲーム時間が日中かどうかを返す /
+ * Whether daytime or not
+ * @return 日中ならばTRUE、夜ならばFALSE
  */
 bool is_daytime(void)
 {
@@ -124,8 +133,12 @@ bool is_daytime(void)
                return FALSE;
 }
 
-/*
+/*!
+ * @brief 現在の日数、時刻を返す /
  * Extract day, hour, min
+ * @param day 日数を返すための参照ポインタ
+ * @param hour 時数を返すための参照ポインタ
+ * @param min 分数を返すための参照ポインタ
  */
 void extract_day_hour_min(int *day, int *hour, int *min)
 {
@@ -148,8 +161,10 @@ void extract_day_hour_min(int *day, int *hour, int *min)
        *min = (1440 * turn_in_today / A_DAY) % 60;
 }
 
-/*
+/*!
+ * @brief ゲーム時刻を表示する /
  * Print time
+ * @return なし
  */
 void prt_time(void)
 {
@@ -161,53 +176,36 @@ void prt_time(void)
        extract_day_hour_min(&day, &hour, &min);
 
        /* Dump the info itself */
-#ifdef JP
-       if (day < 1000) c_put_str(TERM_WHITE, format("%2d日目", day), ROW_DAY, COL_DAY);
-       else c_put_str(TERM_WHITE, "***日目", ROW_DAY, COL_DAY);
-#else
-       if (day < 1000) c_put_str(TERM_WHITE, format("Day%3d", day), ROW_DAY, COL_DAY);
-       else c_put_str(TERM_WHITE, "Day***", ROW_DAY, COL_DAY);
-#endif
+       if (day < 1000) c_put_str(TERM_WHITE, format(_("%2d日目", "Day%3d"), day), ROW_DAY, COL_DAY);
+       else c_put_str(TERM_WHITE, _("***日目", "Day***"), ROW_DAY, COL_DAY);
 
        c_put_str(TERM_WHITE, format("%2d:%02d", hour, min), ROW_DAY, COL_DAY+7);
 }
 
-
+/*!
+ * @brief 現在のマップ名を返す /
+ * @return マップ名の文字列参照ポインタ
+ */
 cptr map_name(void)
 {
        if (p_ptr->inside_quest && is_fixed_quest_idx(p_ptr->inside_quest)
            && (quest[p_ptr->inside_quest].flags & QUEST_FLAG_PRESET))
-#ifdef JP
-               return "クエスト";
-#else
-               return "Quest";
-#endif
+               return _("クエスト", "Quest");
        else if (p_ptr->wild_mode)
-#ifdef JP
-               return "地上";
-#else
-               return "Surface";
-#endif
+               return _("地上", "Surface");
        else if (p_ptr->inside_arena)
-#ifdef JP
-               return "アリーナ";
-#else
-               return "Arena";
-#endif
+               return _("アリーナ", "Arena");
        else if (p_ptr->inside_battle)
-#ifdef JP
-               return "闘技場";
-#else
-               return "Monster Arena";
-#endif
+               return _("闘技場", "Monster Arena");
        else if (!dun_level && p_ptr->town_num)
                return town[p_ptr->town_num].name;
        else
                return d_name+d_info[dungeon_type].name;
 }
 
-/*
- * Print dungeon
+/*!
+ * @brief 現在のマップ名を描画する / Print dungeon
+ * @return なし
  */
 static void prt_dungeon(void)
 {
@@ -228,10 +226,10 @@ static void prt_dungeon(void)
 }
 
 
-
-
-/*
- * Print character stat in given row, column
+/*!
+ * @brief プレイヤー能力値を描画する / Print character stat in given row, column
+ * @param stat 描画するステータスのID
+ * @return なし
  */
 static void prt_stat(int stat)
 {
@@ -268,75 +266,75 @@ static void prt_stat(int stat)
 
 
 /*
- *  Data structure for status bar
+ * 画面下部に表示する状態表示定義ID / Data structure for status bar
  */
-#define BAR_TSUYOSHI 0
-#define BAR_HALLUCINATION 1
-#define BAR_BLINDNESS 2
-#define BAR_PARALYZE 3
-#define BAR_CONFUSE 4
-#define BAR_POISONED 5
-#define BAR_AFRAID 6
-#define BAR_LEVITATE 7
-#define BAR_REFLECTION 8
-#define BAR_PASSWALL 9
-#define BAR_WRAITH 10
-#define BAR_PROTEVIL 11
-#define BAR_KAWARIMI 12
-#define BAR_MAGICDEFENSE 13
-#define BAR_EXPAND 14
-#define BAR_STONESKIN 15
-#define BAR_MULTISHADOW 16
-#define BAR_REGMAGIC 17
-#define BAR_ULTIMATE 18
-#define BAR_INVULN 19
-#define BAR_IMMACID 20
-#define BAR_RESACID 21
-#define BAR_IMMELEC 22
-#define BAR_RESELEC 23
-#define BAR_IMMFIRE 24
-#define BAR_RESFIRE 25
-#define BAR_IMMCOLD 26
-#define BAR_RESCOLD 27
-#define BAR_RESPOIS 28
-#define BAR_RESNETH 29
-#define BAR_RESTIME 30
-#define BAR_DUSTROBE 31
-#define BAR_SHFIRE 32
-#define BAR_TOUKI 33
-#define BAR_SHHOLY 34
-#define BAR_EYEEYE 35
-#define BAR_BLESSED 36
-#define BAR_HEROISM 37
-#define BAR_BERSERK 38
-#define BAR_ATTKFIRE 39
-#define BAR_ATTKCOLD 40
-#define BAR_ATTKELEC 41
-#define BAR_ATTKACID 42
-#define BAR_ATTKPOIS 43
-#define BAR_ATTKCONF 44
-#define BAR_SENSEUNSEEN 45
-#define BAR_TELEPATHY 46
-#define BAR_REGENERATION 47
-#define BAR_INFRAVISION 48
-#define BAR_STEALTH 49
-#define BAR_SUPERSTEALTH 50
-#define BAR_RECALL 51
-#define BAR_ALTER 52
-#define BAR_SHCOLD 53
-#define BAR_SHELEC 54
-#define BAR_SHSHADOW 55
-#define BAR_MIGHT 56
-#define BAR_BUILD 57
-#define BAR_ANTIMULTI 58
-#define BAR_ANTITELE 59
-#define BAR_ANTIMAGIC 60
-#define BAR_PATIENCE 61
-#define BAR_REVENGE 62
-#define BAR_RUNESWORD 63
-#define BAR_VAMPILIC 64
-#define BAR_CURE 65
-#define BAR_ESP_EVIL 66
+#define BAR_TSUYOSHI 0      /*!< 下部ステータス表示: オクレ兄さん状態 */
+#define BAR_HALLUCINATION 1 /*!< 下部ステータス表示: 幻覚 */
+#define BAR_BLINDNESS 2     /*!< 下部ステータス表示: 盲目 */
+#define BAR_PARALYZE 3      /*!< 下部ステータス表示: 麻痺 */
+#define BAR_CONFUSE 4       /*!< 下部ステータス表示: 混乱 */
+#define BAR_POISONED 5      /*!< 下部ステータス表示: 毒 */
+#define BAR_AFRAID 6        /*!< 下部ステータス表示: 恐怖 */
+#define BAR_LEVITATE 7      /*!< 下部ステータス表示: 浮遊 */
+#define BAR_REFLECTION 8    /*!< 下部ステータス表示: 反射 */
+#define BAR_PASSWALL 9      /*!< 下部ステータス表示: 壁抜け */
+#define BAR_WRAITH 10       /*!< 下部ステータス表示: 幽体化 */
+#define BAR_PROTEVIL 11     /*!< 下部ステータス表示: 対邪悪結界 */
+#define BAR_KAWARIMI 12     /*!< 下部ステータス表示: 変わり身 */
+#define BAR_MAGICDEFENSE 13 /*!< 下部ステータス表示: 魔法の鎧 */
+#define BAR_EXPAND 14       /*!< 下部ステータス表示: 横伸び */
+#define BAR_STONESKIN 15    /*!< 下部ステータス表示: 石肌化 */
+#define BAR_MULTISHADOW 16  /*!< 下部ステータス表示: 影分身 */
+#define BAR_REGMAGIC 17     /*!< 下部ステータス表示: 魔法防御 */
+#define BAR_ULTIMATE 18     /*!< 下部ステータス表示: 究極の耐性 */
+#define BAR_INVULN 19       /*!< 下部ステータス表示: 無敵化 */
+#define BAR_IMMACID 20      /*!< 下部ステータス表示: 酸免疫 */
+#define BAR_RESACID 21      /*!< 下部ステータス表示: 酸耐性 */
+#define BAR_IMMELEC 22      /*!< 下部ステータス表示: 電撃免疫 */
+#define BAR_RESELEC 23      /*!< 下部ステータス表示: 電撃耐性 */
+#define BAR_IMMFIRE 24      /*!< 下部ステータス表示: 火炎免疫 */
+#define BAR_RESFIRE 25      /*!< 下部ステータス表示: 火炎耐性 */
+#define BAR_IMMCOLD 26      /*!< 下部ステータス表示: 冷気免疫 */
+#define BAR_RESCOLD 27      /*!< 下部ステータス表示: 冷気耐性 */
+#define BAR_RESPOIS 28      /*!< 下部ステータス表示: 毒耐性 */
+#define BAR_RESNETH 29      /*!< 下部ステータス表示: 地獄耐性 */
+#define BAR_RESTIME 30      /*!< 下部ステータス表示: 時間逆転耐性 */
+#define BAR_DUSTROBE 31     /*!< 下部ステータス表示: 破片オーラ */
+#define BAR_SHFIRE 32       /*!< 下部ステータス表示: 火炎オーラ */
+#define BAR_TOUKI 33        /*!< 下部ステータス表示: 闘気 */
+#define BAR_SHHOLY 34       /*!< 下部ステータス表示: 聖なるオーラ */
+#define BAR_EYEEYE 35       /*!< 下部ステータス表示: 目には目を */
+#define BAR_BLESSED 36      /*!< 下部ステータス表示: 祝福 */
+#define BAR_HEROISM 37      /*!< 下部ステータス表示: 士気高揚 */
+#define BAR_BERSERK 38      /*!< 下部ステータス表示: 狂戦士化 */
+#define BAR_ATTKFIRE 39     /*!< 下部ステータス表示: 焼棄スレイ */
+#define BAR_ATTKCOLD 40     /*!< 下部ステータス表示: 冷凍スレイ */
+#define BAR_ATTKELEC 41     /*!< 下部ステータス表示: 電撃スレイ */
+#define BAR_ATTKACID 42     /*!< 下部ステータス表示: 溶解スレイ */
+#define BAR_ATTKPOIS 43     /*!< 下部ステータス表示: 毒殺スレイ */
+#define BAR_ATTKCONF 44     /*!< 下部ステータス表示: 混乱打撃 */
+#define BAR_SENSEUNSEEN 45  /*!< 下部ステータス表示: 透明視 */
+#define BAR_TELEPATHY 46    /*!< 下部ステータス表示: テレパシー */
+#define BAR_REGENERATION 47 /*!< 下部ステータス表示: 急回復 */
+#define BAR_INFRAVISION 48  /*!< 下部ステータス表示: 赤外線視力 */
+#define BAR_STEALTH 49      /*!< 下部ステータス表示: 隠密 */
+#define BAR_SUPERSTEALTH 50 /*!< 下部ステータス表示: 超隠密 */
+#define BAR_RECALL 51       /*!< 下部ステータス表示: 帰還待ち */
+#define BAR_ALTER 52        /*!< 下部ステータス表示: 現実変容待ち */
+#define BAR_SHCOLD 53       /*!< 下部ステータス表示: 冷気オーラ */
+#define BAR_SHELEC 54       /*!< 下部ステータス表示: 電撃オーラ */
+#define BAR_SHSHADOW 55     /*!< 下部ステータス表示: 影のオーラ */
+#define BAR_MIGHT 56        /*!< 下部ステータス表示: 腕力強化 */
+#define BAR_BUILD 57        /*!< 下部ステータス表示: 肉体強化 */
+#define BAR_ANTIMULTI 58    /*!< 下部ステータス表示: 反増殖 */
+#define BAR_ANTITELE 59     /*!< 下部ステータス表示: 反テレポート */
+#define BAR_ANTIMAGIC 60    /*!< 下部ステータス表示: 反魔法 */
+#define BAR_PATIENCE 61     /*!< 下部ステータス表示: 我慢 */
+#define BAR_REVENGE 62      /*!< 下部ステータス表示: 宣告 */
+#define BAR_RUNESWORD 63    /*!< 下部ステータス表示: 魔剣化 */
+#define BAR_VAMPILIC 64     /*!< 下部ステータス表示: 吸血 */
+#define BAR_CURE 65         /*!< 下部ステータス表示: 回復 */
+#define BAR_ESP_EVIL 66     /*!< 下部ステータス表示: 邪悪感知 */
 
 static struct {
        byte attr;
@@ -489,12 +487,24 @@ static struct {
 };
 #endif
 
+/*!
+ * @brief 32ビット変数配列の指定位置のビットフラグを1にする。
+ * @param FLG フラグ位置(ビット)
+ * @return なし
+ */
 #define ADD_FLG(FLG) (bar_flags[FLG / 32] |= (1L << (FLG % 32)))
+
+/*!
+ * @brief 32ビット変数配列の指定位置のビットフラグが1かどうかを返す。
+ * @param FLG フラグ位置(ビット)
+ * @return 1ならば0以外を返す
+ */
 #define IS_FLG(FLG) (bar_flags[FLG / 32] & (1L << (FLG % 32)))
 
 
-/*
- *  Show status bar
+/*!
+ * @brief 下部に状態表示を行う / Show status bar
+ * @return なし
  */
 static void prt_status(void)
 {
@@ -725,9 +735,9 @@ static void prt_status(void)
 }
 
 
-
-/*
- * Prints "title", including "wizard" or "winner" as needed.
+/*!
+ * @brief プレイヤーの称号を表示する / Prints "title", including "wizard" or "winner" as needed.
+ * @return なし
  */
 static void prt_title(void)
 {
@@ -780,19 +790,15 @@ static void prt_title(void)
 }
 
 
-/*
- * Prints level
+/*!
+ * @brief プレイヤーのレベルを表示する / Prints level
+ * @return なし
  */
 static void prt_level(void)
 {
        char tmp[32];
 
-#ifdef JP
-       sprintf(tmp, "%5d", p_ptr->lev);
-#else
-       sprintf(tmp, "%6d", p_ptr->lev);
-#endif
-
+       sprintf(tmp, _("%5d", "%6d"), p_ptr->lev);
 
        if (p_ptr->lev >= p_ptr->max_plv)
        {
@@ -819,8 +825,9 @@ static void prt_level(void)
 }
 
 
-/*
- * Display the experience
+/*!
+ * @brief プレイヤーの経験値を表示する / Display the experience
+ * @return なし
  */
 static void prt_exp(void)
 {
@@ -828,11 +835,7 @@ static void prt_exp(void)
 
        if ((!exp_need)||(p_ptr->prace == RACE_ANDROID))
        {
-#ifdef JP
-       (void)sprintf(out_val, "%7ld", (long)p_ptr->exp);
-#else
-       (void)sprintf(out_val, "%8ld", (long)p_ptr->exp);
-#endif
+               (void)sprintf(out_val, _("%7ld", "%8ld"), (long)p_ptr->exp);
        }
        else
        {
@@ -876,27 +879,22 @@ static void prt_exp(void)
        }
 }
 
-/*
- * Prints current gold
+/*!
+ * @brief プレイヤーの所持金を表示する / Prints current gold
+ * @return なし
  */
 static void prt_gold(void)
 {
        char tmp[32];
-
-#ifdef JP
-       put_str("$ ", ROW_GOLD, COL_GOLD);
-#else
-       put_str("AU ", ROW_GOLD, COL_GOLD);
-#endif
-
+       put_str(_("$ ", "AU "), ROW_GOLD, COL_GOLD);
        sprintf(tmp, "%9ld", (long)p_ptr->au);
        c_put_str(TERM_L_GREEN, tmp, ROW_GOLD, COL_GOLD + 3);
 }
 
 
-
-/*
- * Prints current AC
+/*!
+ * @brief プレイヤーのACを表示する / Prints current AC
+ * @return なし
  */
 static void prt_ac(void)
 {
@@ -916,8 +914,9 @@ static void prt_ac(void)
 }
 
 
-/*
- * Prints Cur/Max hit points
+/*!
+ * @brief プレイヤーのHPを表示する / Prints Cur/Max hit points
+ * @return なし
  */
 static void prt_hp(void)
 {
@@ -960,8 +959,9 @@ static void prt_hp(void)
 }
 
 
-/*
- * Prints players max/cur spell points
+/*!
+ * @brief プレイヤーのMPを表示する / Prints players max/cur spell points
+ * @return なし
  */
 static void prt_sp(void)
 {
@@ -975,12 +975,7 @@ static void prt_sp(void)
 
        /* タイトル */
 /*     put_str(" MP / 最大", ROW_MAXSP, COL_MAXSP); */
-
-#ifdef JP
-       put_str("MP", ROW_CURSP, COL_CURSP);
-#else
-       put_str("SP", ROW_CURSP, COL_CURSP);
-#endif
+       put_str(_("MP", "SP"), ROW_CURSP, COL_CURSP);
 
        /* 現在のマジックポイント */
        sprintf(tmp, "%4ld", (long int)p_ptr->csp);
@@ -1011,8 +1006,9 @@ static void prt_sp(void)
 }
 
 
-/*
- * Prints depth in stat area
+/*!
+ * @brief 現在のフロアの深さを表示する / Prints depth in stat area
+ * @return なし
  */
 static void prt_depth(void)
 {
@@ -1026,30 +1022,16 @@ static void prt_depth(void)
 
        if (!dun_level)
        {
-#ifdef JP
-               strcpy(depths, "地上");
-#else
-               strcpy(depths, "Surf.");
-#endif
+               strcpy(depths, _("地上", "Surf."));
        }
        else if (p_ptr->inside_quest && !dungeon_type)
        {
-#ifdef JP
-               strcpy(depths, "地上");
-#else
-               strcpy(depths, "Quest");
-#endif
+               strcpy(depths, _("地上", "Quest"));
        }
        else
        {
-#ifdef JP
-               if (depth_in_feet) (void)sprintf(depths, "%d ft", dun_level * 50);
-               else (void)sprintf(depths, "%d 階", dun_level);
-#else
-               if (depth_in_feet) (void)sprintf(depths, "%d ft", dun_level * 50);
-               else (void)sprintf(depths, "Lev %d", dun_level);
-#endif
-
+               if (depth_in_feet) (void)sprintf(depths, _("%d ft", "%d ft"), dun_level * 50);
+               else (void)sprintf(depths, _("%d 階", "Lev %d"), dun_level);
 
                /* Get color of level based on feeling  -JSV- */
                switch (p_ptr->feeling)
@@ -1073,8 +1055,9 @@ static void prt_depth(void)
 }
 
 
-/*
- * Prints status of hunger
+/*!
+ * @brief プレイヤーの空腹状態を表示する / Prints status of hunger
+ * @return なし
  */
 static void prt_hunger(void)
 {
@@ -1083,34 +1066,19 @@ static void prt_hunger(void)
        /* Fainting / Starving */
        if (p_ptr->food < PY_FOOD_FAINT)
        {
-#ifdef JP
-               c_put_str(TERM_RED, "衰弱  ", ROW_HUNGRY, COL_HUNGRY);
-#else
-               c_put_str(TERM_RED, "Weak  ", ROW_HUNGRY, COL_HUNGRY);
-#endif
-
+               c_put_str(TERM_RED, _("衰弱  ", "Weak  "), ROW_HUNGRY, COL_HUNGRY);
        }
 
        /* Weak */
        else if (p_ptr->food < PY_FOOD_WEAK)
        {
-#ifdef JP
-               c_put_str(TERM_ORANGE, "衰弱  ", ROW_HUNGRY, COL_HUNGRY);
-#else
-               c_put_str(TERM_ORANGE, "Weak  ", ROW_HUNGRY, COL_HUNGRY);
-#endif
-
+               c_put_str(TERM_ORANGE, _("衰弱  ", "Weak  "), ROW_HUNGRY, COL_HUNGRY);
        }
 
        /* Hungry */
        else if (p_ptr->food < PY_FOOD_ALERT)
        {
-#ifdef JP
-               c_put_str(TERM_YELLOW, "空腹  ", ROW_HUNGRY, COL_HUNGRY);
-#else
-               c_put_str(TERM_YELLOW, "Hungry", ROW_HUNGRY, COL_HUNGRY);
-#endif
-
+               c_put_str(TERM_YELLOW, _("空腹  ", "Hungry"), ROW_HUNGRY, COL_HUNGRY);
        }
 
        /* Normal */
@@ -1122,31 +1090,22 @@ static void prt_hunger(void)
        /* Full */
        else if (p_ptr->food < PY_FOOD_MAX)
        {
-#ifdef JP
-               c_put_str(TERM_L_GREEN, "満腹  ", ROW_HUNGRY, COL_HUNGRY);
-#else
-               c_put_str(TERM_L_GREEN, "Full  ", ROW_HUNGRY, COL_HUNGRY);
-#endif
-
+               c_put_str(TERM_L_GREEN, _("満腹  ", "Full  "), ROW_HUNGRY, COL_HUNGRY);
        }
 
        /* Gorged */
        else
        {
-#ifdef JP
-               c_put_str(TERM_GREEN, "食過ぎ", ROW_HUNGRY, COL_HUNGRY);
-#else
-               c_put_str(TERM_GREEN, "Gorged", ROW_HUNGRY, COL_HUNGRY);
-#endif
-
+               c_put_str(TERM_GREEN, _("食過ぎ", "Gorged"), ROW_HUNGRY, COL_HUNGRY);
        }
 }
 
 
-/*
- * Prints Searching, Resting, Paralysis, or 'count' status
+/*!
+ * @brief プレイヤーの行動状態を表示する / Prints Searching, Resting, Paralysis, or 'count' status
+ * @return なし
+ * @details
  * Display is always exactly 10 characters wide (see below)
- *
  * This function was a major bottleneck when resting, so a lot of
  * the text formatting code was optimized in place below.
  */
@@ -1161,21 +1120,11 @@ static void prt_state(void)
        {
                if (command_rep > 999)
                {
-#ifdef JP
-sprintf(text, "%2d00", command_rep / 100);
-#else
                        (void)sprintf(text, "%2d00", command_rep / 100);
-#endif
-
                }
                else
                {
-#ifdef JP
-sprintf(text, "  %2d", command_rep);
-#else
                        (void)sprintf(text, "  %2d", command_rep);
-#endif
-
                }
        }
 
@@ -1186,11 +1135,7 @@ sprintf(text, "  %2d", command_rep);
                {
                        case ACTION_SEARCH:
                        {
-#ifdef JP
-                               strcpy(text, "探索");
-#else
-                               strcpy(text, "Sear");
-#endif
+                               strcpy(text, _("探索", "Sear"));
                                break;
                        }
                        case ACTION_REST:
@@ -1198,12 +1143,7 @@ sprintf(text, "  %2d", command_rep);
                                int i;
 
                                /* Start with "Rest" */
-#ifdef JP
-                               strcpy(text, "    ");
-#else
-                               strcpy(text, "    ");
-#endif
-
+                               strcpy(text, _("    ", "    "));
 
                                /* Extensive (timed) rest */
                                if (resting >= 1000)
@@ -1255,21 +1195,13 @@ sprintf(text, "  %2d", command_rep);
                        }
                        case ACTION_LEARN:
                        {
-#ifdef JP
-                               strcpy(text, "学習");
-#else
-                               strcpy(text, "lear");
-#endif
+                               strcpy(text, _("学習", "lear"));
                                if (new_mane) attr = TERM_L_RED;
                                break;
                        }
                        case ACTION_FISH:
                        {
-#ifdef JP
-                               strcpy(text, "釣り");
-#else
-                               strcpy(text, "fish");
-#endif
+                               strcpy(text, _("釣り", "fish"));
                                break;
                        }
                        case ACTION_KAMAE:
@@ -1297,29 +1229,17 @@ sprintf(text, "  %2d", command_rep);
                        }
                        case ACTION_SING:
                        {
-#ifdef JP
-                               strcpy(text, "歌  ");
-#else
-                               strcpy(text, "Sing");
-#endif
+                               strcpy(text, _("歌  ", "Sing"));
                                break;
                        }
                        case ACTION_HAYAGAKE:
                        {
-#ifdef JP
-                               strcpy(text, "速駆");
-#else
-                               strcpy(text, "Fast");
-#endif
+                               strcpy(text, _("速駆", "Fast"));
                                break;
                        }
                        case ACTION_SPELL:
                        {
-#ifdef JP
-                               strcpy(text, "詠唱");
-#else
-                               strcpy(text, "Spel");
-#endif
+                               strcpy(text, _("詠唱", "Spel"));
                                break;
                        }
                        default:
@@ -1335,8 +1255,9 @@ sprintf(text, "  %2d", command_rep);
 }
 
 
-/*
- * Prints the speed of a character.                    -CJS-
+/*!
+ * @brief プレイヤーの行動速度を表示する / Prints the speed of a character.                     -CJS-
+ * @return なし
  */
 static void prt_speed(void)
 {
@@ -1397,11 +1318,7 @@ static void prt_speed(void)
        else if (p_ptr->riding)
        {
                attr = TERM_GREEN;
-#ifdef JP
-               strcpy(buf, "乗馬中");
-#else
-               strcpy(buf, "Riding");
-#endif
+               strcpy(buf, _("乗馬中", "Riding"));
        }
 
        /* Display the speed */
@@ -1409,6 +1326,10 @@ static void prt_speed(void)
 }
 
 
+/*!
+ * @brief プレイヤーの呪文学習可能状態を表示する
+ * @return なし
+ */
 static void prt_study(void)
 {
        int wid, hgt, row_study, col_study;
@@ -1419,12 +1340,7 @@ static void prt_study(void)
 
        if (p_ptr->new_spells)
        {
-#ifdef JP
-               put_str("学習", row_study, col_study);
-#else
-               put_str("Stud", row_study, col_study);
-#endif
-
+               put_str(_("学習", "Stud"), row_study, col_study);
        }
        else
        {
@@ -1433,6 +1349,10 @@ static void prt_study(void)
 }
 
 
+/*!
+ * @brief プレイヤーのものまね可能状態を表示する
+ * @return なし
+ */
 static void prt_imitation(void)
 {
        int wid, hgt, row_study, col_study;
@@ -1448,11 +1368,7 @@ static void prt_imitation(void)
                        byte attr;
                        if (new_mane) attr = TERM_L_RED;
                        else attr = TERM_WHITE;
-#ifdef JP
-                       c_put_str(attr, "まね", row_study, col_study);
-#else
-                       c_put_str(attr, "Imit", row_study, col_study);
-#endif
+                       c_put_str(attr, _("まね", "Imit"), row_study, col_study);
                }
                else
                {
@@ -1461,73 +1377,41 @@ static void prt_imitation(void)
        }
 }
 
-
+/*!
+ * @brief プレイヤーの負傷状態を表示する
+ * @return なし
+ */
 static void prt_cut(void)
 {
        int c = p_ptr->cut;
 
        if (c > 1000)
        {
-#ifdef JP
-               c_put_str(TERM_L_RED, "致命傷      ", ROW_CUT, COL_CUT);
-#else
-               c_put_str(TERM_L_RED, "Mortal wound", ROW_CUT, COL_CUT);
-#endif
-
+               c_put_str(TERM_L_RED, _("致命傷      ", "Mortal wound"), ROW_CUT, COL_CUT);
        }
        else if (c > 200)
        {
-#ifdef JP
-               c_put_str(TERM_RED, "ひどい深手  ", ROW_CUT, COL_CUT);
-#else
-               c_put_str(TERM_RED, "Deep gash   ", ROW_CUT, COL_CUT);
-#endif
-
+               c_put_str(TERM_RED, _("ひどい深手  ", "Deep gash   "), ROW_CUT, COL_CUT);
        }
        else if (c > 100)
        {
-#ifdef JP
-               c_put_str(TERM_RED, "重傷        ", ROW_CUT, COL_CUT);
-#else
-               c_put_str(TERM_RED, "Severe cut  ", ROW_CUT, COL_CUT);
-#endif
-
+               c_put_str(TERM_RED, _("重傷        ", "Severe cut  "), ROW_CUT, COL_CUT);
        }
        else if (c > 50)
        {
-#ifdef JP
-               c_put_str(TERM_ORANGE, "大変な傷    ", ROW_CUT, COL_CUT);
-#else
-               c_put_str(TERM_ORANGE, "Nasty cut   ", ROW_CUT, COL_CUT);
-#endif
-
+               c_put_str(TERM_ORANGE, _("大変な傷    ", "Nasty cut   "), ROW_CUT, COL_CUT);
        }
        else if (c > 25)
        {
-#ifdef JP
-               c_put_str(TERM_ORANGE, "ひどい傷    ", ROW_CUT, COL_CUT);
-#else
-               c_put_str(TERM_ORANGE, "Bad cut     ", ROW_CUT, COL_CUT);
-#endif
-
+               c_put_str(TERM_ORANGE, _("ひどい傷    ", "Bad cut     "), ROW_CUT, COL_CUT);
        }
        else if (c > 10)
        {
-#ifdef JP
-               c_put_str(TERM_YELLOW, "軽傷        ", ROW_CUT, COL_CUT);
-#else
-               c_put_str(TERM_YELLOW, "Light cut   ", ROW_CUT, COL_CUT);
-#endif
-
+               c_put_str(TERM_YELLOW, _("軽傷        ", "Light cut   "), ROW_CUT, COL_CUT);
        }
        else if (c)
        {
-#ifdef JP
-               c_put_str(TERM_YELLOW, "かすり傷    ", ROW_CUT, COL_CUT);
-#else
-               c_put_str(TERM_YELLOW, "Graze       ", ROW_CUT, COL_CUT);
-#endif
-
+               c_put_str(TERM_YELLOW, _("かすり傷    ", "Graze       "), ROW_CUT, COL_CUT);
        }
        else
        {
@@ -1536,37 +1420,25 @@ static void prt_cut(void)
 }
 
 
-
+/*!
+ * @brief プレイヤーの朦朧状態を表示する
+ * @return なし
+ */
 static void prt_stun(void)
 {
        int s = p_ptr->stun;
 
        if (s > 100)
        {
-#ifdef JP
-               c_put_str(TERM_RED, "意識不明瞭  ", ROW_STUN, COL_STUN);
-#else
-               c_put_str(TERM_RED, "Knocked out ", ROW_STUN, COL_STUN);
-#endif
-
+               c_put_str(TERM_RED, _("意識不明瞭  ", "Knocked out "), ROW_STUN, COL_STUN);
        }
        else if (s > 50)
        {
-#ifdef JP
-               c_put_str(TERM_ORANGE, "ひどく朦朧  ", ROW_STUN, COL_STUN);
-#else
-               c_put_str(TERM_ORANGE, "Heavy stun  ", ROW_STUN, COL_STUN);
-#endif
-
+               c_put_str(TERM_ORANGE, _("ひどく朦朧  ", "Heavy stun  "), ROW_STUN, COL_STUN);
        }
        else if (s)
        {
-#ifdef JP
-               c_put_str(TERM_ORANGE, "朦朧        ", ROW_STUN, COL_STUN);
-#else
-               c_put_str(TERM_ORANGE, "Stun        ", ROW_STUN, COL_STUN);
-#endif
-
+               c_put_str(TERM_ORANGE, _("朦朧        ", "Stun        "), ROW_STUN, COL_STUN);
        }
        else
        {
@@ -1576,7 +1448,12 @@ static void prt_stun(void)
 
 
 
-/*
+/*!
+ * @brief モンスターの体力ゲージを表示する
+ * @param riding TRUEならば騎乗中のモンスターの体力、FALSEならターゲットモンスターの体力を表示する。表示位置は固定。
+ * @return なし
+ * @details
+ * <pre>
  * Redraw the "monster health bar"     -DRS-
  * Rather extensive modifications by   -BEN-
  *
@@ -1589,6 +1466,7 @@ static void prt_stun(void)
  * "health-o-meter").  Clear health bar if nothing is being tracked.
  * Auto-track current target monster when bored.  Note that the
  * health-bar stops tracking any monster that "disappears".
+ * </pre>
  */
 static void health_redraw(bool riding)
 {
@@ -1725,8 +1603,9 @@ static void health_redraw(bool riding)
 
 
 
-/*
- * Display basic info (mostly left of map)
+/*!
+ * @brief プレイヤーのステータスを一括表示する(左側部分) / Display basic info (mostly left of map)
+ * @return なし
  */
 static void prt_frame_basic(void)
 {
@@ -1776,8 +1655,9 @@ static void prt_frame_basic(void)
 }
 
 
-/*
- * Display extra info (mostly below map)
+/*!
+ * @brief プレイヤーのステータスを一括表示する(下部分) / Display extra info (mostly below map)
+ * @return なし
  */
 static void prt_frame_extra(void)
 {
@@ -1803,8 +1683,9 @@ static void prt_frame_extra(void)
 }
 
 
-/*
- * Hack -- display inventory in sub-windows
+/*!
+ * @brief サブウィンドウに所持品一覧を表示する / Hack -- display inventory in sub-windows
+ * @return なし
  */
 static void fix_inven(void)
 {
@@ -1836,13 +1717,21 @@ static void fix_inven(void)
 }
 
 
-/*
- * Print monster info in line
+/*!
+ * @brief モンスターの現在数を一行で表現する / Print monster info in line
+ * @param x 表示列
+ * @param y 表示行
+ * @param m_ptr 思い出を表示するモンスター情報の参照ポインタ
+ * @param n_same モンスターの数の現在数
+ * @details
+ * <pre>
  * nnn X LV name
  *  nnn : number or unique(U) or wanted unique(W)
  *  X   : symbol of monster
  *  LV  : monster lv if known
  *  name: name of monster
+ * @return なし
+ * </pre>
  */
 static void print_monster_line(int x, int y, monster_type* m_ptr, int n_same){
        char buf[256];
@@ -1885,9 +1774,12 @@ static void print_monster_line(int x, int y, monster_type* m_ptr, int n_same){
        //Term_addstr(-1, TERM_WHITE, look_mon_desc(m_ptr, 0));
 }
 
- /*
-       max_lines : 最大何行描画するか.
-*/
+/*!
+ * @brief モンスターの出現リストを表示する / Print monster info in line
+ * @param x 表示列
+ * @param y 表示行
+ * @param max_lines 最大何行描画するか
+ */
 void print_monster_list(int x, int y, int max_lines){
        int line = y;
        monster_type* last_mons = NULL;
@@ -1945,8 +1837,10 @@ void print_monster_list(int x, int y, int max_lines){
                if(last_mons)print_monster_line(x, line++, last_mons, n_same);
        }
 }
-/*
- * Hack -- display monster list in sub-windows
+
+/*!
+ * @brief 出現中モンスターのリストをサブウィンドウに表示する / Hack -- display monster list in sub-windows
+ * @return なし
  */
 static void fix_monster_list(void)
 {
@@ -1983,9 +1877,10 @@ static void fix_monster_list(void)
 
 
 
-
-/*
+/*!
+ * @brief 現在の装備品をサブウィンドウに表示する / 
  * Hack -- display equipment in sub-windows
+ * @return なし
  */
 static void fix_equip(void)
 {
@@ -2017,8 +1912,10 @@ static void fix_equip(void)
 }
 
 
-/*
- * Hack -- display equipment in sub-windows
+/*!
+ * @brief 現在の習得済魔法をサブウィンドウに表示する / 
+ * Hack -- display spells in sub-windows
+ * @return なし
  */
 static void fix_spell(void)
 {
@@ -2050,8 +1947,10 @@ static void fix_spell(void)
 }
 
 
-/*
+/*!
+ * @brief 現在のプレイヤーステータスをサブウィンドウに表示する / 
  * Hack -- display character in sub-windows
+ * @return なし
  */
 static void fix_player(void)
 {
@@ -2084,12 +1983,11 @@ static void fix_player(void)
        }
 }
 
-
-
-/*
+/*!
+ * @brief ゲームメッセージ履歴をサブウィンドウに表示する / 
  * Hack -- display recent messages in sub-windows
- *
  * XXX XXX XXX Adjust for width and split messages
+ * @return なし
  */
 static void fix_message(void)
 {
@@ -2136,9 +2034,12 @@ static void fix_message(void)
 }
 
 
-/*
+/*!
+ * @brief 簡易マップをサブウィンドウに表示する / 
  * Hack -- display overhead view in sub-windows
- *
+ * XXX XXX XXX Adjust for width and split messages
+ * @return なし
+ * @details
  * Note that the "player" symbol does NOT appear on the map.
  */
 static void fix_overhead(void)
@@ -2179,8 +2080,10 @@ static void fix_overhead(void)
 }
 
 
-/*
+/*!
+ * @brief ダンジョンの地形をサブウィンドウに表示する / 
  * Hack -- display dungeon view in sub-windows
+ * @return なし
  */
 static void fix_dungeon(void)
 {
@@ -2212,8 +2115,10 @@ static void fix_dungeon(void)
 }
 
 
-/*
- * Hack -- display monster recall in sub-windows
+/*!
+ * @brief モンスターの思い出をサブウィンドウに表示する / 
+ * Hack -- display dungeon view in sub-windows
+ * @return なし
  */
 static void fix_monster(void)
 {
@@ -2245,8 +2150,10 @@ static void fix_monster(void)
 }
 
 
-/*
+/*!
+ * @brief ベースアイテム情報をサブウィンドウに表示する / 
  * Hack -- display object recall in sub-windows
+ * @return なし
  */
 static void fix_object(void)
 {
@@ -2278,10 +2185,13 @@ static void fix_object(void)
 }
 
 
-/*
+
+/*!
+ * @brief プレイヤーの現在学習可能な魔法数を計算し、増減に応じて魔法の忘却、再学習を処置する。 /
  * Calculate number of spells player should have, and forget,
  * or remember, spells until that number is properly reflected.
- *
+ * @return なし
+ * @details
  * Note that this function induces various "status" messages,
  * which must be bypasses until the character is created.
  */
@@ -2630,11 +2540,12 @@ static void calc_spells(void)
        }
 }
 
-
-/*
+/*!
+ * @brief プレイヤーの最大MPを計算する /
  * Calculate maximum mana.  You do not need to know any spells.
  * Note that mana is lowered by heavy (or inappropriate) armor.
- *
+ * @return なし
+ * @details
  * This function induces status messages.
  */
 static void calc_mana(void)
@@ -2917,21 +2828,11 @@ static void calc_mana(void)
                /* Message */
                if (p_ptr->cumber_glove)
                {
-#ifdef JP
-                       msg_print("手が覆われて呪文が唱えにくい感じがする。");
-#else
-                       msg_print("Your covered hands feel unsuitable for spellcasting.");
-#endif
-
+                       msg_print(_("手が覆われて呪文が唱えにくい感じがする。", "Your covered hands feel unsuitable for spellcasting."));
                }
                else
                {
-#ifdef JP
-                       msg_print("この手の状態なら、ぐっと呪文が唱えやすい感じだ。");
-#else
-                       msg_print("Your hands feel more suitable for spellcasting.");
-#endif
-
+                       msg_print(_("この手の状態なら、ぐっと呪文が唱えやすい感じだ。", "Your hands feel more suitable for spellcasting."));
                }
 
                /* Save it */
@@ -2945,21 +2846,11 @@ static void calc_mana(void)
                /* Message */
                if (p_ptr->cumber_armor)
                {
-#ifdef JP
-                       msg_print("装備の重さで動きが鈍くなってしまっている。");
-#else
-                       msg_print("The weight of your equipment encumbers your movement.");
-#endif
-
+                       msg_print(_("装備の重さで動きが鈍くなってしまっている。", "The weight of your equipment encumbers your movement."));
                }
                else
                {
-#ifdef JP
-                       msg_print("ぐっと楽に体を動かせるようになった。");
-#else
-                       msg_print("You feel able to move more freely.");
-#endif
-
+                       msg_print(_("ぐっと楽に体を動かせるようになった。", "You feel able to move more freely."));
                }
 
                /* Save it */
@@ -2969,9 +2860,12 @@ static void calc_mana(void)
 
 
 
-/*
+/*!
+ * @brief プレイヤーの最大HPを計算する /
  * Calculate the players (maximal) hit points
  * Adjust current hitpoints if necessary
+ * @return なし
+ * @details
  */
 static void calc_hitpoints(void)
 {
@@ -3050,13 +2944,11 @@ static void calc_hitpoints(void)
        }
 }
 
-
-
-/*
- * Extract and set the current "lite radius"
- *
+/*!
+ * @brief プレイヤーの光源半径を計算する / Extract and set the current "lite radius"
+ * @return なし
+ * @details
  * SWD: Experimental modification: multiple light sources have additive effect.
- *
  */
 static void calc_torch(void)
 {
@@ -3133,9 +3025,10 @@ static void calc_torch(void)
 }
 
 
-
-/*
+/*!
+ * @brief プレイヤーの所持重量制限を計算する /
  * Computes current weight limit.
+ * @return 制限重量(ポンド)
  */
 u32b weight_limit(void)
 {
@@ -3149,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]];
@@ -3162,6 +3064,11 @@ bool is_heavy_shoot(object_type *o_ptr)
        return (hold < o_ptr->weight / 10);
 }
 
+/*!
+ * @brief 射撃武器に対応する矢/弾薬のベースアイテムIDを返す /
+ * @param o_ptr 判定する射撃武器のアイテム情報参照ポインタ
+ * @return 対応する矢/弾薬のベースアイテムID
+ */
 int bow_tval_ammo(object_type *o_ptr)
 {
        /* Analyze the launcher */
@@ -3193,7 +3100,12 @@ int bow_tval_ammo(object_type *o_ptr)
        return 0;
 }
 
-/* calcurate the fire rate of target object */
+/*!
+ * @brief 装備中の射撃武器の威力倍率を返す /
+ * calcurate the fire rate of target object
+ * @param o_ptr 計算する射撃武器のアイテム情報参照ポインタ
+ * @return 射撃倍率の値(100で1.00倍)
+ */
 s16b calc_num_fire(object_type *o_ptr)
 {
        int extra_shots = 0;
@@ -3270,11 +3182,14 @@ s16b calc_num_fire(object_type *o_ptr)
        return num;
 }
 
-/*
+/*!
+ * @brief プレイヤーの全ステータスを更新する / 
  * Calculate the players current "state", taking into account
  * not only race/class intrinsics, but also objects being worn
  * and temporary spell effects.
- *
+ * @return なし
+ * @details
+ * <pre>
  * See also calc_mana() and calc_hitpoints().
  *
  * Take note of the new "speed code", in particular, a very strong
@@ -3289,6 +3204,7 @@ s16b calc_num_fire(object_type *o_ptr)
  * are actually added in later, at the appropriate place.
  *
  * This function induces various "status" messages.
+ * </pre>
  */
 void calc_bonuses(void)
 {
@@ -5708,30 +5624,15 @@ void calc_bonuses(void)
                /* Message */
                if (p_ptr->heavy_shoot)
                {
-#ifdef JP
-                       msg_print("こんな重い弓を装備しているのは大変だ。");
-#else
-                       msg_print("You have trouble wielding such a heavy bow.");
-#endif
-
+                       msg_print(_("こんな重い弓を装備しているのは大変だ。", "You have trouble wielding such a heavy bow."));
                }
                else if (inventory[INVEN_BOW].k_idx)
                {
-#ifdef JP
-                       msg_print("この弓なら装備していても辛くない。");
-#else
-                       msg_print("You have no trouble wielding your bow.");
-#endif
-
+                       msg_print(_("この弓なら装備していても辛くない。", "You have no trouble wielding your bow."));
                }
                else
                {
-#ifdef JP
-                       msg_print("重い弓を装備からはずして体が楽になった。");
-#else
-                       msg_print("You feel relieved to put down your heavy bow.");
-#endif
-
+                       msg_print(_("重い弓を装備からはずして体が楽になった。", "You feel relieved to put down your heavy bow."));
                }
 
                /* Save it */
@@ -5746,39 +5647,19 @@ void calc_bonuses(void)
                        /* Message */
                        if (p_ptr->heavy_wield[i])
                        {
-#ifdef JP
-                               msg_print("こんな重い武器を装備しているのは大変だ。");
-#else
-                               msg_print("You have trouble wielding such a heavy weapon.");
-#endif
-
+                               msg_print(_("こんな重い武器を装備しているのは大変だ。", "You have trouble wielding such a heavy weapon."));
                        }
                        else if (buki_motteruka(INVEN_RARM+i))
                        {
-#ifdef JP
-                               msg_print("これなら装備していても辛くない。");
-#else
-                               msg_print("You have no trouble wielding your weapon.");
-#endif
-
+                               msg_print(_("これなら装備していても辛くない。", "You have no trouble wielding your weapon."));
                        }
                        else if (p_ptr->heavy_wield[1-i])
                        {
-#ifdef JP
-                               msg_print("まだ武器が重い。");
-#else
-                               msg_print("You have still trouble wielding a heavy weapon.");
-#endif
-
+                               msg_print(_("まだ武器が重い。", "You have still trouble wielding a heavy weapon."));
                        }
                        else
                        {
-#ifdef JP
-                               msg_print("重い武器を装備からはずして体が楽になった。");
-#else
-                               msg_print("You feel relieved to put down your heavy weapon.");
-#endif
-
+                               msg_print(_("重い武器を装備からはずして体が楽になった。", "You feel relieved to put down your heavy weapon."));
                        }
 
                        /* Save it */
@@ -5791,30 +5672,15 @@ void calc_bonuses(void)
                        /* Message */
                        if (p_ptr->riding_wield[i])
                        {
-#ifdef JP
-                               msg_print("この武器は乗馬中に使うにはむかないようだ。");
-#else
-                               msg_print("This weapon is not suitable for use while riding.");
-#endif
-
+                               msg_print(_("この武器は乗馬中に使うにはむかないようだ。", "This weapon is not suitable for use while riding."));
                        }
                        else if (!p_ptr->riding)
                        {
-#ifdef JP
-                               msg_print("この武器は徒歩で使いやすい。");
-#else
-                               msg_print("This weapon was not suitable for use while riding.");
-#endif
-
+                               msg_print(_("この武器は徒歩で使いやすい。", "This weapon was not suitable for use while riding."));
                        }
                        else if (buki_motteruka(INVEN_RARM+i))
                        {
-#ifdef JP
-                               msg_print("これなら乗馬中にぴったりだ。");
-#else
-                               msg_print("This weapon is suitable for use while riding.");
-#endif
-
+                               msg_print(_("これなら乗馬中にぴったりだ。", "This weapon is suitable for use while riding."));
                        }
                        /* Save it */
                        p_ptr->old_riding_wield[i] = p_ptr->riding_wield[i];
@@ -5826,11 +5692,7 @@ void calc_bonuses(void)
                        /* Message */
                        if (p_ptr->icky_wield[i])
                        {
-#ifdef JP
-                               msg_print("今の装備はどうも自分にふさわしくない気がする。");
-#else
-                               msg_print("You do not feel comfortable with your weapon.");
-#endif
+                               msg_print(_("今の装備はどうも自分にふさわしくない気がする。", "You do not feel comfortable with your weapon."));
                                if (hack_mind)
                                {
                                        chg_virtue(V_FAITH, -1);
@@ -5838,21 +5700,11 @@ void calc_bonuses(void)
                        }
                        else if (buki_motteruka(INVEN_RARM+i))
                        {
-#ifdef JP
-                               msg_print("今の装備は自分にふさわしい気がする。");
-#else
-                               msg_print("You feel comfortable with your weapon.");
-#endif
-
+                               msg_print(_("今の装備は自分にふさわしい気がする。", "You feel comfortable with your weapon."));
                        }
                        else
                        {
-#ifdef JP
-                               msg_print("装備をはずしたら随分と気が楽になった。");
-#else
-                               msg_print("You feel more comfortable after removing your weapon.");
-#endif
-
+                               msg_print(_("装備をはずしたら随分と気が楽になった。", "You feel more comfortable after removing your weapon."));
                        }
 
                        /* Save it */
@@ -5887,24 +5739,17 @@ void calc_bonuses(void)
        {
                if (heavy_armor())
                {
-#ifdef JP
-msg_print("装備が重くてバランスを取れない。");
-#else
-                       msg_print("The weight of your armor disrupts your balance.");
-#endif
-
+                       msg_print(_("装備が重くてバランスを取れない。", "The weight of your armor disrupts your balance."));
                        if (hack_mind)
                        {
                                chg_virtue(V_HARMONY, -1);
                        }
                }
                else
-#ifdef JP
-msg_print("バランスがとれるようになった。");
-#else
-                       msg_print("You regain your balance.");
-#endif
-
+               {
+                       msg_print(_("バランスがとれるようになった。", "You regain your balance."));
+               }
+               
                monk_notify_aux = monk_armour_aux;
        }
 
@@ -5964,8 +5809,10 @@ msg_print("バランスがとれるようになった。");
 
 
 
-/*
- * Handle "p_ptr->notice"
+/*! 
+ * @brief p_ptr->notice のフラグに応じた更新をまとめて行う / Handle "p_ptr->notice"
+ * @return なし
+ * @details 更新処理の対象はアイテムの自動破壊/アイテムの結合/アイテムの並び替え。
  */
 void notice_stuff(void)
 {
@@ -5996,8 +5843,10 @@ void notice_stuff(void)
 }
 
 
-/*
- * Handle "p_ptr->update"
+/*! 
+ * @brief p_ptr->update のフラグに応じた更新をまとめて行う / Handle "p_ptr->update"
+ * @return なし
+ * @details 更新処理の対象はプレイヤーの能力修正/光源寿命/HP/MP/魔法の学習状態、他多数の外界の状態判定。
  */
 void update_stuff(void)
 {
@@ -6109,8 +5958,10 @@ void update_stuff(void)
 }
 
 
-/*
- * Handle "p_ptr->redraw"
+/*! 
+ * @brief p_ptr->redraw のフラグに応じた更新をまとめて行う / Handle "p_ptr->redraw"
+ * @return なし
+ * @details 更新処理の対象はゲーム中の全描画処理
  */
 void redraw_stuff(void)
 {
@@ -6302,8 +6153,10 @@ void redraw_stuff(void)
 }
 
 
-/*
- * Handle "p_ptr->window"
+/*! 
+ * @brief p_ptr->window のフラグに応じた更新をまとめて行う / Handle "p_ptr->window"
+ * @return なし
+ * @details 更新処理の対象はサブウィンドウ全般
  */
 void window_stuff(void)
 {
@@ -6401,8 +6254,10 @@ void window_stuff(void)
 }
 
 
-/*
+/*!
+ * @brief 全更新処理をチェックして処理していく
  * Handle "p_ptr->update" and "p_ptr->redraw" and "p_ptr->window"
+ * @return なし
  */
 void handle_stuff(void)
 {
@@ -6416,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;
@@ -6434,6 +6293,10 @@ s16b empty_hands(bool riding_control)
 }
 
 
+/*!
+ * @brief プレイヤーが防具重量制限のある職業時にペナルティを受ける状態にあるかどうかを返す。
+ * @return ペナルティが適用されるならばTRUE。
+ */
 bool heavy_armor(void)
 {
        u16b monk_arm_wgt = 0;
@@ -6452,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 */