You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
476 B
Java

/**
*
*/
package modeles;
/**
* @author Nicolas
*
*/
public class Monstre extends EtreVivant {
/**
* @param arme
* @param armure
* @param bourse
*/
public Monstre(String nom,int pVimax, int pAttaque) {
super(nom, pVimax, pAttaque);
}
public int attaquer(Personnage def) {
int pAttaqueLoc;
pAttaqueLoc=this.getpAttaque()-(def.getArmure().getpArmure());
def.pVie=pAttaqueLoc;
return pAttaqueLoc;
}
}