-#include "angband.h"
+/*!
+ * @file hex.c
+ * @brief ¼ö½Ñ¤Î½èÍý¼ÂÁõ / Hex code
+ * @date 2014/01/14
+ * @author
+ * 2014 Deskull rearranged comment for Doxygen.\n
+ * @details
+ * p_ptr-magic_num1\n
+ * 0: Flag bits of spelling spells\n
+ * 1: Flag bits of despelled spells\n
+ * 2: Revange damage\n
+ * p_ptr->magic_num2\n
+ * 0: Number of spelling spells\n
+ * 1: Type of revenge\n
+ * 2: Turn count for revenge\n
+ */
-/* Flag list */
-/*
-p_ptr-magic_num1
-0: Flag bits of spelling spells
-1: Flag bits of despelled spells
-2: Revange damage
-p_ptr->magic_num2
-0: Number of spelling spells
-1: Type of revenge
-2: Turn count for revenge
-*/
+#include "angband.h"
-#define MAX_KEEP 4
+#define MAX_KEEP 4 /*!<¼ö½Ñ¤ÎºÇÂç±Ó¾§¿ô */
+/*!
+ * @brief ¥×¥ì¥¤¥ä¡¼¤¬±Ó¾§Ãæ¤ÎÁ´¼ö½Ñ¤òÄä»ß¤¹¤ë
+ * @return ¤Ê¤·
+ */
bool stop_hex_spell_all(void)
{
int i;
return TRUE;
}
-
+/*!
+ * @brief ¥×¥ì¥¤¥ä¡¼¤¬±Ó¾§Ãæ¤Î¼ö½Ñ¤«¤é°ì¤Ä¤òÁª¤ó¤ÇÄä»ß¤¹¤ë
+ * @return ¤Ê¤·
+ */
bool stop_hex_spell(void)
{
int spell;
}
-/* Upkeeping hex spells
- Called from dungeon.c */
+/*!
+ * @brief °ìÄê»þ´ÖËè¤Ë¼ö½Ñ¤Ç¾ÃÈñ¤¹¤ëMP¤ò½èÍý¤¹¤ë /
+ * Upkeeping hex spells Called from dungeon.c
+ * @return ¤Ê¤·
+ */
void check_hex(void)
{
- const magic_type *s_ptr;
int spell;
s32b need_mana;
u32b need_mana_frac;
{
if (hex_spelling(spell))
{
+ const magic_type *s_ptr;
s_ptr = &technic_info[REALM_HEX - MIN_TECHNIC][spell];
need_mana += mod_need_mana(s_ptr->smana, spell, REALM_HEX);
}
/* Gain experiences of spelling spells */
for (spell = 0; spell < 32; spell++)
{
+ const magic_type *s_ptr;
+
if (!hex_spelling(spell)) continue;
+ s_ptr = &technic_info[REALM_HEX - MIN_TECHNIC][spell];
+
if (p_ptr->spell_exp[spell] < SPELL_EXP_BEGINNER)
p_ptr->spell_exp[spell] += 5;
else if(p_ptr->spell_exp[spell] < SPELL_EXP_SKILLED)
}
}
-
+/*!
+ * @brief ¥×¥ì¥¤¥ä¡¼¤Î¼ö½Ñ±Ó¾§ÏȤ¬¤¹¤Ç¤ËºÇÂ礫¤É¤¦¤«¤òÊÖ¤¹
+ * @return ¤¹¤Ç¤ËÁ´ÏȤòÍøÍѤ·¤Æ¤¤¤ë¤Ê¤éTRUE¤òÊÖ¤¹
+ */
bool hex_spell_fully(void)
{
int k_max = 0;
return TRUE;
}
-void revenge_spell()
+/*!
+ * @brief °ìÄꥲ¡¼¥à¥¿¡¼¥óËè¤ËÉü½²½èÍý¤Î»Ä¤ê´ü´Ö¤ÎȽÄê¤ò¹Ô¤¦
+ * @return ¤Ê¤·
+ */
+void revenge_spell(void)
{
if (p_ptr->realm1 != REALM_HEX) return;
if (p_ptr->magic_num2[2] <= 0) return;
}
}
+/*!
+ * @brief Éü½²¥À¥á¡¼¥¸¤ÎÄɲäò¹Ô¤¦
+ * @param dam ÃßÀѤµ¤ì¤ë¥À¥á¡¼¥¸ÎÌ
+ * @return ¤Ê¤·
+ */
void revenge_store(int dam)
{
if (p_ptr->realm1 != REALM_HEX) return;
p_ptr->magic_num1[2] += dam;
}
-
+/*!
+ * @brief È¿¥Æ¥ì¥Ý¡¼¥È·ë³¦¤ÎȽÄê
+ * @param m_idx ȽÄê¤ÎÂоݤȤʤë¥â¥ó¥¹¥¿¡¼ID
+ * @return È¿¥Æ¥ì¥Ý¡¼¥È¤Î¸ú²Ì¤¬Å¬ÍѤµ¤ì¤ë¤Ê¤éTRUE¤òÊÖ¤¹
+ */
bool teleport_barrier(int m_idx)
{
monster_type *m_ptr = &m_list[m_idx];
return TRUE;
}
-
+/*!
+ * @brief È¿ËâË¡·ë³¦¤ÎȽÄê
+ * @param m_idx ȽÄê¤ÎÂоݤȤʤë¥â¥ó¥¹¥¿¡¼ID
+ * @return È¿ËâË¡¤Î¸ú²Ì¤¬Å¬ÍѤµ¤ì¤ë¤Ê¤éTRUE¤òÊÖ¤¹
+ */
bool magic_barrier(int m_idx)
{
monster_type *m_ptr = &m_list[m_idx];
return TRUE;
}
-
+/*!
+ * @brief È¿Áý¿£·ë³¦¤ÎȽÄê
+ * @param m_idx ȽÄê¤ÎÂоݤȤʤë¥â¥ó¥¹¥¿¡¼ID
+ * @return È¿Áý¿£¤Î¸ú²Ì¤¬Å¬ÍѤµ¤ì¤ë¤Ê¤éTRUE¤òÊÖ¤¹
+ */
bool multiply_barrier(int m_idx)
{
monster_type *m_ptr = &m_list[m_idx];