summaryrefslogtreecommitdiff
path: root/src/town_type.hpp
blob: 738f4bec9fba9e26dd7ee79bbff4475917cd3b46 (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
#pragma once

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

#include <vector>

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

	seed_t seed = seed_t::system();  /* Seed for RNG */

	std::vector<store_type> store;           /* The stores [max_st_idx] */

	byte flags = 0;                          /* Town flags */

	bool stocked = false;                   /* Is the town actualy stocked ? */

	bool destroyed = false;                 /* Is the town destroyed? */
};