added attributes to classes

This commit is contained in:
Flavien Haas 2019-04-08 20:05:58 +02:00
parent 39dbe8a979
commit dfb955ef45
10 changed files with 33 additions and 0 deletions

View File

@ -8,5 +8,7 @@ package modeles;
*
*/
public class Arme extends Objet {
private int pArme;
}

View File

@ -8,5 +8,7 @@ package modeles;
*
*/
public class Armure extends Objet {
private int pArmure;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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