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.h File Reference
#include <entt/entt.hpp>
#include "core/components/resource.h"
#include "core/universe.h"

Go to the source code of this file.

Namespaces

namespace  cqsp
 
namespace  cqsp::core
 
namespace  cqsp::core::actions
 

Functions

Node cqsp::core::actions::CreateMarket (Universe &universe)
 Creates a market two instance. More...
 
bool cqsp::core::actions::PurchaseGood (Node &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::core::actions::SellGood (Node &agent, const components::ResourceLedger &selling)
 
void cqsp::core::actions::AddParticipant (Node &market_node, Node &participant)
 
double cqsp::core::actions::GetCost (Node &market, const components::ResourceLedger &ledger)