Skip to content

Commit

Permalink
Se compara la variable useImagen = falso en el if, y el programa comp…
Browse files Browse the repository at this point in the history
…ila mostrando las caras vectoriales.
  • Loading branch information
general committed Oct 26, 2017
1 parent f0c8aa0 commit 26395f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Patrones/src/common/PaintableFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
}

0 comments on commit 26395f7

Please sign in to comment.