• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

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


Commit MetaInfo

Revisión9e53b58cb96208a1703cfba8dc11884372c0aea7 (tree)
Tiempo2019-03-30 18:42:02
Autordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 monster_desc() の宣言を monster.h に移動。

Cambiar Resumen

Diferencia incremental

--- a/src/cmd-pet.c
+++ b/src/cmd-pet.c
@@ -3,6 +3,7 @@
33 #include "sort.h"
44 #include "player-status.h"
55 #include "object-hook.h"
6+#include "monster.h"
67 #include "monster-status.h"
78
89 /*!
--- a/src/cmd4.c
+++ b/src/cmd4.c
@@ -50,6 +50,7 @@
5050 #include "artifact.h"
5151 #include "avatar.h"
5252 #include "object-hook.h"
53+#include "monster.h"
5354 #include "monster-status.h"
5455
5556
--- a/src/defines.h
+++ b/src/defines.h
@@ -1935,20 +1935,6 @@
19351935 #define PW_BORG_2 0x00008000L /*!<サブウィンドウ描画フラグ: ボーグステータス / Display borg status */
19361936
19371937
1938-/* Bit flags for monster_desc() */
1939-#define MD_OBJECTIVE 0x00000001 /* Objective (or Reflexive) */
1940-#define MD_POSSESSIVE 0x00000002 /* Possessive (or Reflexive) */
1941-#define MD_INDEF_HIDDEN 0x00000004 /* Use indefinites for hidden monsters ("something") */
1942-#define MD_INDEF_VISIBLE 0x00000008 /* Use indefinites for visible monsters ("a kobold") */
1943-#define MD_PRON_HIDDEN 0x00000010 /* Pronominalize hidden monsters */
1944-#define MD_PRON_VISIBLE 0x00000020 /* Pronominalize visible monsters */
1945-#define MD_ASSUME_HIDDEN 0x00000040 /* Assume the monster is hidden */
1946-#define MD_ASSUME_VISIBLE 0x00000080 /* Assume the monster is visible */
1947-#define MD_TRUE_NAME 0x00000100 /* Chameleon's true name */
1948-#define MD_IGNORE_HALLU 0x00000200 /* Ignore hallucination, and penetrate shape change */
1949-
1950-#define MD_WRONGDOER_NAME (MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE) /* 加害明記向け */
1951-
19521938 /*
19531939 * Bit flags for object_desc()
19541940 */
--- a/src/externs.h
+++ b/src/externs.h
@@ -688,7 +688,6 @@ extern void wipe_m_list(void);
688688 extern MONSTER_IDX m_pop(void);
689689 extern errr get_mon_num_prep(monsterrace_hook_type monster_hook, monsterrace_hook_type monster_hook2);
690690 extern MONRACE_IDX get_mon_num(DEPTH level);
691-extern void monster_desc(char *desc, monster_type *m_ptr, BIT_FLAGS mode);
692691 extern int lore_do_probe(MONRACE_IDX r_idx);
693692 extern void lore_treasure(MONSTER_IDX m_idx, ITEM_NUMBER num_item, ITEM_NUMBER num_gold);
694693 extern void update_monster(MONSTER_IDX m_idx, bool full);
--- a/src/files.c
+++ b/src/files.c
@@ -25,6 +25,7 @@
2525 #include "shoot.h"
2626 #include "player-move.h"
2727 #include "patron.h"
28+#include "monster.h"
2829 #include "monster-status.h"
2930
3031
--- a/src/melee1.c
+++ b/src/melee1.c
@@ -18,6 +18,7 @@
1818 #include "monsterrace-hook.h"
1919 #include "melee.h"
2020 #include "projection.h"
21+#include "monster.h"
2122 #include "monster-status.h"
2223 #include "monster-spell.h"
2324 #include "avatar.h"
--- a/src/monster.h
+++ b/src/monster.h
@@ -18,3 +18,19 @@ extern bool place_monster(POSITION y, POSITION x, BIT_FLAGS mode);
1818 extern bool alloc_horde(POSITION y, POSITION x);
1919 extern bool alloc_guardian(bool def_val);
2020 extern bool alloc_monster(POSITION dis, BIT_FLAGS mode);
21+
22+
23+extern void monster_desc(char *desc, monster_type *m_ptr, BIT_FLAGS mode);
24+/* Bit flags for monster_desc() */
25+#define MD_OBJECTIVE 0x00000001 /* Objective (or Reflexive) */
26+#define MD_POSSESSIVE 0x00000002 /* Possessive (or Reflexive) */
27+#define MD_INDEF_HIDDEN 0x00000004 /* Use indefinites for hidden monsters ("something") */
28+#define MD_INDEF_VISIBLE 0x00000008 /* Use indefinites for visible monsters ("a kobold") */
29+#define MD_PRON_HIDDEN 0x00000010 /* Pronominalize hidden monsters */
30+#define MD_PRON_VISIBLE 0x00000020 /* Pronominalize visible monsters */
31+#define MD_ASSUME_HIDDEN 0x00000040 /* Assume the monster is hidden */
32+#define MD_ASSUME_VISIBLE 0x00000080 /* Assume the monster is visible */
33+#define MD_TRUE_NAME 0x00000100 /* Chameleon's true name */
34+#define MD_IGNORE_HALLU 0x00000200 /* Ignore hallucination, and penetrate shape change */
35+
36+#define MD_WRONGDOER_NAME (MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE) /* 加害明記向け */
--- a/src/mspells1.c
+++ b/src/mspells1.c
@@ -45,6 +45,7 @@
4545 #include "realm-hex.h"
4646 #include "player-move.h"
4747 #include "player-status.h"
48+#include "monster.h"
4849 #include "monster-spell.h"
4950
5051
--- a/src/mspells2.c
+++ b/src/mspells2.c
@@ -16,6 +16,7 @@
1616 #include "quest.h"
1717 #include "realm-hex.h"
1818 #include "player-move.h"
19+#include "monster.h"
1920 #include "monster-status.h"
2021 #include "monster-spell.h"
2122
--- a/src/player-move.c
+++ b/src/player-move.c
@@ -151,6 +151,7 @@
151151 #include "spells-floor.h"
152152 #include "feature.h"
153153 #include "warning.h"
154+#include "monster.h"
154155 #include "monster-spell.h"
155156
156157
--- a/src/player-status.c
+++ b/src/player-status.c
@@ -5,6 +5,7 @@
55 #include "avatar.h"
66 #include "spells-status.h"
77 #include "object-hook.h"
8+#include "monster.h"
89 #include "monster-status.h"
910 #include "monsterrace-hook.h"
1011 #include "mutation.h"
--- a/src/realm-hissatsu.c
+++ b/src/realm-hissatsu.c
@@ -4,6 +4,7 @@
44 #include "monsterrace-hook.h"
55 #include "projection.h"
66 #include "artifact.h"
7+#include "monster.h"
78 #include "player-status.h"
89 #include "feature.h"
910
--- a/src/shoot.c
+++ b/src/shoot.c
@@ -1,5 +1,6 @@
11 #include "angband.h"
22 #include "projection.h"
3+#include "monster.h"
34 #include "monster-status.h"
45 #include "monster-spell.h"
56 #include "artifact.h"
--- a/src/spells-status.c
+++ b/src/spells-status.c
@@ -4,6 +4,7 @@
44 #include "spells-status.h"
55 #include "projection.h"
66 #include "spells.h"
7+#include "monster.h"
78
89 /*!
910 * @brief モンスター回復処理