added attributes to classes

master
Flavien Haas 6 years ago
parent 39dbe8a979
commit dfb955ef45

@ -9,4 +9,6 @@ package modeles;
*/
public class Arme extends Objet {
private int pArme;
}

@ -9,4 +9,6 @@ package modeles;
*/
public class Armure extends Objet {
private int pArmure;
}

@ -8,5 +8,6 @@ package modeles;
*
*/
public class Bourse extends Objet {
private int valeur;
}

@ -8,5 +8,10 @@ package modeles;
*
*/
public class EtreVivant {
private int pVieMax;
private int pVie;
private int pAttaque;
private Salle salle;
private boolean vivant;
}

@ -8,5 +8,8 @@ package modeles;
*
*/
public class Objet {
private String nom;
private int prix;
private int usure;
}

@ -8,5 +8,8 @@ package modeles;
*
*/
public class Personnage extends EtreVivant {
private Arme arme;
private Armure armure;
private Bourse bourse;
}

@ -8,5 +8,7 @@ package modeles;
*
*/
public class Porte {
private boolean ouvert;
private char orientation;
}

@ -8,5 +8,8 @@ package modeles;
*
*/
public class Salle {
private int positionX;
private int positionY;
private boolean sortie;
}

@ -0,0 +1,12 @@
/**
*
*/
package test;
/**
* @author flavien
*
*/
public class Test {
}
Loading…
Cancel
Save