• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisionf25e3abf6abb8fe0582a3df45438bb211fb71c43 (tree)
Zeit2019-04-01 23:33:17
Autordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 monster.h に関数定義移動。

Ändern Zusammenfassung

Diff

--- a/src/bldg.c
+++ b/src/bldg.c
@@ -16,6 +16,7 @@
1616 #include "floor.h"
1717 #include "object-boost.h"
1818 #include "object-hook.h"
19+#include "monster.h"
1920 #include "monsterrace-hook.h"
2021 #include "melee.h"
2122 #include "wild.h"
--- a/src/cmd-item.c
+++ b/src/cmd-item.c
@@ -27,6 +27,7 @@
2727 #include "artifact.h"
2828 #include "avatar.h"
2929 #include "player-status.h"
30+#include "monster.h"
3031
3132
3233 /*!
--- a/src/externs.h
+++ b/src/externs.h
@@ -651,26 +651,8 @@ extern bool process_the_world(int num, MONSTER_IDX who, bool vs_player);
651651 extern void monster_gain_exp(MONSTER_IDX m_idx, MONRACE_IDX s_idx);
652652
653653 /* 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+
674656
675657
676658 /* monster2.c */
--- a/src/floor-streams.c
+++ b/src/floor-streams.c
@@ -19,6 +19,7 @@
1919 #include "generate.h"
2020 #include "floor-streams.h"
2121 #include "grid.h"
22+#include "monster.h"
2223 #include "feature.h"
2324
2425
--- a/src/monster.h
+++ b/src/monster.h
@@ -34,3 +34,23 @@ extern void monster_desc(char *desc, monster_type *m_ptr, BIT_FLAGS mode);
3434 #define MD_IGNORE_HALLU 0x00000200 /* Ignore hallucination, and penetrate shape change */
3535
3636 #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);
--- a/src/view-mainwindow.c
+++ b/src/view-mainwindow.c
@@ -16,6 +16,7 @@
1616 #include "artifact.h"
1717 #include "avatar.h"
1818 #include "player-status.h"
19+#include "monster.h"
1920
2021 /*
2122 * Some screen locations for various display routines
--- a/src/wizard1.c
+++ b/src/wizard1.c
@@ -13,6 +13,7 @@
1313 #include "angband.h"
1414 #include "sort.h"
1515 #include "store.h"
16+#include "monster.h"
1617
1718
1819 #ifdef ALLOW_SPOILERS