forked from fiuba/algo3_proyecto_base_tp2
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Agregamos clase Fiera e interfaz Afectante. Caso de uso 3.
Co-authored-by: mariagalindez <mgalindez@fi.uba.ar> Co-authored-by: SairBarreto <gbarreto@fi.uba.ar>
- Loading branch information
1 parent
0c79ef4
commit 8bbb71f
Showing
4 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
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,5 @@ | ||
package edu.fiuba.algo3.modelo; | ||
|
||
public interface Afectante { | ||
public void afectar(Jugador jugador); | ||
} |
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
11 changes: 11 additions & 0 deletions
11
src/main/java/edu/fiuba/algo3/modelo/afectantes/Fiera.java
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,11 @@ | ||
package edu.fiuba.algo3.modelo.afectantes; | ||
|
||
import edu.fiuba.algo3.modelo.Afectante; | ||
import edu.fiuba.algo3.modelo.Jugador; | ||
|
||
public class Fiera implements Afectante { | ||
|
||
public void afectar(Jugador jugador) { | ||
jugador.recibirDanio(20); | ||
} | ||
} |
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