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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
infrastructure.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2025 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 <entt/entt.hpp>
20
22// Infrastrucutre provides many benefits
23// Electric grid, roads, railways, water supply, etc.
25 // Different types of infrastructure
26};
27
31};
32
33struct PowerPlant {
34 double production;
35};
36
38 double max;
39 double min;
40 double current;
41};
42
43struct CityPower {
46};
47
48struct BrownOut {};
49
50// The city has a highway that boosts costs?
51struct Highway {
52 int extent;
53};
54} // namespace cqsp::common::components::infrastructure
Definition: infrastructure.h:21
double default_purchase_cost
Definition: infrastructure.h:29
double improvement
Definition: infrastructure.h:30
double total_power_consumption
Definition: infrastructure.h:45
double total_power_prod
Definition: infrastructure.h:44
int extent
Definition: infrastructure.h:52
double current
Definition: infrastructure.h:40
double production
Definition: infrastructure.h:34