#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"
Go to the source code of this file.
◆ init_markets()
◆ scale_speed()
constexpr auto scale_speed |
( |
auto |
c, |
|
|
auto |
target |
|
) |
| |
|
constexpr |
◆ update_markets()
◆ 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.