-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Agregado un excel para que veamos todos, issue #3
- Loading branch information
1 parent
cb8adb6
commit 85b655a
Showing
4 changed files
with
33 additions
and
36 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.modelo.acciones.flor; | ||
|
||
public class FlorNoQuiero extends FlorDecorator{ | ||
|
||
public FlorNoQuiero(AccionFlor accionDecorar) { | ||
super(accionDecorar); | ||
} | ||
|
||
public int cantar(){ | ||
if (esFlorComun()){ | ||
return super.cantar() - 2; | ||
} else if (esContraFlor()){ | ||
return super.cantar() - 2; | ||
} else { // ContraFlor al Resto | ||
return super.cantar() - 29; | ||
} | ||
} | ||
|
||
private boolean esFlorComun(){ | ||
return super.cantar() == 3; | ||
} | ||
|
||
private boolean esContraFlor(){ | ||
return super.cantar() == 6; | ||
} | ||
} |