eliminar entrades legacy del fitxer de mapa
This commit is contained in:
@@ -38,8 +38,6 @@ class Room {
|
||||
struct Data {
|
||||
std::string number;
|
||||
Uint8 bg_color{0};
|
||||
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;
|
||||
@@ -49,7 +47,6 @@ class Room {
|
||||
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;
|
||||
std::vector<Enemy::Data> enemies;
|
||||
@@ -84,12 +81,10 @@ class Room {
|
||||
auto getPlatformManager() -> PlatformManager* { return platform_manager_.get(); }
|
||||
auto getKeyManager() -> KeyManager* { return key_manager_.get(); }
|
||||
auto getDoorManager() -> DoorManager* { return door_manager_.get(); }
|
||||
void setItemColors(Uint8 color1, Uint8 color2);
|
||||
void setTile(int index, int tile_value);
|
||||
void setCollisionTile(int index, int value);
|
||||
void setConnection(Border border, const std::string& room_name);
|
||||
void setTileSet(const std::string& tile_set_file);
|
||||
void setConveyorBeltDirection(int direction);
|
||||
[[nodiscard]] auto getTileSetWidth() const -> int { return tile_set_width_; }
|
||||
#endif
|
||||
void update(float delta_time);
|
||||
@@ -100,7 +95,6 @@ class Room {
|
||||
void tryUnlockDoors(const SDL_FRect& player_rect);
|
||||
auto checkPlayerOnPlatform(const SDL_FRect& player_collider, float player_vy) -> MovingPlatform*;
|
||||
void setPaused(bool value);
|
||||
[[nodiscard]] auto getConveyorBeltDirection() const -> int { return conveyor_belt_direction_; }
|
||||
[[nodiscard]] auto getTileCollider() const -> const TileCollider&;
|
||||
[[nodiscard]] auto getCollisionTileMap() const -> const std::vector<int>&;
|
||||
void updateCollisionBorders(const CollisionMap::AdjacentData& adjacent);
|
||||
@@ -125,8 +119,6 @@ class Room {
|
||||
|
||||
std::string number_;
|
||||
Uint8 bg_color_{0};
|
||||
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_;
|
||||
@@ -135,7 +127,6 @@ class Room {
|
||||
std::string tile_set_file_;
|
||||
std::string music_;
|
||||
std::vector<int> tile_map_;
|
||||
int conveyor_belt_direction_{0};
|
||||
bool is_paused_{false};
|
||||
int tile_set_width_{0};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user