-/* File: mind.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 mind.c
+ * @brief ³Æ¿¦¶È¤ÎÆü쵻ǽ¼ÂÁõ / Blue magic
+ * @date 2014/01/15
+ * @author
+ * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke\n
+ * This software may be copied and distributed for educational, research,\n
+ * and not for profit purposes provided that this copyright and statement\n
+ * are included in all such copies. Other copyrights may also apply.\n
+ * 2005 henkma \n
+ * 2014 Deskull rearranged comment for Doxygen.\n
+ * @details
+ * mind.c¤È¤¢¤ë¤¬¼ÂºÝ¤Ë¤ÏĶǽÎϼԡ¢Îýµ¤½Ñ»Õ¡¢¶¸Àï»Î¡¢¶À»È¤¤¡¢Ç¦¼Ô¤Þ¤Ç¤Î
+ * Æü쵻ǽ¤ò·¤¨¤Æ¼ÂÁõ¤·¤Æ¤¤¤ë¡£
*/
-/* Purpose: Mindcrafter code */
+
#include "angband.h"
#include "mindtips.h"
-
+/*! Æü쵻ǽ¤Î°ìÍ÷¥Æ¡¼¥Ö¥ë */
mind_power mind_powers[5] =
{
{
},
};
-
+/*!
+ * @brief Æü쵻ǽ¤Î¸ú²Ì¾ðÊó¤ò¤Þ¤È¤á¤¿¥Õ¥©¡¼¥Þ¥Ã¥È¤òÊÖ¤¹
+ * @param p ¾ðÊó¤òÊÖ¤¹Ê¸»úÎ󻲾ȥݥ¤¥ó¥¿
+ * @param use_mind ¿¦¶ÈËè¤ÎÆü쵻ǽID
+ * @param power ¥â¥ó¥¹¥¿¡¼ËâË¡¤ÎID
+ * @return ¤Ê¤·
+ */
void mindcraft_info(char *p, int use_mind, int power)
{
#ifdef JP
}
}
- /*
+/*!
+ * @brief »ÈÍѲÄǽ¤ÊÆü쵻ǽ¤òÁªÂò¤¹¤ë /
* Allow user to choose a mindcrafter power.
- *
- * If a valid spell is chosen, saves it in '*sn' and returns TRUE
- * If the user hits escape, returns FALSE, and set '*sn' to -1
- * If there are no legal choices, returns FALSE, and sets '*sn' to -2
- *
- * The "prompt" should be "cast", "recite", or "study"
- * The "known" should be TRUE for cast/pray, FALSE for study
- *
- * nb: This function has a (trivial) display bug which will be obvious
- * when you run it. It's probably easy to fix but I haven't tried,
- * sorry.
+ * @param sn ÁªÂò¤·¤¿Æü쵻ǽID¡¢¥¥ã¥ó¥»¥ë¤Î¾ì¹ç-1¡¢ÉÔÀµ¤ÊÁªÂò¤Î¾ì¹ç-2¤òÊÖ¤¹
+ * @param only_browse °ìÍ÷¤ò¸«¤ë¤À¤±¤Î¾ì¹çTRUE¤òÊÖ¤¹
+ * @return ȯư²Äǽ¤ÊËâË¡¤òÁªÂò¤·¤¿¾ì¹çTRUE¡¢¥¥ã¥ó¥»¥ë½èÍý¤«ÉÔÀµ¤ÊÁªÂò¤¬¹Ô¤ï¤ì¤¿¾ì¹çFALSE¤òÊÖ¤¹¡£
+ * @details
+ * If a valid spell is chosen, saves it in '*sn' and returns TRUE\n
+ * If the user hits escape, returns FALSE, and set '*sn' to -1\n
+ * If there are no legal choices, returns FALSE, and sets '*sn' to -2\n
+ *\n
+ * The "prompt" should be "cast", "recite", or "study"\n
+ * The "known" should be TRUE for cast/pray, FALSE for study\n
+ *\n
+ * nb: This function has a (trivial) display bug which will be obvious\n
+ * when you run it. It's probably easy to fix but I haven't tried,\n
+ * sorry.\n
*/
static int get_mind_power(int *sn, bool only_browse)
{
return (TRUE);
}
-
-/*
- * do_cmd_cast calls this function if the player's class
- * is 'mindcrafter'.
+/*!
+ * @brief ĶǽÎϤÎȯư /
+ * do_cmd_cast calls this function if the player's class is 'mindcrafter'.
+ * @param spell ȯư¤¹¤ëÆü쵻ǽ¤ÎID
+ * @return ½èÍý¤ò¼Â¹Ô¤·¤¿¤éTRUE¡¢¥¥ã¥ó¥»¥ë¤·¤¿¾ì¹çFALSE¤òÊÖ¤¹¡£
*/
static bool cast_mindcrafter_spell(int spell)
{
return TRUE;
}
-
-/*
- * do_cmd_cast calls this function if the player's class
- * is 'ForceTrainer'.
+/*!
+ * @brief Îýµ¤½Ñ¤Îȯư /
+ * do_cmd_cast calls this function if the player's class is 'ForceTrainer'.
+ * @param spell ȯư¤¹¤ëÆü쵻ǽ¤ÎID
+ * @return ½èÍý¤ò¼Â¹Ô¤·¤¿¤éTRUE¡¢¥¥ã¥ó¥»¥ë¤·¤¿¾ì¹çFALSE¤òÊÖ¤¹¡£
*/
static bool cast_force_spell(int spell)
{
return TRUE;
}
-/* by henkma */
-/* calculate mirrors */
+
+/*!
+ * @brief ¸½ºß¥Õ¥í¥¢¤Ë¸ºß¤·¤Æ¤¤¤ë¶À¤Î¿ô¤ò¿ô¤¨¤ë / calculate mirrors
+ * @return ¶À¤ÎËç¿ô
+ */
static int number_of_mirrors( void )
{
int x,y;
return val;
}
+/*!
+ * @brief ¶ÀËâË¡¤Îȯư /
+ * do_cmd_cast calls this function if the player's class is 'Mirror magic'.
+ * @param spell ȯư¤¹¤ëÆü쵻ǽ¤ÎID
+ * @return ½èÍý¤ò¼Â¹Ô¤·¤¿¤éTRUE¡¢¥¥ã¥ó¥»¥ë¤·¤¿¾ì¹çFALSE¤òÊÖ¤¹¡£
+ */
static bool cast_mirror_spell(int spell)
{
int dir;
return TRUE;
}
-
-/*
- * do_cmd_cast calls this function if the player's class
- * is 'berserker'.
+/*!
+ * @brief Åܤê¤Îȯư /
+ * do_cmd_cast calls this function if the player's class is 'berserker'.
+ * @param spell ȯư¤¹¤ëÆü쵻ǽ¤ÎID
+ * @return ½èÍý¤ò¼Â¹Ô¤·¤¿¤éTRUE¡¢¥¥ã¥ó¥»¥ë¤·¤¿¾ì¹çFALSE¤òÊÖ¤¹¡£
*/
static bool cast_berserk_spell(int spell)
{
return TRUE;
}
-
-
-/*
- * do_cmd_cast calls this function if the player's class
- * is 'ninja'.
+/*!
+ * @brief Ǧ½Ñ¤Îȯư /
+ * do_cmd_cast calls this function if the player's class is 'ninja'.
+ * @param spell ȯư¤¹¤ëÆü쵻ǽ¤ÎID
+ * @return ½èÍý¤ò¼Â¹Ô¤·¤¿¤éTRUE¡¢¥¥ã¥ó¥»¥ë¤·¤¿¾ì¹çFALSE¤òÊÖ¤¹¡£
*/
static bool cast_ninja_spell(int spell)
{
return TRUE;
}
-
-
-/*
- * do_cmd_cast calls this function if the player's class
- * is 'mindcrafter'.
+/*!
+ * @brief Æü쵻ǽ¥³¥Þ¥ó¥É¤Î¥á¥¤¥ó¥ë¡¼¥Á¥ó /
+ * @return ¤Ê¤·
*/
void do_cmd_mind(void)
{
}
-/*
- * do_cmd_cast calls this function if the player's class
- * is 'mindcrafter'.
+/*!
+ * @brief ¸½ºß¥×¥ì¥¤¥ä¡¼¤¬»ÈÍѲÄǽ¤ÊÆü쵻ǽ¤Î°ìÍ÷ɽ¼¨ /
+ * @return ¤Ê¤·
*/
void do_cmd_mind_browse(void)
{