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 | List of all members
cqsp::common::components::AuctionHouse Struct Reference

#include <auction.h>

Public Member Functions

void AddSellOrder (entt::entity good, Order &&order)
 
void AddBuyOrder (entt::entity good, Order &&order)
 
double GetDemand (entt::entity good)
 
double GetSupply (entt::entity good)
 

Public Attributes

std::map< entt::entity, DescendingSortedOrderListsell_orders
 
std::map< entt::entity, AscendingSortedOrderListbuy_orders
 

Member Function Documentation

◆ AddBuyOrder()

void cqsp::common::components::AuctionHouse::AddBuyOrder ( entt::entity  good,
Order &&  order 
)
inline

◆ AddSellOrder()

void cqsp::common::components::AuctionHouse::AddSellOrder ( entt::entity  good,
Order &&  order 
)
inline

◆ GetDemand()

double cqsp::common::components::AuctionHouse::GetDemand ( entt::entity  good)
inline

◆ GetSupply()

double cqsp::common::components::AuctionHouse::GetSupply ( entt::entity  good)
inline

Member Data Documentation

◆ buy_orders

std::map<entt::entity, AscendingSortedOrderList> cqsp::common::components::AuctionHouse::buy_orders

◆ sell_orders

std::map<entt::entity, DescendingSortedOrderList> cqsp::common::components::AuctionHouse::sell_orders

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