using namespace std en todos los ficheros

This commit is contained in:
2023-05-23 17:40:12 +02:00
parent 5a5bbf7f73
commit c31bfc6cae
15 changed files with 218 additions and 197 deletions

View File

@@ -39,7 +39,7 @@ void Debug::render()
for (auto s : slot)
{
text->write(x, y, s);
w = (std::max(w, (int)s.length()));
w = (max(w, (int)s.length()));
y += text->getCharacterSize() + 1;
if (y > 192 - text->getCharacterSize())
{
@@ -64,7 +64,7 @@ void Debug::setPos(SDL_Point p)
}
// Añade un texto para mostrar
void Debug::add(std::string text)
void Debug::add(string text)
{
slot.push_back(text);
}
@@ -76,7 +76,7 @@ void Debug::clear()
}
// Añade un texto para mostrar en el apartado log
void Debug::addToLog(std::string text)
void Debug::addToLog(string text)
{
log.push_back(text);
}