OSDN Git Service

[Refactor] #37353 owner_type 構造体を store.h に移動.
authordeskull <deskull@users.sourceforge.jp>
Wed, 1 May 2019 04:28:43 +0000 (13:28 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 1 May 2019 04:47:13 +0000 (13:47 +0900)
src/store.h
src/types.h

index e64b6c5..9f731d8 100644 (file)
@@ -1,4 +1,21 @@
-
+#pragma once
+
+/*
+ * A store owner
+ */
+typedef struct owner_type owner_type;
+
+struct owner_type
+{
+       concptr owner_name;     /* Name */
+       PRICE max_cost;         /* Purse limit */
+       byte max_inflate;       /* Inflation (max) */
+       byte min_inflate;       /* Inflation (min) */
+       byte haggle_per;        /* Haggle unit */
+       byte insult_max;        /* Insult limit */
+       byte owner_race;        /* Owner race */
+};
+
 /*
  * Store types
  */
index 070807e..1a4abc1 100644 (file)
@@ -138,24 +138,6 @@ struct alloc_entry
 };
 
 
-/*
- * A store owner
- */
-typedef struct owner_type owner_type;
-
-struct owner_type
-{
-       concptr owner_name;     /* Name */
-       PRICE max_cost;         /* Purse limit */
-       byte max_inflate;       /* Inflation (max) */
-       byte min_inflate;       /* Inflation (min) */
-       byte haggle_per;        /* Haggle unit */
-       byte insult_max;        /* Insult limit */
-       byte owner_race;        /* Owner race */
-};
-
-
-
 
 /*
  * A store, with an owner, various state flags, a current stock