fix: corregida logica per obrir i entrar a la jail. ja no mira el nom de la habitacio sino el numero

This commit is contained in:
2026-03-29 12:58:32 +02:00
parent f5a82229fe
commit 1bb2142d19
9 changed files with 73 additions and 41 deletions

View File

@@ -61,6 +61,7 @@ class Room {
~Room(); // NOLINT(modernize-use-equals-default, performance-trivially-destructible) -- defined in .cpp for unique_ptr with forward declarations
// --- Funciones ---
[[nodiscard]] auto getNumber() const -> const std::string& { return number_; } // Devuelve el numero de la habitación
[[nodiscard]] auto getName() const -> const std::string& { return name_; } // Devuelve el nombre de la habitación
[[nodiscard]] auto getBGColor() const -> Uint8 { return stringToColor(bg_color_); } // Devuelve el color de la habitación
[[nodiscard]] auto getBorderColor() const -> Uint8 { return stringToColor(border_color_); } // Devuelve el color del borde