fase 2 de zones
This commit is contained in:
@@ -44,7 +44,11 @@ class Room {
|
||||
std::string lower_room;
|
||||
std::string left_room;
|
||||
std::string right_room;
|
||||
std::string tile_set_file;
|
||||
std::string zone; // Nombre de la zona a la que pertenece
|
||||
std::string tile_set_file; // Resuelto: zona o override del yaml
|
||||
std::string music; // Resuelto: zona o override del yaml
|
||||
bool tile_set_overridden{false}; // True si el yaml tenía tileSetFile explícito
|
||||
bool music_overridden{false}; // True si el yaml tenía music explícito
|
||||
int conveyor_belt_direction{0};
|
||||
std::vector<int> tile_map;
|
||||
std::vector<int> collision_tile_map;
|
||||
@@ -62,6 +66,9 @@ class Room {
|
||||
// --- Funciones ---
|
||||
[[nodiscard]] auto getNumber() const -> const std::string& { return number_; }
|
||||
[[nodiscard]] auto getBGColor() const -> Uint8 { return bg_color_; }
|
||||
[[nodiscard]] auto getZone() const -> const std::string& { return zone_; }
|
||||
[[nodiscard]] auto getMusic() const -> const std::string& { return music_; }
|
||||
[[nodiscard]] auto getTileSetFile() const -> const std::string& { return tile_set_file_; }
|
||||
void renderMap();
|
||||
void renderEnemies();
|
||||
void renderPlatforms();
|
||||
@@ -83,7 +90,6 @@ class Room {
|
||||
void setConnection(Border border, const std::string& room_name);
|
||||
void setTileSet(const std::string& tile_set_file);
|
||||
void setConveyorBeltDirection(int direction);
|
||||
[[nodiscard]] auto getTileSetFile() const -> const std::string& { return tile_set_file_; }
|
||||
[[nodiscard]] auto getTileSetWidth() const -> int { return tile_set_width_; }
|
||||
#endif
|
||||
void update(float delta_time);
|
||||
@@ -125,7 +131,9 @@ class Room {
|
||||
std::string lower_room_;
|
||||
std::string left_room_;
|
||||
std::string right_room_;
|
||||
std::string zone_;
|
||||
std::string tile_set_file_;
|
||||
std::string music_;
|
||||
std::vector<int> tile_map_;
|
||||
int conveyor_belt_direction_{0};
|
||||
bool is_paused_{false};
|
||||
|
||||
Reference in New Issue
Block a user