granera con sarna no pica
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <string> // Para string
|
||||
#include <vector> // Para vector
|
||||
|
||||
#include "game/defaults.hpp" // Para Defaults::Game::Room
|
||||
#include "game/entities/enemy.hpp" // Para EnemyData
|
||||
#include "game/entities/item.hpp" // Para ItemData
|
||||
#include "game/gameplay/scoreboard.hpp" // Para Scoreboard::Data
|
||||
@@ -31,8 +32,8 @@ class Room {
|
||||
struct Data {
|
||||
std::string number;
|
||||
Uint8 bg_color{0};
|
||||
Uint8 item_color1{12};
|
||||
Uint8 item_color2{6};
|
||||
Uint8 item_color1{Defaults::Game::Room::ITEM_COLOR1};
|
||||
Uint8 item_color2{Defaults::Game::Room::ITEM_COLOR2};
|
||||
std::string upper_room;
|
||||
std::string lower_room;
|
||||
std::string left_room;
|
||||
@@ -61,7 +62,6 @@ class Room {
|
||||
void resetEnemyPositions(const std::vector<Enemy::Data>& enemy_data);
|
||||
auto getEnemyManager() -> EnemyManager* { return enemy_manager_.get(); }
|
||||
auto getItemManager() -> ItemManager* { return item_manager_.get(); }
|
||||
void setBgColor(Uint8 color);
|
||||
void setItemColors(Uint8 color1, Uint8 color2);
|
||||
void setTile(int index, int tile_value);
|
||||
[[nodiscard]] auto getTileSetFile() const -> const std::string& { return tile_set_file_; }
|
||||
@@ -92,8 +92,8 @@ class Room {
|
||||
|
||||
std::string number_;
|
||||
Uint8 bg_color_{0};
|
||||
Uint8 item_color1_{12};
|
||||
Uint8 item_color2_{6};
|
||||
Uint8 item_color1_{Defaults::Game::Room::ITEM_COLOR1};
|
||||
Uint8 item_color2_{Defaults::Game::Room::ITEM_COLOR2};
|
||||
std::string upper_room_;
|
||||
std::string lower_room_;
|
||||
std::string left_room_;
|
||||
|
||||
Reference in New Issue
Block a user