retocs sucosets al minimap
This commit is contained in:
@@ -21,10 +21,11 @@ class Surface;
|
||||
*/
|
||||
class MiniMap {
|
||||
public:
|
||||
MiniMap();
|
||||
explicit MiniMap(Uint8 bg_color = 2, Uint8 conn_color = 14);
|
||||
~MiniMap() = default;
|
||||
|
||||
void render(const std::string& current_room); // Dibuja el minimapa centrado en la room actual
|
||||
void render(const std::string& current_room);
|
||||
void rebuild(Uint8 bg_color, Uint8 conn_color); // Regenera la surface final
|
||||
[[nodiscard]] auto isReady() const -> bool { return !room_positions_.empty(); }
|
||||
|
||||
private:
|
||||
@@ -76,10 +77,10 @@ class MiniMap {
|
||||
static constexpr int PADDING = 4; // Padding alrededor del minimapa
|
||||
|
||||
// Colores del minimapa (índices de paleta)
|
||||
static constexpr Uint8 COLOR_BACKGROUND = 2; // Fondo general (blue, si border es 0 usamos 2)
|
||||
Uint8 bg_color_{2}; // Fondo general (configurable)
|
||||
Uint8 conn_color_{14}; // Líneas de conexión (configurable)
|
||||
static constexpr Uint8 COLOR_ROOM_BORDER = 0; // Borde de cada miniroom
|
||||
static constexpr Uint8 COLOR_SHADOW = 1; // Sombra de cada miniroom
|
||||
static constexpr Uint8 COLOR_CONNECTION = 14; // Líneas de conexión entre rooms
|
||||
};
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
Reference in New Issue
Block a user