OSDN Git Service

[Refactor] #39912 不要インクルードファイル整理中. / Refactoring unused include files.
authordeskull <deskull@users.sourceforge.jp>
Mon, 10 Feb 2020 18:33:43 +0000 (03:33 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Mon, 10 Feb 2020 18:33:43 +0000 (03:33 +0900)
src/bldg.h
src/dungeon.h
src/floor-town.h
src/player-class.h
src/player-damage.c
src/player-move.c
src/player-move.h
src/player-status.h
src/spells-summon.h
src/world.c
src/world.h

index 9c67a6d..b91f47f 100644 (file)
@@ -16,8 +16,6 @@
  */
 #define ARENA_DEFEATED_OLD_VER (-(MAX_SHORT)) /*<! 旧バージョンの闘技場敗北定義 */
 
-#define MAX_BOUNTY 20
-
 /*
  * A structure to describe a building.
  * From Kamband
@@ -99,10 +97,16 @@ extern MONRACE_IDX today_mon;
 #define BACT_BROKEN_WEAPON          47
 #define MAX_BACT                    48
 
- /*!
-  * @struct arena_type
-  * @brief 闘技場のモンスターエントリー構造体 / A structure type for arena entry
-  */
+extern MONRACE_IDX battle_mon[4];
+extern u32b mon_odds[4];
+extern int battle_odds;
+extern PRICE kakekin;
+extern int sel_monster;
+
+/*!
+ * @struct arena_type
+ * @brief 闘技場のモンスターエントリー構造体 / A structure type for arena entry
+ */
 typedef struct
 {
        MONRACE_IDX r_idx; /*!< 闘技場のモンスター種族ID(0ならば表彰式) / Monster (0 means victory prizing) */
@@ -110,12 +114,6 @@ typedef struct
        OBJECT_SUBTYPE_VALUE sval;  /*!< モンスター打倒後に得られるアイテムの小カテゴリID / sval of prize */
 } arena_type;
 
-extern MONRACE_IDX battle_mon[4];
-extern u32b mon_odds[4];
-extern int battle_odds;
-extern PRICE kakekin;
-extern int sel_monster;
-
 extern const arena_type arena_info[MAX_ARENA_MONS + 2];
 extern void update_gambling_monsters(player_type *player_ptr);
 extern void do_cmd_bldg(player_type *player_ptr);
index d30303e..dfd4466 100644 (file)
@@ -1,5 +1,4 @@
 #pragma once
-#include "feature.h"
 
 #define DUNGEON_FEAT_PROB_NUM 3
 
index 8f4fc2a..509a25e 100644 (file)
@@ -1,5 +1,8 @@
 #pragma once
-#include "store.h"
+
+struct store_type;
+typedef struct store_type store_type;
+
 
 /*
  * A structure describing a town with
index 4a81579..ebe90f6 100644 (file)
@@ -1,5 +1,6 @@
 #pragma once
 #include "spells.h"
+#include "player-status.h"
 
 /*
  * 職業ごとの選択可能な魔法領域現在の所 bitrh.c でのみ使用。
@@ -127,4 +128,4 @@ extern const player_class class_info[MAX_CLASS];
 
 extern const s32b realm_choices1[];
 extern const s32b realm_choices2[];
-extern const concptr player_title[MAX_CLASS][PY_MAX_LEVEL / 5];
+extern const concptr player_title[MAX_CLASS][10];
index 3f7bf8f..8bc29ea 100644 (file)
@@ -4,6 +4,7 @@
 #include "term.h"
 
 #include "avatar.h"
+#include "bldg.h"
 #include "cmd-dump.h"
 #include "realm-song.h"
 #include "floor.h"
@@ -17,6 +18,7 @@
 #include "player-status.h"
 #include "player-effects.h"
 #include "player-class.h"
+#include "player-race.h"
 #include "monster-spell.h"
 #include "world.h"
 #include "view-mainwindow.h"
index a9afeeb..4237e29 100644 (file)
 #include "player-move.h"
 #include "player-status.h"
 #include "player-effects.h"
+#include "player-race.h"
 #include "player-class.h"
 #include "player-inventory.h"
 #include "player-personality.h"
index f4e0a3f..b1000b1 100644 (file)
@@ -1,5 +1,4 @@
 #pragma once
-#include "floor.h"
 
 extern void disturb(player_type *creature_ptr, bool stop_search, bool flush_output);
 extern void move_player(player_type *creature_ptr, DIRECTION dir, bool do_pickup, bool break_trap);
index 6d8f74c..3486007 100644 (file)
@@ -1,6 +1,7 @@
 #pragma once 
-
-#include "floor.h"
+#include "bldg.h"
+struct floor_type;
+typedef struct floor_type floor_type;
 
 /*
  * Most of the "player" information goes here.
index 9c05db8..c78a558 100644 (file)
@@ -1,5 +1,4 @@
 #pragma once
-#include "monster.h"
 
 /*
  * summon_specificで取り扱われる、召喚の種別定義 / Legal restrictions for "summon_specific()"
index f034cb9..465e3a3 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "world.h"
+#include "player-race.h"
 
 world_type world;
 world_type *current_world_ptr = &world;
index 4b11821..bf17f53 100644 (file)
@@ -1,5 +1,6 @@
 #pragma once
-#include "bldg.h"
+
+#define MAX_BOUNTY 20
 
 typedef struct {