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 | Public Attributes | Private Attributes | List of all members
cqsp::common::components::MarketInformation Struct Reference

Historical information about the market Might change this to a different type of resource ledger so that we don't have so many lookups More...

#include <economy.h>

Inheritance diagram for cqsp::common::components::MarketInformation:
cqsp::common::components::Market

Public Member Functions

void ResetLedgers ()
 
ResourceLedgersupply ()
 
ResourceLedgerdemand ()
 
ResourceLedgerprevious_supply ()
 
ResourceLedgerprevious_demand ()
 

Public Attributes

ResourceLedger sd_ratio
 
ResourceLedger ds_ratio
 
ResourceLedger volume
 The amount of goods that changed hands. We can use this to calculate the GDP More...
 
ResourceLedger price
 
ResourceLedger latent_supply
 
ResourceLedger last_latent_demand
 
ResourceLedger latent_demand
 
ResourceLedger supply_difference
 
ResourceLedger chronic_shortages
 

Private Attributes

ResourceLedger _demand
 
ResourceLedger _supply
 
ResourceLedger _previous_demand
 
ResourceLedger _previous_supply
 
bool current = true
 

Detailed Description

Historical information about the market Might change this to a different type of resource ledger so that we don't have so many lookups

Member Function Documentation

◆ demand()

ResourceLedger & cqsp::common::components::MarketInformation::demand ( )
inline

◆ previous_demand()

ResourceLedger & cqsp::common::components::MarketInformation::previous_demand ( )
inline

◆ previous_supply()

ResourceLedger & cqsp::common::components::MarketInformation::previous_supply ( )
inline

◆ ResetLedgers()

void cqsp::common::components::MarketInformation::ResetLedgers ( )
inline

◆ supply()

ResourceLedger & cqsp::common::components::MarketInformation::supply ( )
inline

Member Data Documentation

◆ _demand

ResourceLedger cqsp::common::components::MarketInformation::_demand
private

◆ _previous_demand

ResourceLedger cqsp::common::components::MarketInformation::_previous_demand
private

◆ _previous_supply

ResourceLedger cqsp::common::components::MarketInformation::_previous_supply
private

◆ _supply

ResourceLedger cqsp::common::components::MarketInformation::_supply
private

◆ chronic_shortages

ResourceLedger cqsp::common::components::MarketInformation::chronic_shortages

◆ current

bool cqsp::common::components::MarketInformation::current = true
private

◆ ds_ratio

ResourceLedger cqsp::common::components::MarketInformation::ds_ratio

◆ last_latent_demand

ResourceLedger cqsp::common::components::MarketInformation::last_latent_demand

◆ latent_demand

ResourceLedger cqsp::common::components::MarketInformation::latent_demand

◆ latent_supply

ResourceLedger cqsp::common::components::MarketInformation::latent_supply

◆ price

ResourceLedger cqsp::common::components::MarketInformation::price

◆ sd_ratio

ResourceLedger cqsp::common::components::MarketInformation::sd_ratio

◆ supply_difference

ResourceLedger cqsp::common::components::MarketInformation::supply_difference

◆ volume

ResourceLedger cqsp::common::components::MarketInformation::volume

The amount of goods that changed hands. We can use this to calculate the GDP


The documentation for this struct was generated from the following file: