Eliminados todos los std:: del código

This commit is contained in:
2023-09-16 12:44:40 +02:00
parent 71be364141
commit 4a2d27dc59
35 changed files with 539 additions and 504 deletions

View File

@@ -7,7 +7,7 @@ ItemTracker::~ItemTracker()
}
// Comprueba si el objeto ya ha sido cogido
bool ItemTracker::hasBeenPicked(std::string name, SDL_Point pos)
bool ItemTracker::hasBeenPicked(string name, SDL_Point pos)
{
bool success = false;
@@ -26,7 +26,7 @@ bool ItemTracker::hasBeenPicked(std::string name, SDL_Point pos)
}
// Añade el objeto a la lista de objetos cogidos
void ItemTracker::addItem(std::string name, SDL_Point pos)
void ItemTracker::addItem(string name, SDL_Point pos)
{
// Comprueba si el objeto no ha sido recogido con anterioridad
if (!hasBeenPicked(name, pos))
@@ -50,7 +50,7 @@ void ItemTracker::addItem(std::string name, SDL_Point pos)
}
// Busca una entrada en la lista por nombre
int ItemTracker::findByName(std::string name)
int ItemTracker::findByName(string name)
{
int i = 0;
@@ -71,7 +71,7 @@ int ItemTracker::findByPos(int index, SDL_Point pos)
{
int i = 0;
for (auto l:list[index].pos)
for (auto l : list[index].pos)
{
if ((l.x == pos.x) && (l.y == pos.y))
{