treballant en Player: abans d'entrar a moveOnSlope()

This commit is contained in:
2025-11-14 12:54:59 +01:00
parent 29e0daffb0
commit 7f51f02d96
6 changed files with 67 additions and 93 deletions

View File

@@ -246,6 +246,11 @@ auto Room::checkRightSlopes(const SDL_FPoint& p) -> bool {
return collision_map_->checkRightSlopes(p);
}
// Obtiene puntero a slope en un punto
auto Room::getSlopeAtPoint(const SDL_FPoint& p) const -> const LineDiagonal* {
return collision_map_->getSlopeAtPoint(p);
}
// Carga las variables desde un fichero de mapa (delegado a RoomLoader)
auto Room::loadRoomFile(const std::string& file_path, bool verbose) -> Data {