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.
|
#include <economy.h>
Public Member Functions | |
void | AddSupply (const ResourceLedger &stockpile) |
void | AddSupply (const ResourceLedger &stockpile, double multiplier) |
void | AddDemand (const ResourceLedger &stockpile) |
void | AddDemand (const ResourceLedger &stockpile, double multiplier) |
double | GetPrice (const ResourceLedger &stockpile) |
double | GetPrice (const entt::entity &good) |
double | GetSDRatio (const entt::entity &good) |
double | GetSupply (const entt::entity &good) |
double | GetDemand (const entt::entity &good) |
void | AddParticipant (entt::entity participant) |
MarketElementInformation & | operator[] (entt::entity ent) |
auto | begin () |
auto | end () |
Public Attributes | |
std::vector< MarketInformation > | history |
std::map< entt::entity, MarketElementInformation > | market_information |
std::map< entt::entity, MarketElementInformation > | last_market_information |
std::set< entt::entity > | participants |
entt::basic_sparse_set< entt::entity > | connected_markets |
double | GDP = 0 |
Public Attributes inherited from cqsp::common::components::MarketInformation | |
ResourceLedger | demand |
ResourceLedger | sd_ratio |
ResourceLedger | ds_ratio |
ResourceLedger | supply |
ResourceLedger | volume |
The amount of goods that changed hands. We can use this to calculate the GDP More... | |
ResourceLedger | price |
ResourceLedger | previous_demand |
ResourceLedger | previous_supply |
ResourceLedger | latent_supply |
ResourceLedger | last_latent_demand |
ResourceLedger | latent_demand |
void Market::AddDemand | ( | const ResourceLedger & | stockpile | ) |
void Market::AddDemand | ( | const ResourceLedger & | stockpile, |
double | multiplier | ||
) |
|
inline |
void Market::AddSupply | ( | const ResourceLedger & | stockpile | ) |
void Market::AddSupply | ( | const ResourceLedger & | stockpile, |
double | multiplier | ||
) |
|
inline |
|
inline |
double Market::GetDemand | ( | const entt::entity & | good | ) |
double Market::GetPrice | ( | const entt::entity & | good | ) |
double Market::GetPrice | ( | const ResourceLedger & | stockpile | ) |
double Market::GetSDRatio | ( | const entt::entity & | good | ) |
double Market::GetSupply | ( | const entt::entity & | good | ) |
|
inline |
entt::basic_sparse_set<entt::entity> cqsp::common::components::Market::connected_markets |
double cqsp::common::components::Market::GDP = 0 |
std::vector<MarketInformation> cqsp::common::components::Market::history |
std::map<entt::entity, MarketElementInformation> cqsp::common::components::Market::last_market_information |
std::map<entt::entity, MarketElementInformation> cqsp::common::components::Market::market_information |
std::set<entt::entity> cqsp::common::components::Market::participants |