OSDN Git Service

[Refactor] #37353 feat_prob 構造体と関連変数を feature.c/h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Thu, 2 May 2019 14:17:46 +0000 (23:17 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 2 May 2019 14:18:45 +0000 (23:18 +0900)
src/cmd-basic.c
src/cmd4.c
src/core.c
src/dungeon.h
src/feature.h
src/types.h

index 7d1f344..620e891 100644 (file)
@@ -16,6 +16,7 @@
 #include "chest.h"
 #include "trap.h"
 #include "dungeon.h"
+#include "feature.h"
 #include "floor.h"
 #include "melee.h"
 #include "object-hook.h"
index 0dbe5ca..c7dab98 100644 (file)
@@ -47,6 +47,7 @@
 #include "cmd-pet.h"
 #include "cmd-spell.h"
 #include "dungeon.h"
+#include "feature.h"
 #include "world.h"
 #include "player-effects.h"
 #include "player-status.h"
index db659b9..88c94aa 100644 (file)
@@ -31,6 +31,7 @@
 #include "cmd-basic.h"
 #include "snipe.h"
 #include "dungeon.h"
+#include "feature.h"
 #include "floor.h"
 #include "floor-events.h"
 #include "floor-town.h"
index 90a9d84..33e9955 100644 (file)
@@ -1,4 +1,5 @@
 #pragma once
+#include "feature.h"
 
 /* A structure for the != dungeon types */
 typedef struct dungeon_type dungeon_type;
index 78cc081..4086e05 100644 (file)
@@ -13,6 +13,12 @@ struct feature_state
        FEAT_IDX result; /*!< 変化先ID / Result (f_info ID) */
 };
 
+typedef struct
+{
+       FEAT_IDX feat;    /* Feature tile */
+       PERCENTAGE percent; /* Chance of type */
+}
+feat_prob;
 
 /*!
  * @struct feature_type
index 2234209..569065b 100644 (file)
@@ -72,12 +72,3 @@ typedef bool (*monsterrace_hook_type)(MONRACE_IDX r_idx);
  * This seems like a pretty standard "typedef"
  */
 typedef int (*inven_func)(object_type *);
-
-
-typedef struct
-{
-       FEAT_IDX feat;    /* Feature tile */
-       PERCENTAGE percent; /* Chance of type */
-}
-feat_prob;
-