added attributes to classes
This commit is contained in:
parent
39dbe8a979
commit
dfb955ef45
Binary file not shown.
@ -8,5 +8,7 @@ package modeles;
|
||||
*
|
||||
*/
|
||||
public class Arme extends Objet {
|
||||
|
||||
private int pArme;
|
||||
|
||||
}
|
||||
|
@ -8,5 +8,7 @@ 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;
|
||||
|
||||
}
|
||||
|
12
JAVA/PROJET-PMT_STRI1A/src/test/Test.java
Normal file
12
JAVA/PROJET-PMT_STRI1A/src/test/Test.java
Normal file
@ -0,0 +1,12 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package test;
|
||||
|
||||
/**
|
||||
* @author flavien
|
||||
*
|
||||
*/
|
||||
public class Test {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user