Commit 95943e6a authored by Aroubate Hamza's avatar Aroubate Hamza
Browse files

Update...

Update ITIAdventure/src/fr/insarouen/asi/prog/asiaventure/elements/Entite.java, ITIAdventure/src/fr/insarouen/asi/prog/asiaventure/Monde.java, ITIAdventure/src/ClassMain.java files
parents
package fr.insarouen.asi.prog.asiaventure.elements;
import fr.insarouen.asi.prog.asiaventure.*;
public class Entite {
private String nom;
private Monde monde;
public Entite(String nom, Monde monde){
this.nom = nom;
this.monde = monde;
}
public String getNom(){
return this.nom;
}
public Monde getMonde(){
return this.monde;
}
public boolean equals(Object o){
if (o == null || o.getClass()!=this.getClass()){
return false;
}
Entite e = (Entite) o;
return nom.equals(e.nom) && monde.equals(e.monde);
}
public String toString(){
return "Nom : "+this.nom;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment