From 26395f76508b21d1bd0f4981ba868d30b7b24b41 Mon Sep 17 00:00:00 2001 From: general Date: Wed, 25 Oct 2017 21:09:22 -0500 Subject: [PATCH] Se compara la variable useImagen = falso en el if, y el programa compila mostrando las caras vectoriales. --- Patrones/src/common/PaintableFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Patrones/src/common/PaintableFactory.java b/Patrones/src/common/PaintableFactory.java index f44d8b8..b108884 100644 --- a/Patrones/src/common/PaintableFactory.java +++ b/Patrones/src/common/PaintableFactory.java @@ -9,10 +9,12 @@ public class PaintableFactory { private boolean useImage = true; public Paintable create(int x1, int y1, int x2, int y2, int state) { - if (useImage) { + if (useImage=false) { return new ImageFace(x1, y1, x2, y2, state); } else { return new DrawnFace(x1, y1, x2, y2, state); } + + // Se compara la variable useImagen = falso en el if, y el programa compila mostrando las caras vectoriales. } }