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.
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
20#include "core/components/pid.h"
22
23namespace cqsp::core::components {
25 uint64_t population;
30 uint64_t labor_force;
31 uint64_t employed_amount = 0;
32 uint64_t unemployment_rate = 0;
33 // Just an index for the amount of marginal propensity that we want to consume...
36 // Years of education?
37 // Helps increase our expertise faster
38 double education = 12;
41
42 // Spending last tick
43 double spending;
44 double income;
45 // How much percent of their income they will will put towards savings
46 double saving_ratio = 0.1;
47
48 double average_wage = 0;
49};
50
51struct Hunger {};
52} // namespace cqsp::core::components
Definition: area.h:27
Definition: population.h:51
Definition: pid.h:28
PID sol_pid
Definition: population.h:39
PopulationLabor labor
Definition: population.h:40
double saving_ratio
Definition: population.h:46
uint64_t labor_force
Definition: population.h:30
uint64_t employed_amount
Definition: population.h:31
double education
Definition: population.h:38
uint64_t population
Definition: population.h:25
uint64_t unemployment_rate
Definition: population.h:32
double average_wage
Definition: population.h:48
double consumer_confidence
Definition: population.h:35
double standard_of_living
Definition: population.h:34
double spending
Definition: population.h:43
double income
Definition: population.h:44