summaryrefslogtreecommitdiff
path: root/src/alloc.hpp
blob: 1b0ede47b91e2d9309195c080a4ead1af17a37e0 (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
#pragma once

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

#include <vector>

/**
 * Allocations of object kinds and monster races.
 */
struct Alloc {

	/*
	 * The entries in the "kind allocator table"
	 */
	std::vector<alloc_entry> kind_table;

	/*
	 * The flag to tell if kind_table contains valid entries
	 * for normal (i.e. kind_is_legal) object allocation
	 */
	bool kind_table_valid = false;

	/*
	 * The entries in the "race allocator table"
	 */
	std::vector<alloc_entry> race_table;

};