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.
src
common
components
population.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
#include "
common/components/resource.h
"
19
20
namespace
cqsp::common::components
{
21
struct
PopulationSegment
{
22
uint64_t
population
;
27
uint64_t
labor_force
;
28
// Just an index for the amount of marginal propensity that we want to consume...
29
double
standard_of_living
= 0;
30
// How much percent of their income they will will put towards savings
31
double
saving_ratio
= 0.1;
32
};
33
34
struct
Hunger
{};
35
}
// namespace cqsp::common::components
cqsp::common::components
Definition:
area.h:23
resource.h
cqsp::common::components::Hunger
Definition:
population.h:34
cqsp::common::components::PopulationSegment
Definition:
population.h:21
cqsp::common::components::PopulationSegment::standard_of_living
double standard_of_living
Definition:
population.h:29
cqsp::common::components::PopulationSegment::labor_force
uint64_t labor_force
Definition:
population.h:27
cqsp::common::components::PopulationSegment::saving_ratio
double saving_ratio
Definition:
population.h:31
cqsp::common::components::PopulationSegment::population
uint64_t population
Definition:
population.h:22
Generated on Tue Sep 23 2025 06:14:15 for Conquer Space by
1.9.2