変愚蛮怒のメインリポジトリです
Revisión | 9e53b58cb96208a1703cfba8dc11884372c0aea7 (tree) |
---|---|
Tiempo | 2019-03-30 18:42:02 |
Autor | deskull <deskull@user...> |
Commiter | deskull |
[Refactor] #37353 monster_desc() の宣言を monster.h に移動。
@@ -3,6 +3,7 @@ | ||
3 | 3 | #include "sort.h" |
4 | 4 | #include "player-status.h" |
5 | 5 | #include "object-hook.h" |
6 | +#include "monster.h" | |
6 | 7 | #include "monster-status.h" |
7 | 8 | |
8 | 9 | /*! |
@@ -50,6 +50,7 @@ | ||
50 | 50 | #include "artifact.h" |
51 | 51 | #include "avatar.h" |
52 | 52 | #include "object-hook.h" |
53 | +#include "monster.h" | |
53 | 54 | #include "monster-status.h" |
54 | 55 | |
55 | 56 |
@@ -1935,20 +1935,6 @@ | ||
1935 | 1935 | #define PW_BORG_2 0x00008000L /*!<サブウィンドウ描画フラグ: ボーグステータス / Display borg status */ |
1936 | 1936 | |
1937 | 1937 | |
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 | - | |
1952 | 1938 | /* |
1953 | 1939 | * Bit flags for object_desc() |
1954 | 1940 | */ |
@@ -688,7 +688,6 @@ extern void wipe_m_list(void); | ||
688 | 688 | extern MONSTER_IDX m_pop(void); |
689 | 689 | extern errr get_mon_num_prep(monsterrace_hook_type monster_hook, monsterrace_hook_type monster_hook2); |
690 | 690 | extern MONRACE_IDX get_mon_num(DEPTH level); |
691 | -extern void monster_desc(char *desc, monster_type *m_ptr, BIT_FLAGS mode); | |
692 | 691 | extern int lore_do_probe(MONRACE_IDX r_idx); |
693 | 692 | extern void lore_treasure(MONSTER_IDX m_idx, ITEM_NUMBER num_item, ITEM_NUMBER num_gold); |
694 | 693 | extern void update_monster(MONSTER_IDX m_idx, bool full); |
@@ -25,6 +25,7 @@ | ||
25 | 25 | #include "shoot.h" |
26 | 26 | #include "player-move.h" |
27 | 27 | #include "patron.h" |
28 | +#include "monster.h" | |
28 | 29 | #include "monster-status.h" |
29 | 30 | |
30 | 31 |
@@ -18,6 +18,7 @@ | ||
18 | 18 | #include "monsterrace-hook.h" |
19 | 19 | #include "melee.h" |
20 | 20 | #include "projection.h" |
21 | +#include "monster.h" | |
21 | 22 | #include "monster-status.h" |
22 | 23 | #include "monster-spell.h" |
23 | 24 | #include "avatar.h" |
@@ -18,3 +18,19 @@ extern bool place_monster(POSITION y, POSITION x, BIT_FLAGS mode); | ||
18 | 18 | extern bool alloc_horde(POSITION y, POSITION x); |
19 | 19 | extern bool alloc_guardian(bool def_val); |
20 | 20 | 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) /* 加害明記向け */ |
@@ -45,6 +45,7 @@ | ||
45 | 45 | #include "realm-hex.h" |
46 | 46 | #include "player-move.h" |
47 | 47 | #include "player-status.h" |
48 | +#include "monster.h" | |
48 | 49 | #include "monster-spell.h" |
49 | 50 | |
50 | 51 |
@@ -16,6 +16,7 @@ | ||
16 | 16 | #include "quest.h" |
17 | 17 | #include "realm-hex.h" |
18 | 18 | #include "player-move.h" |
19 | +#include "monster.h" | |
19 | 20 | #include "monster-status.h" |
20 | 21 | #include "monster-spell.h" |
21 | 22 |
@@ -151,6 +151,7 @@ | ||
151 | 151 | #include "spells-floor.h" |
152 | 152 | #include "feature.h" |
153 | 153 | #include "warning.h" |
154 | +#include "monster.h" | |
154 | 155 | #include "monster-spell.h" |
155 | 156 | |
156 | 157 |
@@ -5,6 +5,7 @@ | ||
5 | 5 | #include "avatar.h" |
6 | 6 | #include "spells-status.h" |
7 | 7 | #include "object-hook.h" |
8 | +#include "monster.h" | |
8 | 9 | #include "monster-status.h" |
9 | 10 | #include "monsterrace-hook.h" |
10 | 11 | #include "mutation.h" |
@@ -4,6 +4,7 @@ | ||
4 | 4 | #include "monsterrace-hook.h" |
5 | 5 | #include "projection.h" |
6 | 6 | #include "artifact.h" |
7 | +#include "monster.h" | |
7 | 8 | #include "player-status.h" |
8 | 9 | #include "feature.h" |
9 | 10 |
@@ -1,5 +1,6 @@ | ||
1 | 1 | #include "angband.h" |
2 | 2 | #include "projection.h" |
3 | +#include "monster.h" | |
3 | 4 | #include "monster-status.h" |
4 | 5 | #include "monster-spell.h" |
5 | 6 | #include "artifact.h" |
@@ -4,6 +4,7 @@ | ||
4 | 4 | #include "spells-status.h" |
5 | 5 | #include "projection.h" |
6 | 6 | #include "spells.h" |
7 | +#include "monster.h" | |
7 | 8 | |
8 | 9 | /*! |
9 | 10 | * @brief モンスター回復処理 |