Terminado el cálculo de superficies

This commit is contained in:
2022-09-07 22:47:22 +02:00
parent a73c11effa
commit 044cf97857
7 changed files with 139 additions and 57 deletions

View File

@@ -14,6 +14,7 @@ Debug::Debug(SDL_Renderer *renderer, Screen *screen, Asset *asset)
// Inicializa variables
x = 0;
y = 0;
enabled = false;
}
// Destructor
@@ -41,7 +42,7 @@ void Debug::render()
if (y > 192 - text->getCharacterSize())
{
y = this->y;
x += w*text->getCharacterSize() + 2;
x += w * text->getCharacterSize() + 2;
}
}
}
@@ -64,3 +65,21 @@ void Debug::clear()
{
slot.clear();
}
// Establece el valor de la variable
void Debug::setEnabled(bool value)
{
enabled = value;
}
// Obtiene el valor de la variable
bool Debug::getEnabled()
{
return enabled;
}
// Cambia el valor de la variable
void Debug::switchEnabled()
{
enabled = !enabled;
}