diff options
author | Manoj Srivastava <srivasta@debian.org> | 2016-01-27 13:11:31 -0800 |
---|---|---|
committer | Manoj Srivastava <srivasta@debian.org> | 2016-01-27 13:11:31 -0800 |
commit | 02819db3483514d49df7ec3f7e372b5aeb831466 (patch) | |
tree | 6a86adac74beac293bc688dafcfa1709a6476901 /src/store_type.hpp | |
parent | 2a61dffe127e22c1aaf955db6f085ac2eefbebba (diff) | |
parent | 6f6de67c70fd98815088ce49f046f48f88ea35bd (diff) |
Merge branch 'upstream'
Signed-off-by: Manoj Srivastava <srivasta@debian.org>
# Conflicts:
# src/CMakeLists.txt
# src/config.h
# src/lua/llimits.h
Diffstat (limited to 'src/store_type.hpp')
-rw-r--r-- | src/store_type.hpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/store_type.hpp b/src/store_type.hpp new file mode 100644 index 00000000..e3f917ac --- /dev/null +++ b/src/store_type.hpp @@ -0,0 +1,43 @@ +#pragma once + +#include "h-basic.h" +#include "object_type.hpp" + +/** + * 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; + + /** + * Owner index + */ + u16b owner; + + /** + * Closed until this turn. + */ + s32b store_open; + + /** + * Last visited on this turn. + */ + s32b last_visit; + + /** + * Stock: Number of entries. + */ + byte stock_num; + + /** + * Stock: Total size of array + */ + s16b stock_size; + + /** + * Stock: Actual stock items + */ + object_type *stock; +}; |