From cf15f39a937009e91afe3e77ec5adcd32f8f7014 Mon Sep 17 00:00:00 2001 From: deskull Date: Mon, 20 Jan 2014 13:56:01 +0000 Subject: [PATCH] Add Doxygen comment to cmd1.c. --- src/cmd1.c | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/src/cmd1.c b/src/cmd1.c index 1a0efb2a9..d9d820c94 100644 --- a/src/cmd1.c +++ b/src/cmd1.c @@ -1407,6 +1407,11 @@ static void touch_zap_player_aux(monster_type *m_ptr, bool immune, int flags_off } } +/*! + * @brief Ũ¥ª¡¼¥é¤Ë¤è¤ë¥×¥ì¥¤¥ä¡¼¤Î¥À¥á¡¼¥¸½èÍý¡Ê¥á¥¤¥ó¡Ë + * @param m_ptr ¥ª¡¼¥é¤ò»ý¤Ä¥â¥ó¥¹¥¿¡¼¤Î¹½Â¤Âλ²¾È¥Ý¥¤¥ó¥¿ + * @return ¤Ê¤· + */ static void touch_zap_player(monster_type *m_ptr) { touch_zap_player_aux(m_ptr, p_ptr->immune_fire, offsetof(monster_race, flags2), offsetof(monster_race, r_flags2), RF2_AURA_FIRE, @@ -1418,6 +1423,14 @@ static void touch_zap_player(monster_type *m_ptr) } +/*! + * @brief ¥×¥ì¥¤¥ä¡¼¤ÎÊÑ°ÛÍ×ÁǤˤè¤ëÂÇ·â½èÍý + * @param m_idx ¹¶·âÌÜɸ¤È¤Ê¤Ã¤¿¥â¥ó¥¹¥¿¡¼¤Î»²¾ÈID + * @param attack ÊÑ°ÛÍ×ÁǤˤè¤ë¹¶·âÍ×ÁǤμïÎà + * @param fear ¹¶·â¤ò¼õ¤±¤¿¥â¥ó¥¹¥¿¡¼¤¬¶²¹²¾õÂ֤˴٤俤«¤òÊÖ¤¹»²¾È¥Ý¥¤¥ó¥¿ + * @param mdeath ¹¶·â¤ò¼õ¤±¤¿¥â¥ó¥¹¥¿¡¼¤¬»àË´¤·¤¿¤«¤òÊÖ¤¹»²¾È¥Ý¥¤¥ó¥¿ + * @return ¤Ê¤· + */ static void natural_attack(s16b m_idx, int attack, bool *fear, bool *mdeath) { int k, bonus, chance; @@ -1587,10 +1600,17 @@ static void natural_attack(s16b m_idx, int attack, bool *fear, bool *mdeath) } - -/* +/*! + * @brief ¥×¥ì¥¤¥ä¡¼¤ÎÂÇ·â½èÍý¥µ¥Ö¥ë¡¼¥Á¥ó / * Player attacks a (poor, defenseless) creature -RAK- - * + * @param y ¹¶·âÌÜɸ¤ÎYºÂɸ + * @param x ¹¶·âÌÜɸ¤ÎXºÂɸ + * @param fear ¹¶·â¤ò¼õ¤±¤¿¥â¥ó¥¹¥¿¡¼¤¬¶²¹²¾õÂ֤˴٤俤«¤òÊÖ¤¹»²¾È¥Ý¥¤¥ó¥¿ + * @param mdeath ¹¶·â¤ò¼õ¤±¤¿¥â¥ó¥¹¥¿¡¼¤¬»àË´¤·¤¿¤«¤òÊÖ¤¹»²¾È¥Ý¥¤¥ó¥¿ + * @param hand ¹¶·â¤ò¹Ô¤¦¤¿¤á¤ÎÉð´ï¤ò»ý¤Ä¼ê + * @param mode ȯưÃæ¤Î·õ½ÑID + * @return ¤Ê¤· + * @details * If no "weapon" is available, then "punch" the monster one time. */ static void py_attack_aux(int y, int x, bool *fear, bool *mdeath, s16b hand, int mode) @@ -2683,6 +2703,15 @@ static void py_attack_aux(int y, int x, bool *fear, bool *mdeath, s16b hand, int } } +/*! + * @brief ¥×¥ì¥¤¥ä¡¼¤ÎÂÇ·â½èÍý¥á¥¤¥ó¥ë¡¼¥Á¥ó + * @param y ¹¶·âÌÜɸ¤ÎYºÂɸ + * @param x ¹¶·âÌÜɸ¤ÎXºÂɸ + * @param mode ȯưÃæ¤Î·õ½ÑID + * @return ¼ÂºÝ¤Ë¹¶·â½èÍý¤¬¹Ô¤ï¤ì¤¿¾ì¹çTRUE¤òÊÖ¤¹¡£ + * @details + * If no "weapon" is available, then "punch" the monster one time. + */ bool py_attack(int y, int x, int mode) { bool fear = FALSE; -- 2.11.0