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.
Namespaces | Functions
markethelpers.cpp File Reference
#include "common/actions/economy/markethelpers.h"
#include "common/components/economy.h"
#include "common/components/history.h"

Namespaces

namespace  cqsp
 
namespace  cqsp::common
 
namespace  cqsp::common::actions
 

Functions

void cqsp::common::actions::AddParticipant (Universe &universe, entt::entity market_entity, entt::entity entity)
 
double cqsp::common::actions::GetCost (Universe &universe, entt::entity market, const components::ResourceLedger &ledger)
 
entt::entity cqsp::common::actions::CreateMarket (Universe &universe)
 Creates a market two instance. More...
 
void cqsp::common::actions::CreateMarket (Universe &universe, entt::entity market)
 
bool cqsp::common::actions::PurchaseGood (Universe &universe, entt::entity agent, const components::ResourceLedger &purchase)
 Note: This will only buy the maximum resources that are in the market. If there aren't enough resources on the market, then we buy all the remaining resources on the market. You'll have to calculate how much you want later on More...
 
bool cqsp::common::actions::SellGood (Universe &universe, entt::entity agent, const components::ResourceLedger &selling)