Symphony Of Empires
economy.cpp File Reference
#include <algorithm>
#include <cstdio>
#include <map>
#include <tbb/blocked_range.h>
#include <tbb/concurrent_vector.h>
#include <tbb/parallel_for.h>
#include <tbb/combinable.h>
#include <glm/gtx/compatibility.hpp>
#include "eng3d/log.hpp"
#include "eng3d/serializer.hpp"
#include "eng3d/rand.hpp"
#include "action.hpp"
#include "server/economy.hpp"
#include "world.hpp"
#include "server/server_network.hpp"
#include "product.hpp"
#include "emigration.hpp"
Include dependency graph for economy.cpp:

Go to the source code of this file.

Classes

struct  PopNeed
 
struct  NewUnit
 

Functions

constexpr auto scale_speed (auto c, auto target)
 
void update_pop_needs (World &world, Province &province, std::vector< PopNeed > &pop_needs, float &state_payment)
 Calculate the budget that we spend on each needs. More...
 
std::vector< Economy::Marketinit_markets (const World &world)
 
void update_markets (const World &world, std::vector< Economy::Market > markets)
 

Function Documentation

◆ init_markets()

std::vector<Economy::Market> init_markets ( const World world)

Definition at line 256 of file economy.cpp.

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

◆ scale_speed()

constexpr auto scale_speed ( auto  c,
auto  target 
)
constexpr

Definition at line 73 of file economy.cpp.

◆ update_markets()

void update_markets ( const World world,
std::vector< Economy::Market markets 
)

Definition at line 277 of file economy.cpp.

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

◆ update_pop_needs()

void update_pop_needs ( World world,
Province province,
std::vector< PopNeed > &  pop_needs,
float &  state_payment 
)

Calculate the budget that we spend on each needs.

Definition at line 220 of file economy.cpp.