summaryrefslogtreecommitdiff
path: root/src/town_type.hpp
blob: 7758f7fd194f5c2fe5d072079f6d22d553666f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "h-basic.h"
#include "store_type_fwd.hpp"

/**
 * Town descriptor.
 */
struct town_type
{
	cptr name = nullptr;

	u32b seed = 0;                           /* Seed for RNG */

	store_type *store = nullptr;             /* The stores [max_st_idx] */
	byte numstores = 0;

	byte flags = 0;                          /* Town flags */

	bool_ stocked = FALSE;                   /* Is the town actualy stocked ? */

	bool_ destroyed = FALSE;                 /* Is the town destroyed? */
};