From d031e0063ca20f5f777e90fd3b7575dd9ecf7774 Mon Sep 17 00:00:00 2001 From: Alisson Nunes Date: Mon, 11 Dec 2017 19:53:27 -0200 Subject: [PATCH] =?UTF-8?q?Marcado=20como=20coment=C3=A1rio=20os=20logs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/fila.h | 2 +- include/freecell.h | 2 +- include/pilha.h | 2 +- include/pilha_auxiliar.h | 2 +- include/pilha_definitiva.h | 4 ++-- include/pilha_inteligente.h | 2 +- include/pilha_intermediaria.h | 4 ++-- src/eventmanager.cpp | 2 +- src/pilha_inteligente.cpp | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/fila.h b/include/fila.h index 61cc664..8c04d7a 100644 --- a/include/fila.h +++ b/include/fila.h @@ -44,7 +44,7 @@ inline void Queue::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 diff --git a/include/freecell.h b/include/freecell.h index 6a62ed7..189a8ac 100644 --- a/include/freecell.h +++ b/include/freecell.h @@ -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() { diff --git a/include/pilha.h b/include/pilha.h index 4602378..65a03d5 100644 --- a/include/pilha.h +++ b/include/pilha.h @@ -45,7 +45,7 @@ inline void Stack::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 diff --git a/include/pilha_auxiliar.h b/include/pilha_auxiliar.h index 18b3727..634276f 100644 --- a/include/pilha_auxiliar.h +++ b/include/pilha_auxiliar.h @@ -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 { diff --git a/include/pilha_definitiva.h b/include/pilha_definitiva.h index dfe466b..79de3d7 100644 --- a/include/pilha_definitiva.h +++ b/include/pilha_definitiva.h @@ -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) { @@ -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()); } diff --git a/include/pilha_inteligente.h b/include/pilha_inteligente.h index 6fccc1b..60833bc 100644 --- a/include/pilha_inteligente.h +++ b/include/pilha_inteligente.h @@ -19,7 +19,7 @@ class PilhaInteligente : public Stack { 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*); diff --git a/include/pilha_intermediaria.h b/include/pilha_intermediaria.h index 1781390..62beb78 100644 --- a/include/pilha_intermediaria.h +++ b/include/pilha_intermediaria.h @@ -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* aux = new(Node); aux->value = pushValue; @@ -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 { diff --git a/src/eventmanager.cpp b/src/eventmanager.cpp index f9b369f..b207270 100644 --- a/src/eventmanager.cpp +++ b/src/eventmanager.cpp @@ -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); } diff --git a/src/pilha_inteligente.cpp b/src/pilha_inteligente.cpp index 3627f11..1921f11 100644 --- a/src/pilha_inteligente.cpp +++ b/src/pilha_inteligente.cpp @@ -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; }