Estandaritzant noms segons convencions

This commit is contained in:
2024-10-10 20:27:31 +02:00
parent 9e5f41644e
commit d6c3c89872
67 changed files with 1457 additions and 1504 deletions

View File

@@ -48,9 +48,9 @@ void Item::allignTo(int x)
{
posX = float(x - (width / 2));
if (posX < param.game.playArea.rect.x)
if (posX < param.game.play_area.rect.x)
{
posX = param.game.playArea.rect.x + 1;
posX = param.game.play_area.rect.x + 1;
}
else if ((posX + width) > playArea->w)
{
@@ -95,7 +95,7 @@ void Item::move()
velY += accelY;
// Si queda fuera de pantalla, corregimos su posición y cambiamos su sentido
if ((posX < param.game.playArea.rect.x) || (posX + width > playArea->w))
if ((posX < param.game.play_area.rect.x) || (posX + width > playArea->w))
{
// Corregir posición
posX -= velX;
@@ -105,10 +105,10 @@ void Item::move()
}
// Si se sale por arriba rebota (excepto la maquina de café)
if ((posY < param.game.playArea.rect.y) && !(kind == ITEM_COFFEE_MACHINE))
if ((posY < param.game.play_area.rect.y) && !(kind == ITEM_COFFEE_MACHINE))
{
// Corrige
posY = param.game.playArea.rect.y;
posY = param.game.play_area.rect.y;
// Invierte el sentido
velY = -velY;
@@ -203,7 +203,7 @@ bool Item::isEnabled()
}
// Obtiene el circulo de colisión
circle_t &Item::getCollider()
Circle &Item::getCollider()
{
return collider;
}