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.
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>
21
23// Infrastrucutre provides many benefits
24// Electric grid, roads, railways, water supply, etc.
28 std::vector<entt::entity> power_plants;
29 entt::entity power_grid;
30};
31
32struct PowerPlant {
33 double production;
36};
37
41};
42
43struct PowerGrid {
44};
45
46struct CityPower {
49};
50
51struct BrownOut {};
52
53// The city has a highway that boosts costs?
54struct Highway {
55 int extent;
56};
57
59 // then we should make some construction sector thing?
60 // One capacity represents one day of construction
63 // How much it costs to hire like one construction person
64 // then other stats for construction labor
66};
67} // namespace cqsp::core::components::infrastructure
This is a vector meant for fast iteration
Definition: resourceledger.h:223
Definition: infrastructure.h:22
entt::entity power_grid
Definition: infrastructure.h:29
double improvement
Definition: infrastructure.h:27
std::vector< entt::entity > power_plants
Definition: infrastructure.h:28
double default_purchase_cost
Definition: infrastructure.h:26
double total_power_consumption
Definition: infrastructure.h:48
double total_power_prod
Definition: infrastructure.h:47
uint32_t construction_capacity
Definition: infrastructure.h:61
uint32_t current_construction
Definition: infrastructure.h:62
double construction_cost
Definition: infrastructure.h:65
int extent
Definition: infrastructure.h:55
double maximum_production
Definition: infrastructure.h:34
double production
Definition: infrastructure.h:33
ResourceVector consumption
Definition: infrastructure.h:35
double maximum_production
Definition: infrastructure.h:39
ResourceVector consumption
Definition: infrastructure.h:40