変愚蛮怒のメインリポジトリです
Revision | 39df08379bbffb2da8bf514e2712728d1704be5f (tree) |
---|---|
Time | 2014-07-08 23:16:11 |
Author | Deskull <desull@user...> |
Commiter | Deskull |
Add Doxygen comments to monster2.c.
@@ -3705,6 +3705,12 @@ bool place_monster(int y, int x, u32b mode) | ||
3705 | 3705 | |
3706 | 3706 | #ifdef MONSTER_HORDES |
3707 | 3707 | |
3708 | +/*! | |
3709 | + * @brief 指定地点に1種類のモンスター種族による群れを生成する | |
3710 | + * @param y 生成地点y座標 | |
3711 | + * @param x 生成地点x座標 | |
3712 | + * @return 生成に成功したらtrue | |
3713 | + */ | |
3708 | 3714 | bool alloc_horde(int y, int x) |
3709 | 3715 | { |
3710 | 3716 | monster_race *r_ptr = NULL; |
@@ -3765,8 +3771,10 @@ bool alloc_horde(int y, int x) | ||
3765 | 3771 | #endif /* MONSTER_HORDES */ |
3766 | 3772 | |
3767 | 3773 | |
3768 | -/* | |
3769 | - * Put the Guardian | |
3774 | +/*! | |
3775 | + * @brief ダンジョンの主生成を試みる / Put the Guardian | |
3776 | + * @param def_val 現在の主の生成状態 | |
3777 | + * @return 生成に成功したらtrue | |
3770 | 3778 | */ |
3771 | 3779 | bool alloc_guardian(bool def_val) |
3772 | 3780 | { |
@@ -3803,13 +3811,14 @@ bool alloc_guardian(bool def_val) | ||
3803 | 3811 | } |
3804 | 3812 | |
3805 | 3813 | |
3806 | -/* | |
3807 | - * Attempt to allocate a random monster in the dungeon. | |
3808 | - * | |
3814 | +/*! | |
3815 | + * @brief ダンジョンの初期配置モンスターを生成1回生成する / Attempt to allocate a random monster in the dungeon. | |
3816 | + * @param dis プレイヤーから離れるべき最低距離 | |
3817 | + * @param mode 生成オプション | |
3818 | + * @return 生成に成功したらtrue | |
3819 | + * @details | |
3809 | 3820 | * Place the monster at least "dis" distance from the player. |
3810 | - * | |
3811 | 3821 | * Use "slp" to choose the initial "sleep" status |
3812 | - * | |
3813 | 3822 | * Use "monster_level" for the monster level |
3814 | 3823 | */ |
3815 | 3824 | bool alloc_monster(int dis, u32b mode) |
@@ -3877,10 +3886,10 @@ bool alloc_monster(int dis, u32b mode) | ||
3877 | 3886 | } |
3878 | 3887 | |
3879 | 3888 | |
3880 | - | |
3881 | - | |
3882 | -/* | |
3883 | - * Hack -- help decide if a monster race is "okay" to summon | |
3889 | +/*! | |
3890 | + * @brief モンスターが召喚の基本条件に合っているかをチェックする / Hack -- help decide if a monster race is "okay" to summon | |
3891 | + * @param r_idx チェックするモンスター種族ID | |
3892 | + * @return 召喚対象にできるならばTRUE | |
3884 | 3893 | */ |
3885 | 3894 | static bool summon_specific_okay(int r_idx) |
3886 | 3895 | { |
@@ -3925,9 +3934,16 @@ static bool summon_specific_okay(int r_idx) | ||
3925 | 3934 | } |
3926 | 3935 | |
3927 | 3936 | |
3928 | -/* | |
3929 | - * Place a monster (of the specified "type") near the given | |
3930 | - * location. Return TRUE if a monster was actually summoned. | |
3937 | +/*! | |
3938 | + * @brief モンスターを召喚により配置する / Place a monster (of the specified "type") near the given location. Return TRUE if a monster was actually summoned. | |
3939 | + * @param who 召喚主のモンスター情報ID | |
3940 | + * @param y1 目標地点y座標 | |
3941 | + * @param x1 目標地点x座標 | |
3942 | + * @param lev 相当生成階 | |
3943 | + * @param type 召喚種別 | |
3944 | + * @param mode 生成オプション | |
3945 | + * @return 召喚できたらtrueを返す | |
3946 | + * @details | |
3931 | 3947 | * |
3932 | 3948 | * We will attempt to place the monster up to 10 times before giving up. |
3933 | 3949 | * |
@@ -3992,7 +4008,16 @@ bool summon_specific(int who, int y1, int x1, int lev, int type, u32b mode) | ||
3992 | 4008 | return (TRUE); |
3993 | 4009 | } |
3994 | 4010 | |
3995 | -/* A "dangerous" function, creates a pet of the specified type */ | |
4011 | + | |
4012 | +/*! | |
4013 | + * @brief 特定モンスター種族を召喚により生成する / A "dangerous" function, creates a pet of the specified type | |
4014 | + * @param who 召喚主のモンスター情報ID | |
4015 | + * @param oy 目標地点y座標 | |
4016 | + * @param ox 目標地点x座標 | |
4017 | + * @param r_idx 生成するモンスター種族ID | |
4018 | + * @param mode 生成オプション | |
4019 | + * @return 召喚できたらtrueを返す | |
4020 | + */ | |
3996 | 4021 | bool summon_named_creature (int who, int oy, int ox, int r_idx, u32b mode) |
3997 | 4022 | { |
3998 | 4023 | int x, y; |
@@ -4012,9 +4037,13 @@ bool summon_named_creature (int who, int oy, int ox, int r_idx, u32b mode) | ||
4012 | 4037 | } |
4013 | 4038 | |
4014 | 4039 | |
4015 | -/* | |
4016 | - * Let the given monster attempt to reproduce. | |
4017 | - * | |
4040 | +/*! | |
4041 | + * @brief モンスターを増殖生成する / Let the given monster attempt to reproduce. | |
4042 | + * @param m_idx 増殖するモンスター情報ID | |
4043 | + * @param clone クローン・モンスター処理ならばtrue | |
4044 | + * @param mode 生成オプション | |
4045 | + * @return 生成できたらtrueを返す | |
4046 | + * @details | |
4018 | 4047 | * Note that "reproduction" REQUIRES empty space. |
4019 | 4048 | */ |
4020 | 4049 | bool multiply_monster(int m_idx, bool clone, u32b mode) |
@@ -4044,11 +4073,12 @@ bool multiply_monster(int m_idx, bool clone, u32b mode) | ||
4044 | 4073 | |
4045 | 4074 | |
4046 | 4075 | |
4047 | - | |
4048 | - | |
4049 | -/* | |
4050 | - * Dump a message describing a monster's reaction to damage | |
4051 | - * | |
4076 | +/*! | |
4077 | + * @brief ダメージを受けたモンスターの様子を記述する / Dump a message describing a monster's reaction to damage | |
4078 | + * @param m_idx モンスター情報ID | |
4079 | + * @param dam 与えたダメージ | |
4080 | + * @return なし | |
4081 | + * @details | |
4052 | 4082 | * Technically should attempt to treat "Beholder"'s as jelly's |
4053 | 4083 | */ |
4054 | 4084 | void message_pain(int m_idx, int dam) |