forked from jaildesigner-jailgames/jaildoctors_dilemma
Eliminados todos los std:: del código
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user