Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Marcado como comentário os logs #8

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/fila.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ inline void Queue<T>::push(const T element, bool& check){
size++;
aux = NULL;
check = true;
SDL_Log("Tentativa de push em Queue; R: %c", check ? 's' : 'n');
// SDL_Log("Tentativa de push em Queue; R: %c", check ? 's' : 'n');
}

template<class T>
Expand Down
2 changes: 1 addition & 1 deletion include/freecell.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void FreeCell::setupItens() {
this->event.addStack(&this->p_i[i]);
}

SDL_Log("\n\n\tInsercoes do setup finalizadas\n\n");
//SDL_Log("\n\n\tInsercoes do setup finalizadas\n\n");
}

void FreeCell::update() {
Expand Down
2 changes: 1 addition & 1 deletion include/pilha.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ inline void Stack<T>::push(const T element, bool& check){
header.previous = aux;
size++;
check = true;
SDL_Log("Tentativa de push em Stack; R: %c", check ? 's' : 'n');
// SDL_Log("Tentativa de push em Stack; R: %c", check ? 's' : 'n');
}

template<class T>
Expand Down
2 changes: 1 addition & 1 deletion include/pilha_auxiliar.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void PilhaAuxiliar::pushChild(const Carta pushValue, bool& check) {
check = true;
} else
check = false;
SDL_Log("Tentativa de pushChild em PilhaAuxiliar; R: %c", check ? 's' : 'n');
// SDL_Log("Tentativa de pushChild em PilhaAuxiliar; R: %c", check ? 's' : 'n');
}

bool PilhaAuxiliar::canBeMoved(Carta * c) const {
Expand Down
4 changes: 2 additions & 2 deletions include/pilha_definitiva.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void PilhaDefinitiva::pushChild(const Carta pushValue, bool& check) {
check = true;
} else
check = false;
SDL_Log("Tentativa de pushChild em PilhaDefinitiva; R: %c", check ? 's' : 'n');
// SDL_Log("Tentativa de pushChild em PilhaDefinitiva; R: %c", check ? 's' : 'n');
}

bool PilhaDefinitiva::setTexture(SDL_Renderer* renderer) {
Expand All @@ -61,7 +61,7 @@ bool PilhaDefinitiva::canBeMoved(Carta * c) const {
}

bool PilhaDefinitiva::canPush(Carta c1, Carta c2) const {
SDL_Log("Tentativa de canPush em PilhaDefinitiva; R: %c", (c1.getValue() + 1 == c2.getValue() && c1.getSuit() == c2.getSuit()) ? 's' : 'n');
// SDL_Log("Tentativa de canPush em PilhaDefinitiva; R: %c", (c1.getValue() + 1 == c2.getValue() && c1.getSuit() == c2.getSuit()) ? 's' : 'n');
return (c1.getValue() + 1 == c2.getValue() && c1.getSuit() == c2.getSuit());
}

Expand Down
2 changes: 1 addition & 1 deletion include/pilha_inteligente.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PilhaInteligente : public Stack<Carta> {
PilhaInteligente();
virtual void pushChild(Carta c, bool& check) {
this->push(c, check);
SDL_Log("Tentativa de pushChild em PilhaInteligente; R: %c", check ? 's' : 'n');
// SDL_Log("Tentativa de pushChild em PilhaInteligente; R: %c", check ? 's' : 'n');
};
SDL_Point getCoord() const { return this->coord; };
bool setTexture(SDL_Renderer*);
Expand Down
4 changes: 2 additions & 2 deletions include/pilha_intermediaria.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PilhaIntermediaria : public PilhaInteligente {
};

void PilhaIntermediaria::pushChild(const Carta pushValue, bool& check) {
SDL_Log("%i%c > %i%c", this->peek()->previous->previous->value.getValue(), this->peek()->previous->previous->value.getSuit(), pushValue.getValue(), pushValue.getSuit());
// SDL_Log("%i%c > %i%c", this->peek()->previous->previous->value.getValue(), this->peek()->previous->previous->value.getSuit(), pushValue.getValue(), pushValue.getSuit());
if (this->isEmpty()) {
Node<Carta>* aux = new(Node<Carta>);
aux->value = pushValue;
Expand All @@ -34,7 +34,7 @@ void PilhaIntermediaria::pushChild(const Carta pushValue, bool& check) {
check = true;
} else
check = false;
SDL_Log("Tentativa de pushChild em PilhaIntermediaria; R: %c", check ? 's' : 'n');
// SDL_Log("Tentativa de pushChild em PilhaIntermediaria; R: %c", check ? 's' : 'n');
}

bool PilhaIntermediaria::canBeMoved(Carta * c) const {
Expand Down
2 changes: 1 addition & 1 deletion src/eventmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ void EventManager::mouseLeftUp() {
if (this->stack_joining)
this->stack_joining->pushChild(card_temp, abc);

SDL_Log("%s %s", abc ? "ok" : "!ok", this->stack_joining ? "target" : "!target");
// SDL_Log("%s %s", abc ? "ok" : "!ok", this->stack_joining ? "target" : "!target");
if (!this->stack_joining || !abc)
this->previous_stack->push(card_temp, abc);
}
Expand Down
2 changes: 1 addition & 1 deletion src/pilha_inteligente.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ bool PilhaInteligente::canBeMoved(Carta * c) const {
}

bool PilhaInteligente::canPush(Carta c1, Carta c2) const {
SDL_Log("Tentativa de canPush em PilhaInteligente; R: %c", true ? 's' : 'n');
// SDL_Log("Tentativa de canPush em PilhaInteligente; R: %c", true ? 's' : 'n');
return true;
}