summaryrefslogtreecommitdiff
path: root/src/game.hpp
blob: 845824b7144f9ca145d5cbf58f2d8508000f2cb1 (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
#pragma once

#include "game_fwd.hpp"

#include "game_edit_data.hpp"
#include "grid.hpp"
#include "h-basic.h"
#include "player_defs.hpp"
#include "skill_type.hpp"
#include "wilderness_map.hpp"

/**
 * All structures for the game itself.
 */
struct Game {

	/**
	 * Wilderness map
	 */
	grid<wilderness_map> wilderness;

	/**
	 * Player's un-adjusted HP at every level.
	 * Stored to avoid shenanigans with draininging levels
	 * and restoring them back, &c.
	 */
	std::array<s16b, PY_MAX_LEVEL> player_hp { };

	/**
	 * Game edit data
	 */
	GameEditData edit_data;

	/**
	 * Current skill values.
	 */
	std::vector<skill_type> s_info;

};