• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionf9377ef8e41c9fedcd2dcf0d1395a8ea1688a389 (tree)
Time2019-05-01 13:47:13
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 owner_type 構造体を store.h に移動.

Change Summary

Incremental Difference

--- a/src/store.h
+++ b/src/store.h
@@ -1,4 +1,21 @@
1-
1+#pragma once
2+
3+/*
4+ * A store owner
5+ */
6+typedef struct owner_type owner_type;
7+
8+struct owner_type
9+{
10+ concptr owner_name; /* Name */
11+ PRICE max_cost; /* Purse limit */
12+ byte max_inflate; /* Inflation (max) */
13+ byte min_inflate; /* Inflation (min) */
14+ byte haggle_per; /* Haggle unit */
15+ byte insult_max; /* Insult limit */
16+ byte owner_race; /* Owner race */
17+};
18+
219 /*
320 * Store types
421 */
--- a/src/types.h
+++ b/src/types.h
@@ -138,24 +138,6 @@ struct alloc_entry
138138 };
139139
140140
141-/*
142- * A store owner
143- */
144-typedef struct owner_type owner_type;
145-
146-struct owner_type
147-{
148- concptr owner_name; /* Name */
149- PRICE max_cost; /* Purse limit */
150- byte max_inflate; /* Inflation (max) */
151- byte min_inflate; /* Inflation (min) */
152- byte haggle_per; /* Haggle unit */
153- byte insult_max; /* Insult limit */
154- byte owner_race; /* Owner race */
155-};
156-
157-
158-
159141
160142 /*
161143 * A store, with an owner, various state flags, a current stock
Show on old repository browser