11static constexpr Color
BG_COLOR = {20, 25, 35, 220};
16static constexpr Color
EGG_COLOR = {255, 200, 80, 255};
82 for (
int i = 0; i < 7; i++) {
83 if (res[i] <= 0)
continue;
108 for (
int i = 0; i < 7; i++) {
138 if (tb.width <= 0.0f)
return;
144 _btnW = std::max(
BTN_W,
static_cast<float>(std::max(mFollow, mStop)) + 24.0f);
146 float btnX = tb.x + (tb.width -
_btnW) / 2.0f;
static Color getResourceColor(int resourceIndex)
Returns the designated UI/3D color for a given resource index.
static const char * get(Key key)
static const char * resourceName(int index)
Resource name by index (0–6), matching Resources[] ordering.
static int measure(const std::string &text, int fontSize)
Represents the state of the world in the game, including the map size, tile contents,...
Resources & at(int x, int y)
Accesses the resources at a specific tile coordinate (x, y).
bool playerExists(int id) const
Checks if a player with the given ID exists in the world.
bool eggExists(int id) const
Checks if an egg with the given ID exists in the world.
std::unordered_map< int, Egg > eggs
std::unordered_map< int, Player > players