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.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cqsp::core::systems::SysPopulationConsumption Class Reference

#include <syspopulation.h>

Inheritance diagram for cqsp::core::systems::SysPopulationConsumption:
cqsp::core::systems::ISimulationSystem

Public Member Functions

 SysPopulationConsumption (Game &game)
 
void DoSystem () override
 
void Init () override
 
int Interval () const override
 
- Public Member Functions inherited from cqsp::core::systems::ISimulationSystem
 ISimulationSystem (Game &game)
 
virtual ~ISimulationSystem ()=default
 

Private Member Functions

void ProcessSettlement (Node &settlement, const components::ResourceConsumption &marginal_propensity_base, const components::ResourceConsumption &autonomous_consumption_base, const float savings)
 

Private Attributes

components::ResourceConsumption marginal_propensity_base
 
components::ResourceConsumption autonomous_consumption_base
 
float savings = 0
 
int total_population = 0
 
int total_employed = 0
 
double total_sol = 0
 

Additional Inherited Members

- Protected Member Functions inherited from cqsp::core::systems::ISimulationSystem
GameGetGame ()
 
UniverseGetUniverse ()
 

Constructor & Destructor Documentation

◆ SysPopulationConsumption()

cqsp::core::systems::SysPopulationConsumption::SysPopulationConsumption ( Game game)
inlineexplicit

Member Function Documentation

◆ DoSystem()

void cqsp::core::systems::SysPopulationConsumption::DoSystem ( )
overridevirtual

◆ Init()

void cqsp::core::systems::SysPopulationConsumption::Init ( )
overridevirtual

◆ Interval()

int cqsp::core::systems::SysPopulationConsumption::Interval ( ) const
inlineoverridevirtual

How often is DoSystem is run. It will be run every n number of ticks when the tick becomes a multiple of the number below. The default is 24

Reimplemented from cqsp::core::systems::ISimulationSystem.

◆ ProcessSettlement()

void cqsp::core::systems::SysPopulationConsumption::ProcessSettlement ( Node settlement,
const components::ResourceConsumption marginal_propensity_base,
const components::ResourceConsumption autonomous_consumption_base,
const float  savings 
)
private

Member Data Documentation

◆ autonomous_consumption_base

components::ResourceConsumption cqsp::core::systems::SysPopulationConsumption::autonomous_consumption_base
private

◆ marginal_propensity_base

components::ResourceConsumption cqsp::core::systems::SysPopulationConsumption::marginal_propensity_base
private

◆ savings

float cqsp::core::systems::SysPopulationConsumption::savings = 0
private

◆ total_employed

int cqsp::core::systems::SysPopulationConsumption::total_employed = 0
private

◆ total_population

int cqsp::core::systems::SysPopulationConsumption::total_population = 0
private

◆ total_sol

double cqsp::core::systems::SysPopulationConsumption::total_sol = 0
private

The documentation for this class was generated from the following files: