OSDN Git Service

#37287 #37353 (2.2.0.89) FEAT_POWER 型を定義し、型の置換を継続中。 / Define FEAT_POWER, ongoing...
[hengband/hengband.git] / src / hex.c
index e5a1223..27e9102 100644 (file)
--- a/src/hex.c
+++ b/src/hex.c
@@ -1,6 +1,6 @@
-/*!
+/*!
  * @file hex.c
- * @brief ¼ö½Ñ¤Î½èÍý¼ÂÁõ / Hex code
+ * @brief 呪術の処理実装 / Hex code
  * @date 2014/01/14
  * @author
  * 2014 Deskull rearranged comment for Doxygen.\n
 
 #include "angband.h"
 
-#define MAX_KEEP 4 /*!<¼ö½Ñ¤ÎºÇÂç±Ó¾§¿ô */
+#define MAX_KEEP 4 /*!<呪術の最大詠唱数 */
 
 /*!
- * @brief ¥×¥ì¥¤¥ä¡¼¤¬±Ó¾§Ãæ¤ÎÁ´¼ö½Ñ¤òÄä»ß¤¹¤ë
- * @return ¤Ê¤·
+ * @brief プレイヤーが詠唱中の全呪術を停止する
+ * @return なし
  */
 bool stop_hex_spell_all(void)
 {
@@ -47,8 +47,8 @@ bool stop_hex_spell_all(void)
 }
 
 /*!
- * @brief ¥×¥ì¥¤¥ä¡¼¤¬±Ó¾§Ãæ¤Î¼ö½Ñ¤«¤é°ì¤Ä¤òÁª¤ó¤ÇÄä»ß¤¹¤ë
- * @return ¤Ê¤·
+ * @brief プレイヤーが詠唱中の呪術から一つを選んで停止する
+ * @return なし
  */
 bool stop_hex_spell(void)
 {
@@ -63,7 +63,7 @@ bool stop_hex_spell(void)
        if (!hex_spelling_any())
        {
 #ifdef JP
-               msg_print("¼öʸ¤ò±Ó¾§¤·¤Æ¤¤¤Þ¤»¤ó¡£");
+               msg_print("呪文を詠唱していません。");
 #else
                msg_print("You are casting no spell.");
 #endif
@@ -78,7 +78,7 @@ bool stop_hex_spell(void)
        else
        {
 #ifdef JP
-               strnfmt(out_val, 78, "¤É¤Î¼öʸ¤Î±Ó¾§¤òÃæÃǤ·¤Þ¤¹¤«¡©(¼öʸ %c-%c, 'l'Á´¤Æ, ESC)",
+               strnfmt(out_val, 78, "どの呪文の詠唱を中断しますか?(呪文 %c-%c, 'l'全て, ESC)",
                        I2A(0), I2A(p_ptr->magic_num2[0] - 1));
 #else
                strnfmt(out_val, 78, "Which spell do you stop casting? (Spell %c-%c, 'l' to all, ESC)",
@@ -91,7 +91,7 @@ bool stop_hex_spell(void)
                {
                        int n = 0;
                        Term_erase(x, y, 255);
-                       prt("     Ì¾Á°", y, x + 5);
+                       prt("     名前", y, x + 5);
                        for (spell = 0; spell < 32; spell++)
                        {
                                if (hex_spelling(spell))
@@ -103,7 +103,7 @@ bool stop_hex_spell(void)
                        }
 
                        if (!get_com(out_val, &choice, TRUE)) break;
-                       if (isupper(choice)) choice = tolower(choice);
+                       if (isupper(choice)) choice = (char)tolower(choice);
 
                        if (choice == 'l')      /* All */
                        {
@@ -135,9 +135,9 @@ bool stop_hex_spell(void)
 
 
 /*!
- * @brief °ìÄê»þ´ÖËè¤Ë¼ö½Ñ¤Ç¾ÃÈñ¤¹¤ëMP¤ò½èÍý¤¹¤ë /
+ * @brief 一定時間毎に呪術で消費するMPを処理する /
  * Upkeeping hex spells Called from dungeon.c
- * @return ¤Ê¤·
+ * @return なし
  */
 void check_hex(void)
 {
@@ -198,7 +198,7 @@ void check_hex(void)
                if (res)
                {
 #ifdef JP
-                       msg_print("±Ó¾§¤òºÆ³«¤·¤¿¡£");
+                       msg_print("詠唱を再開した。");
 #else
                        msg_print("You restart spelling.");
 #endif
@@ -248,8 +248,8 @@ void check_hex(void)
 }
 
 /*!
- * @brief ¥×¥ì¥¤¥ä¡¼¤Î¼ö½Ñ±Ó¾§ÏȤ¬¤¹¤Ç¤ËºÇÂ礫¤É¤¦¤«¤òÊÖ¤¹
- * @return ¤¹¤Ç¤ËÁ´ÏȤòÍøÍѤ·¤Æ¤¤¤ë¤Ê¤éTRUE¤òÊÖ¤¹
+ * @brief プレイヤーの呪術詠唱枠がすでに最大かどうかを返す
+ * @return すでに全枠を利用しているならTRUEを返す
  */
 bool hex_spell_fully(void)
 {
@@ -266,8 +266,8 @@ bool hex_spell_fully(void)
 }
 
 /*!
- * @brief °ìÄꥲ¡¼¥à¥¿¡¼¥óËè¤ËÉü½²½èÍý¤Î»Ä¤ê´ü´Ö¤ÎȽÄê¤ò¹Ô¤¦
- * @return ¤Ê¤·
+ * @brief 一定ゲームターン毎に復讐処理の残り期間の判定を行う
+ * @return なし
  */
 void revenge_spell(void)
 {
@@ -282,9 +282,9 @@ void revenge_spell(void)
 }
 
 /*!
- * @brief Éü½²¥À¥á¡¼¥¸¤ÎÄɲäò¹Ô¤¦
- * @param ÃßÀѤµ¤ì¤ë¥À¥á¡¼¥¸ÎÌ
- * @return ¤Ê¤·
+ * @brief 復讐ダメージの追加を行う
+ * @param dam 蓄積されるダメージ量
+ * @return なし
  */
 void revenge_store(int dam)
 {
@@ -295,11 +295,11 @@ void revenge_store(int dam)
 }
 
 /*!
- * @brief È¿¥Æ¥ì¥Ý¡¼¥È·ë³¦¤ÎȽÄê
- * @param m_idx È½Äê¤ÎÂоݤȤʤë¥â¥ó¥¹¥¿¡¼ID
- * @return È¿¥Æ¥ì¥Ý¡¼¥È¤Î¸ú²Ì¤¬Å¬ÍѤµ¤ì¤ë¤Ê¤éTRUE¤òÊÖ¤¹
+ * @brief 反テレポート結界の判定
+ * @param m_idx å\88¤å®\9aã\81®å¯¾è±¡ã\81¨ã\81ªã\82\8bã\83¢ã\83³ã\82¹ã\82¿ã\83¼ID
+ * @return 反テレポートの効果が適用されるならTRUEを返す
  */
-bool teleport_barrier(int m_idx)
+bool teleport_barrier(MONSTER_IDX m_idx)
 {
        monster_type *m_ptr = &m_list[m_idx];
        monster_race *r_ptr = &r_info[m_ptr->r_idx];
@@ -311,11 +311,11 @@ bool teleport_barrier(int m_idx)
 }
 
 /*!
- * @brief È¿ËâË¡·ë³¦¤ÎȽÄê
- * @param m_idx È½Äê¤ÎÂоݤȤʤë¥â¥ó¥¹¥¿¡¼ID
- * @return È¿ËâË¡¤Î¸ú²Ì¤¬Å¬ÍѤµ¤ì¤ë¤Ê¤éTRUE¤òÊÖ¤¹
+ * @brief 反魔法結界の判定
+ * @param m_idx å\88¤å®\9aã\81®å¯¾è±¡ã\81¨ã\81ªã\82\8bã\83¢ã\83³ã\82¹ã\82¿ã\83¼ID
+ * @return 反魔法の効果が適用されるならTRUEを返す
  */
-bool magic_barrier(int m_idx)
+bool magic_barrier(MONSTER_IDX m_idx)
 {
        monster_type *m_ptr = &m_list[m_idx];
        monster_race *r_ptr = &r_info[m_ptr->r_idx];
@@ -327,11 +327,11 @@ bool magic_barrier(int m_idx)
 }
 
 /*!
- * @brief È¿Áý¿£·ë³¦¤ÎȽÄê
- * @param m_idx È½Äê¤ÎÂоݤȤʤë¥â¥ó¥¹¥¿¡¼ID
- * @return È¿Áý¿£¤Î¸ú²Ì¤¬Å¬ÍѤµ¤ì¤ë¤Ê¤éTRUE¤òÊÖ¤¹
+ * @brief 反増殖結界の判定
+ * @param m_idx å\88¤å®\9aã\81®å¯¾è±¡ã\81¨ã\81ªã\82\8bã\83¢ã\83³ã\82¹ã\82¿ã\83¼ID
+ * @return 反増殖の効果が適用されるならTRUEを返す
  */
-bool multiply_barrier(int m_idx)
+bool multiply_barrier(MONSTER_IDX m_idx)
 {
        monster_type *m_ptr = &m_list[m_idx];
        monster_race *r_ptr = &r_info[m_ptr->r_idx];