OSDN Git Service

[Refactor] #37353 vault_type と関連配列を rooms-vault.c/h へ移動。
authordeskull <deskull@users.sourceforge.jp>
Mon, 29 Apr 2019 14:14:34 +0000 (23:14 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Mon, 29 Apr 2019 14:14:34 +0000 (23:14 +0900)
src/dungeon-file.c
src/externs.h
src/init.c
src/rooms-vault.c
src/rooms-vault.h
src/types.h
src/variable.c

index 4e42466..650ccc4 100644 (file)
@@ -13,6 +13,7 @@
 #include "floor.h"
 #include "bldg.h"
 #include "world.h"
+#include "rooms-vault.h"
 
 dungeon_grid letter[255];
 
index f6d60ae..2d1666f 100644 (file)
@@ -243,9 +243,6 @@ extern const player_class *cp_ptr;
 extern const player_seikaku *ap_ptr;
 extern const player_magic *mp_ptr;
 extern birther previous_char;
-extern vault_type *v_info;
-extern char *v_name;
-extern char *v_text;
 extern skill_table *s_info;
 extern player_magic *m_info;
 extern char *f_name;
index c8e428a..3c03b21 100644 (file)
@@ -48,6 +48,7 @@
 #include "feature.h"
 #include "floor.h"
 #include "dungeon.h"
+#include "rooms-vault.h"
 
 #ifndef MACINTOSH
 #ifdef CHECK_MODIFICATION_TIME
index c8bb401..254ddfa 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "util.h"
+#include "rooms-vault.h"
 
 #include "floor-generate.h"
 #include "grid.h"
 #include "dungeon.h"
 
 /*
+ * The vault generation arrays
+ */
+vault_type *v_info;
+char *v_name;
+char *v_text;
+
+/*
 * This function creates a random vault that looks like a collection of bubbles.
 * It works by getting a set of coordinates that represent the center of each
 * bubble.  The entire room is made by seeing which bubble center is closest. If
index 7fccebe..a7a3afa 100644 (file)
@@ -1,4 +1,25 @@
-extern bool build_type7(void);
+/*
+ * Information about "vault generation"
+ */
+
+typedef struct vault_type vault_type;
+
+struct vault_type
+{
+       STR_OFFSET name;        /* Name (offset) */
+       STR_OFFSET text;        /* Text (offset) */
+
+       ROOM_IDX typ;           /* Vault type */
+       PROB rat;                       /* Vault rating (unused) */
+       POSITION hgt;           /* Vault height */
+       POSITION wid;           /* Vault width */
+};
+
+extern vault_type *v_info;
+extern char *v_name;
+extern char *v_text;
+
+extern bool build_type7(void);
 extern bool build_type8(void);
 extern bool build_type10(void);
 extern bool build_type17(void);
index c6bdeba..ac917fb 100644 (file)
@@ -593,25 +593,6 @@ struct monster_race
 };
 
 
-
-/*
- * Information about "vault generation"
- */
-
-typedef struct vault_type vault_type;
-
-struct vault_type
-{
-       STR_OFFSET name;        /* Name (offset) */
-       STR_OFFSET text;        /* Text (offset) */
-
-       ROOM_IDX typ;           /* Vault type */
-       PROB rat;                       /* Vault rating (unused) */
-       POSITION hgt;           /* Vault height */
-       POSITION wid;           /* Vault width */
-};
-
-
 /*
  * Information about "skill"
  */
index 6c76f0c..e3f6017 100644 (file)
@@ -532,14 +532,6 @@ const player_magic *mp_ptr;
  */
 birther previous_char;
 
-
-/*
- * The vault generation arrays
- */
-vault_type *v_info;
-char *v_name;
-char *v_text;
-
 /*
  * The skill table
  */