Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
science.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2023 Conquer Space
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <map>
20#include <set>
21#include <string>
22#include <vector>
23
24#include <entt/entt.hpp>
25
27
29struct Field {
30 std::vector<entt::entity> parents; // Should probably changed to a set
31 std::vector<entt::entity> adjacent; // same
32};
33
34// A scientific research
35struct Science {
37 std::vector<entt::entity> fields;
38};
39
40struct Lab {
42};
43
46};
47
49
51 // the int is the number of ticks left
52 std::map<entt::entity, int> current_research;
53
54 std::set<entt::entity> potential_research;
55};
56
58 std::set<entt::entity> researched_techs;
59 // A recipe that has been unlocked? Idk how this should work
60 std::set<entt::entity> researched_recipes;
61 std::set<entt::entity> researched_mining;
62};
63
64struct Technology {
65 std::set<entt::entity> fields;
66 std::vector<std::string> actions;
67
69};
70} // namespace cqsp::common::components::science
Definition: science.h:28
std::vector< entt::entity > parents
Definition: science.h:30
std::vector< entt::entity > adjacent
Definition: science.h:31
ResourceLedger science_contribution
Definition: science.h:41
std::vector< entt::entity > fields
Definition: science.h:37
int difficulty
Definition: science.h:36
ResourceLedger science_progress
Definition: science.h:45
std::map< entt::entity, int > current_research
Definition: science.h:52
std::set< entt::entity > potential_research
Definition: science.h:54
std::set< entt::entity > researched_mining
Definition: science.h:61
std::set< entt::entity > researched_recipes
Definition: science.h:60
std::set< entt::entity > researched_techs
Definition: science.h:58
std::set< entt::entity > fields
Definition: science.h:65
int difficulty
Definition: science.h:68
std::vector< std::string > actions
Definition: science.h:66