summaryrefslogtreecommitdiff
path: root/src/store_type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/store_type.hpp')
-rw-r--r--src/store_type.hpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/store_type.hpp b/src/store_type.hpp
new file mode 100644
index 00000000..5fb4ac7f
--- /dev/null
+++ b/src/store_type.hpp
@@ -0,0 +1,40 @@
+#pragma once
+
+#include "h-basic.h"
+#include "object_type_fwd.hpp"
+
+#include <vector>
+
+/**
+ * A store, with an owner, various state flags, a current stock
+ * of items, and a table of items that are often purchased.
+ */
+struct store_type
+{
+ u16b st_idx = 0;
+
+ /**
+ * Owner index
+ */
+ u16b owner = 0;
+
+ /**
+ * Closed until this turn.
+ */
+ s32b store_open = 0;
+
+ /**
+ * Last visited on this turn.
+ */
+ s32b last_visit = 0;
+
+ /**
+ * Stock: Total size of array
+ */
+ u16b stock_size = 0;
+
+ /**
+ * Stock: Actual stock items
+ */
+ std::vector<object_type> stock;
+};