変愚蛮怒のメインリポジトリです
Revision | f25e3abf6abb8fe0582a3df45438bb211fb71c43 (tree) |
---|---|
Zeit | 2019-04-01 23:33:17 |
Autor | deskull <deskull@user...> |
Commiter | deskull |
[Refactor] #37353 monster.h に関数定義移動。
@@ -16,6 +16,7 @@ | ||
16 | 16 | #include "floor.h" |
17 | 17 | #include "object-boost.h" |
18 | 18 | #include "object-hook.h" |
19 | +#include "monster.h" | |
19 | 20 | #include "monsterrace-hook.h" |
20 | 21 | #include "melee.h" |
21 | 22 | #include "wild.h" |
@@ -27,6 +27,7 @@ | ||
27 | 27 | #include "artifact.h" |
28 | 28 | #include "avatar.h" |
29 | 29 | #include "player-status.h" |
30 | +#include "monster.h" | |
30 | 31 | |
31 | 32 | |
32 | 33 | /*! |
@@ -651,26 +651,8 @@ extern bool process_the_world(int num, MONSTER_IDX who, bool vs_player); | ||
651 | 651 | extern void monster_gain_exp(MONSTER_IDX m_idx, MONRACE_IDX s_idx); |
652 | 652 | |
653 | 653 | /* monster1.c */ |
654 | -extern void roff_top(MONRACE_IDX r_idx); | |
655 | -extern void screen_roff(MONRACE_IDX r_idx, BIT_FLAGS mode); | |
656 | -extern void display_roff(MONRACE_IDX r_idx); | |
657 | -extern void output_monster_spoiler(MONRACE_IDX r_idx, void (*roff_func)(TERM_COLOR attr, concptr str)); | |
658 | -extern void create_name(int type, char *name); | |
659 | -extern concptr extract_note_dies(MONRACE_IDX r_idx); | |
660 | -extern void monster_death(MONSTER_IDX m_idx, bool drop_item); | |
661 | - | |
662 | -extern monsterrace_hook_type get_monster_hook(void); | |
663 | -extern monsterrace_hook_type get_monster_hook2(POSITION y, POSITION x); | |
664 | -extern void set_friendly(monster_type *m_ptr); | |
665 | -extern void set_pet(monster_type *m_ptr); | |
666 | -extern void set_hostile(monster_type *m_ptr); | |
667 | -extern void anger_monster(monster_type *m_ptr); | |
668 | -extern bool monster_can_cross_terrain(FEAT_IDX feat, monster_race *r_ptr, BIT_FLAGS16 mode); | |
669 | -extern bool monster_can_enter(POSITION y, POSITION x, monster_race *r_ptr, BIT_FLAGS16 mode); | |
670 | -extern bool are_enemies(monster_type *m_ptr1, monster_type *m_ptr2); | |
671 | -extern bool monster_has_hostile_align(monster_type *m_ptr, int pa_good, int pa_evil, monster_race *r_ptr); | |
672 | -extern void dice_to_string(int base_damage, int dice_num, int dice_side, int dice_mult, int dice_div, char* msg); | |
673 | -extern concptr look_mon_desc(monster_type *m_ptr, BIT_FLAGS mode); | |
654 | + | |
655 | + | |
674 | 656 | |
675 | 657 | |
676 | 658 | /* monster2.c */ |
@@ -19,6 +19,7 @@ | ||
19 | 19 | #include "generate.h" |
20 | 20 | #include "floor-streams.h" |
21 | 21 | #include "grid.h" |
22 | +#include "monster.h" | |
22 | 23 | #include "feature.h" |
23 | 24 | |
24 | 25 |
@@ -34,3 +34,23 @@ extern void monster_desc(char *desc, monster_type *m_ptr, BIT_FLAGS mode); | ||
34 | 34 | #define MD_IGNORE_HALLU 0x00000200 /* Ignore hallucination, and penetrate shape change */ |
35 | 35 | |
36 | 36 | #define MD_WRONGDOER_NAME (MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE) /* 加害明記向け */ |
37 | + | |
38 | +extern void roff_top(MONRACE_IDX r_idx); | |
39 | +extern void screen_roff(MONRACE_IDX r_idx, BIT_FLAGS mode); | |
40 | +extern void display_roff(MONRACE_IDX r_idx); | |
41 | +extern void output_monster_spoiler(MONRACE_IDX r_idx, void(*roff_func)(TERM_COLOR attr, concptr str)); | |
42 | +extern void create_name(int type, char *name); | |
43 | +extern concptr extract_note_dies(MONRACE_IDX r_idx); | |
44 | +extern void monster_death(MONSTER_IDX m_idx, bool drop_item); | |
45 | +extern monsterrace_hook_type get_monster_hook(void); | |
46 | +extern monsterrace_hook_type get_monster_hook2(POSITION y, POSITION x); | |
47 | +extern void set_friendly(monster_type *m_ptr); | |
48 | +extern void set_pet(monster_type *m_ptr); | |
49 | +extern void set_hostile(monster_type *m_ptr); | |
50 | +extern void anger_monster(monster_type *m_ptr); | |
51 | +extern bool monster_can_cross_terrain(FEAT_IDX feat, monster_race *r_ptr, BIT_FLAGS16 mode); | |
52 | +extern bool monster_can_enter(POSITION y, POSITION x, monster_race *r_ptr, BIT_FLAGS16 mode); | |
53 | +extern bool are_enemies(monster_type *m_ptr1, monster_type *m_ptr2); | |
54 | +extern bool monster_has_hostile_align(monster_type *m_ptr, int pa_good, int pa_evil, monster_race *r_ptr); | |
55 | +extern void dice_to_string(int base_damage, int dice_num, int dice_side, int dice_mult, int dice_div, char* msg); | |
56 | +extern concptr look_mon_desc(monster_type *m_ptr, BIT_FLAGS mode); |
@@ -16,6 +16,7 @@ | ||
16 | 16 | #include "artifact.h" |
17 | 17 | #include "avatar.h" |
18 | 18 | #include "player-status.h" |
19 | +#include "monster.h" | |
19 | 20 | |
20 | 21 | /* |
21 | 22 | * Some screen locations for various display routines |
@@ -13,6 +13,7 @@ | ||
13 | 13 | #include "angband.h" |
14 | 14 | #include "sort.h" |
15 | 15 | #include "store.h" |
16 | +#include "monster.h" | |
16 | 17 | |
17 | 18 | |
18 | 19 | #ifdef ALLOW_SPOILERS |