forked from jaildesigner-jailgames/jaildoctors_dilemma
style: deixant guapetes les capçaleres de les classes
This commit is contained in:
@@ -26,23 +26,12 @@ Room::Room(const std::string& room_path, std::shared_ptr<ScoreboardData> data)
|
||||
auto room = Resource::get()->getRoom(room_path);
|
||||
initializeRoom(*room);
|
||||
|
||||
// Abre la Jail si se da el caso
|
||||
openTheJail();
|
||||
|
||||
// Inicializa las superficies de colision
|
||||
initRoomSurfaces();
|
||||
|
||||
// Busca los tiles animados
|
||||
setAnimatedTiles();
|
||||
|
||||
// Crea la textura para el mapa de tiles de la habitación
|
||||
map_surface_ = std::make_shared<Surface>(PLAY_AREA_WIDTH, PLAY_AREA_HEIGHT);
|
||||
|
||||
// Pinta el mapa de la habitación en la textura
|
||||
fillMapTexture();
|
||||
|
||||
// Establece el color del borde
|
||||
Screen::get()->setBorderColor(stringToColor(border_color_));
|
||||
openTheJail(); // Abre la Jail si se da el caso
|
||||
initRoomSurfaces(); // Inicializa las superficies de colision
|
||||
setAnimatedTiles(); // Busca los tiles animados
|
||||
map_surface_ = std::make_shared<Surface>(PLAY_AREA_WIDTH, PLAY_AREA_HEIGHT); // Crea la textura para el mapa de tiles de la habitación
|
||||
fillMapTexture(); // Pinta el mapa de la habitación en la textura
|
||||
Screen::get()->setBorderColor(stringToColor(border_color_)); // Establece el color del borde
|
||||
}
|
||||
|
||||
void Room::initializeRoom(const Data& room) {
|
||||
@@ -867,17 +856,8 @@ auto Room::setEnemy(Enemy::Data* enemy, const std::string& key, const std::strin
|
||||
bool success = true;
|
||||
|
||||
try {
|
||||
/*if (key == "tileSetFile") {
|
||||
enemy->surface_path = value;
|
||||
} else */
|
||||
if (key == "animation") {
|
||||
enemy->animation_path = value;
|
||||
/* [DOC:29/10/2025] w i h ja no fan falta, se pilla del .ANI
|
||||
} else if (key == "width") {
|
||||
enemy->w = std::stoi(value);
|
||||
} else if (key == "height") {
|
||||
enemy->h = std::stoi(value);
|
||||
[/DOC] */
|
||||
} else if (key == "x") {
|
||||
enemy->x = std::stof(value) * TILE_SIZE;
|
||||
} else if (key == "y") {
|
||||
|
||||
Reference in New Issue
Block a user