50 [[nodiscard]]
double density()
const noexcept;
63 void consume(
double amount)
noexcept;
76 void dissolve(
double amount)
noexcept;
81 static constexpr double min_density = 0.50;
84 static constexpr double max_density = 2.00;
87 static constexpr double k = 1e-6;
90 static constexpr double cap = 1e12;
93 double density_ = 1.0;
Collective monetary field in the Chiffres system.
Definition Ether.h:26
static Ether & instance()
Access the unique global instance (Meyers' singleton).
Definition Ether.cpp:5
double density() const noexcept
Get current Ether density.
Definition Ether.cpp:10
void consume(double amount) noexcept
Consume Ether when a gain occurs.
Definition Ether.cpp:14
void dissolve(double amount) noexcept
Dissolve Ether when a loss occurs.
Definition Ether.cpp:19