19#include <entt/entt.hpp>
40bool PurchaseGood(Universe&
universe, entt::entity agent,
const components::ResourceLedger& purchase);
41bool SellGood(Universe&
universe, entt::entity agent,
const components::ResourceLedger& selling);
45double GetCost(Universe&
universe, entt::entity market,
const components::ResourceLedger& ledger);
Definition: cityactions.cpp:23
entt::entity CreateMarket(Universe &universe)
Creates a market two instance.
Definition: markethelpers.cpp:38
bool 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 resourc...
Definition: markethelpers.cpp:49
void AddParticipant(Universe &universe, entt::entity market_entity, entt::entity entity)
Definition: markethelpers.cpp:24
double GetCost(Universe &universe, entt::entity market, const components::ResourceLedger &ledger)
Definition: markethelpers.cpp:31
bool SellGood(AuctionHouse &auction_house, entt::entity agent, entt::entity good, double price, double quantity)
Sells a good to the market
Definition: auctionhandler.cpp:67
common::Universe * universe
Definition: turnsavewindow.h:3