Skip to content

Commit

Permalink
#4 En Patrones, en el paquete common, dentro del archivo PaintableFac…
Browse files Browse the repository at this point in the history
…tory.java se hace un cambio en la linea 13 ya que el if no tiene condicion por lo que se le asigna a useImage = false
  • Loading branch information
general committed Oct 26, 2017
1 parent 12979fe commit 9c3a7b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Patrones/src/common/PaintableFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public class PaintableFactory {
private boolean useImage = true;

public Paintable create(int x1, int y1, int x2, int y2, int state) {
if (useImage) {
//Se le asigna la condicion al if ya que no contenia dicha condicion y generaba error
if (useImage = false) {
return new ImageFace(x1, y1, x2, y2, state);
} else {
return new DrawnFace(x1, y1, x2, y2, state);
Expand Down

0 comments on commit 9c3a7b3

Please sign in to comment.