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.
Projet_JAVA_PMT_STRI1A/JAVA/PROJET-PMT_STRI1A/src/modeles/EtreVivant.java

113 lines
1.6 KiB
Java

/**
*
*/
package modeles;
/**
* @author Nicolas
*
*/
public class EtreVivant {
private String nom;
protected int pVieMax;
protected int pVie;
private int pAttaque;
protected Salle salle;
private boolean vivant;
/**
* @param nom
* @param pVieMax
* @param pVie
* @param pAttaque
* @param salle
* @param vivant
*/
public EtreVivant() {
}
public EtreVivant(String nom, int pVieMax, int pAttaque,Salle salle) {
super();
this.nom = nom;
this.pVieMax = pVieMax;
this.pVie = pVieMax;
this.pAttaque = pAttaque;
this.salle=salle;
this.vivant = true;
}
/**
* @return the nom
*/
public String getNom() {
return nom;
}
/**
* @param nom the nom to set
*/
/**
* @return the pVieMax
*/
public int getpVieMax() {
return pVieMax;
}
/**
* @param pVieMax the pVieMax to set
*/
public void setpVieMax(int pVieMax) {
this.pVieMax = pVieMax;
}
/**
* @return the pVie
*/
public int getpVie() {
return pVie;
}
/**
* @param pVie the pVie to set
*/
public void setpVie(int pVie) {
this.pVie = pVie;
}
/**
* @return the pAttaque
*/
public int getpAttaque() {
return pAttaque;
}
/**
* @param pAttaque the pAttaque to set
*/
public void setpAttaque(int pAttaque) {
this.pAttaque = pAttaque;
}
/**
* @return the salle
public Salle getSalle() {
return salle;
}
public void setSalle(Salle salle) {
this.salle = salle;
}
*/
/**
* @return the vivant
*/
public boolean isVivant() {
return vivant;
}
/**
* @param vivant the vivant to set
*/
public void setVivant(boolean vivant) {
this.vivant = vivant;
}
public int getPvMax() {
return this.pVieMax;
}
}