Skip to content

Commit

Permalink
clase Fantasma. prueba de push)
Browse files Browse the repository at this point in the history
  • Loading branch information
JEDNOK committed May 12, 2023
1 parent 70ffe40 commit dec6d50
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Modelo/Fantasma.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package Modelo;

public class Fantasma extends Pokemon {

public Fantasma (int i) {
super(i);
}


@Override
public boolean recibeAtaqueEfectivo(String pTipo) {
return (pTipo.equals("Planta") || pTipo.equals("Electrico")||pTipo.equals("Tierra") );
}

@Override
public boolean recibeAtaquePocoEfectivo(String pTipo) {
return (pTipo.equals("Fuego") || pTipo.equals("Volador") || pTipo.equals("Veneno") || pTipo.equals("Hielo"));
}

}

0 comments on commit dec6d50

Please sign in to comment.