OSDN Git Service

[Refactor] #40014 Separated combat-types-setter.c/h from monster-lore.c
[hengband/hengband.git] / src / lore / lore-util.h
index 5b99f5a..07f5f76 100644 (file)
@@ -3,11 +3,17 @@
 #include "system/angband.h"
 #include "monster-race/monster-race.h"
 
+typedef enum monster_sex {
+    MSEX_NONE = 0,
+    MSEX_MALE = 1,
+    MSEX_FEMALE = 2,
+} monster_sex;
+
 typedef struct lore_type {
 #ifdef JP
     char jverb_buf[64];
 #else
-    bool sin = FALSE;
+    bool sin;
 #endif
     bool nightmare;
     monster_race *r_ptr;
@@ -23,6 +29,29 @@ typedef struct lore_type {
     BIT_FLAGS flags7;
     BIT_FLAGS flagsr;
     bool reinforce;
+    bool know_everything;
+    BIT_FLAGS mode;
+    monster_sex msex;
+    bool old;
+    MONRACE_IDX r_idx;
+    int vn;
+    byte color[96];
+    concptr vp[96];
+    char tmp_msg[96][96];
+    bool breath;
+    bool magic;
+    int drop_quantity;
+    concptr drop_quality;
+    concptr p;
+    concptr q;
+    rbm_type method;
 } lore_type;
 
+typedef void (*hook_c_roff_pf)(TERM_COLOR attr, concptr str);
+extern hook_c_roff_pf hook_c_roff;
+
+extern concptr wd_he[3];
+extern concptr wd_his[3];
+
 lore_type *initialize_lore_type(lore_type *lore_ptr, MONRACE_IDX r_idx, BIT_FLAGS mode);
+void hooked_roff(concptr str);