Symphony Of Empires
Economy::Trade Struct Referencefinal

#include <trade.hpp>

Classes

struct  Vertex
 

Public Member Functions

void recalculate (const World &world)
 
float get_trade_cost (const Province &province1, const Province &province2, glm::vec2 world_size) const
 

Public Attributes

std::vector< ProvinceIdcost_eval
 Cost-evaluatable provinces, we discard sea and ocean provinces from this formula to save space and time since commodities directly transport to the land provinces. More...
 
std::vector< std::vector< float > > trade_costs
 

Detailed Description

Definition at line 34 of file trade.hpp.

Member Function Documentation

◆ get_trade_cost()

float Trade::get_trade_cost ( const Province province1,
const Province province2,
glm::vec2  world_size 
) const

Definition at line 73 of file trade.cpp.

Here is the call graph for this function:

◆ recalculate()

void Trade::recalculate ( const World world)

Do this for now

Do costly right now

Definition at line 38 of file trade.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cost_eval

std::vector<ProvinceId> Economy::Trade::cost_eval

Cost-evaluatable provinces, we discard sea and ocean provinces from this formula to save space and time since commodities directly transport to the land provinces.

Definition at line 52 of file trade.hpp.

◆ trade_costs

std::vector<std::vector<float> > Economy::Trade::trade_costs

Definition at line 53 of file trade.hpp.


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