An object isn't a person.

This commit is contained in:
aminecmi 2015-01-27 18:50:32 +01:00
parent edbbbcb4f0
commit 24e620c8c6

View File

@ -3,17 +3,79 @@ package Objets;
import Cases.CaseAbstraite;
import Person.Personnage;
public abstract class ObjetAbstrait extends Personnage {
public abstract class ObjetAbstrait {
protected CaseAbstraite caseCourante;
protected Personnage perso;
protected String nom;
protected double pointsDeVie;
protected double force;
protected double vitesse;
Personnage perso;
CaseAbstraite positionCourante;
String nom;
protected ObjetAbstrait(String name) {
this.nom = name;
this.pointsDeVie = 100;
this.force = 10;
this.vitesse = 1;
protected ObjetAbstrait(String name, double lifePoint, double strength,
double speed) {
super(name, lifePoint, strength, speed);
// TODO Auto-generated constructor stub
this.perso = null;
this.caseCourante = null;
}
protected ObjetAbstrait(String name, double lifePoint, double strength, double speed) {
this.nom = name;
this.pointsDeVie=lifePoint;
this.force=strength;
this.vitesse=speed;
this.caseCourante=null;
this.perso = null;
}
public CaseAbstraite getCaseCourante() {
return caseCourante;
}
public void setCaseCourante(CaseAbstraite caseCourante) {
this.caseCourante = caseCourante;
}
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
public double getPointsDeVie() {
return pointsDeVie;
}
public void setPointsDeVie(double pointsDeVie) {
this.pointsDeVie = pointsDeVie;
}
public double getForce() {
return force;
}
public void setForce(double force) {
this.force = force;
}
public double getVitesse() {
return vitesse;
}
public void setVitesse(double vitesse) {
this.vitesse = vitesse;
}
public Personnage getPerso() {
return perso;
}
public void setPerso(Personnage perso) {
this.perso = perso;
}
}