• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision7ab841fb20275338fee6889b2bf9c64eca792cec (tree)
Time2019-02-20 22:31:48
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 wild.h 追加。 / Add wild.h.

Change Summary

Incremental Difference

--- a/Hengband_vcs2017/Hengband/Hengband.vcxproj
+++ b/Hengband_vcs2017/Hengband/Hengband.vcxproj
@@ -339,6 +339,7 @@
339339 <ClInclude Include="..\..\src\store.h" />
340340 <ClInclude Include="..\..\src\trap.h" />
341341 <ClInclude Include="..\..\src\types.h" />
342+ <ClInclude Include="..\..\src\wild.h" />
342343 <ClInclude Include="..\..\src\world.h" />
343344 <ClInclude Include="..\..\src\z-config.h" />
344345 <ClInclude Include="..\..\src\z-form.h" />
--- a/src/birth.c
+++ b/src/birth.c
@@ -20,6 +20,7 @@
2020 #include "player-status.h"
2121 #include "spells.h"
2222 #include "spells-status.h"
23+#include "wild.h"
2324
2425 /*!
2526 * オートローラーの内容を描画する間隔 /
--- a/src/cmd2.c
+++ b/src/cmd2.c
@@ -25,6 +25,7 @@
2525 #include "player-status.h"
2626 #include "realm-hex.h"
2727 #include "geometry.h"
28+#include "wild.h"
2829
2930 /*!
3031 * @brief フロア脱出時に出戻りが不可能だった場合に警告を加える処理
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -38,6 +38,8 @@
3838 #include "cmd-spell.h"
3939 #include "realm-hex.h"
4040 #include "object-hook.h"
41+#include "wild.h"
42+
4143
4244 static bool load = TRUE; /*!<ロード処理中の分岐フラグ*/
4345 static int wild_regen = 20; /*!<広域マップ移動時の自然回復処理カウンタ(広域マップ1マス毎に20回処理を基本とする)*/
--- a/src/effects.c
+++ b/src/effects.c
@@ -20,6 +20,7 @@
2020 #include "spells-status.h"
2121 #include "realm-hex.h"
2222 #include "object-hook.h"
23+#include "wild.h"
2324
2425 /*!
2526 * @brief プレイヤーの継続行動を設定する。
--- a/src/externs.h
+++ b/src/externs.h
@@ -1371,16 +1371,6 @@ extern void py_pickup_floor(bool pickup);
13711371 /* variable.c */
13721372 extern bool easy_floor;
13731373
1374-/* wild.c */
1375-extern void set_floor_and_wall(DUNGEON_IDX type);
1376-extern void wilderness_gen(void);
1377-extern void wilderness_gen_small(void);
1378-extern errr init_wilderness(void);
1379-extern void init_wilderness_terrains(void);
1380-extern void seed_wilderness(void);
1381-extern errr parse_line_wilderness(char *buf, int ymin, int xmin, int ymax, int xmax, int *y, int *x);
1382-extern bool change_wild_mode(void);
1383-
13841374 /* wizard1.c */
13851375 extern void spoil_random_artifact(concptr fname);
13861376
--- a/src/floor-generate.c
+++ b/src/floor-generate.c
@@ -105,6 +105,7 @@
105105 #include "monster.h"
106106 #include "quest.h"
107107 #include "player-status.h"
108+#include "wild.h"
108109
109110 int dun_tun_rnd;
110111 int dun_tun_chg;
--- a/src/floor-save.c
+++ b/src/floor-save.c
@@ -16,6 +16,7 @@
1616 #include "grid.h"
1717 #include "monster.h"
1818 #include "quest.h"
19+#include "wild.h"
1920
2021
2122 static FLOOR_IDX new_floor_id; /*!<次のフロアのID / floor_id of the destination */
--- a/src/init1.c
+++ b/src/init1.c
@@ -51,6 +51,7 @@
5151 #include "monster.h"
5252 #include "artifact.h"
5353 #include "cmd-activate.h"
54+#include "wild.h"
5455
5556
5657
--- a/src/init2.c
+++ b/src/init2.c
@@ -38,6 +38,7 @@
3838 #include "trap.h"
3939 #include "rooms.h"
4040 #include "store.h"
41+#include "wild.h"
4142
4243 #ifndef MACINTOSH
4344 #ifdef CHECK_MODIFICATION_TIME
--- /dev/null
+++ b/src/wild.h
@@ -0,0 +1,11 @@
1+#pragma once
2+
3+/* wild.c */
4+extern void set_floor_and_wall(DUNGEON_IDX type);
5+extern void wilderness_gen(void);
6+extern void wilderness_gen_small(void);
7+extern errr init_wilderness(void);
8+extern void init_wilderness_terrains(void);
9+extern void seed_wilderness(void);
10+extern errr parse_line_wilderness(char *buf, int ymin, int xmin, int ymax, int xmax, int *y, int *x);
11+extern bool change_wild_mode(void);
Show on old repository browser