Chiffres
Chiffres is a sentient economic system where value is alive. Certain in circulation, it mutates at rest in a cosmic gamble influenced by ethical actions and natural cycles. It's a currency that remembers its past, reacts to the collective present, and bets on the future.
Loading...
Searching...
No Matches
Ether.h
1#pragma once
2#include <algorithm>
3
4namespace Chiffres {
5
26 class Ether {
27 public:
37 static Ether &instance();
38
50 [[nodiscard]] double density() const noexcept;
51
63 void consume(double amount) noexcept;
64
76 void dissolve(double amount) noexcept;
77
78 private:
79
81 static constexpr double min_density = 0.50;
82
84 static constexpr double max_density = 2.00;
85
87 static constexpr double k = 1e-6;
88
90 static constexpr double cap = 1e12;
91
93 double density_ = 1.0;
94 };
95}
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