blob: 5fb4ac7f4b4a115490e8abd41cac8c87608cf302 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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;
};
|