Commit d5546f44 authored by Aroubate Hamza's avatar Aroubate Hamza
Browse files

Update Monde.java

parent 6f604a5d
package fr.insarouen.asi.prog.asiaventure;
import fr.insarouen.asi.prog.asiaventure.elements.*;
public class Monde {
private String nom;
private Entite[] entite;
public Monde(String nom){
this.nom = nom;
}
public String getNom(){
return this.nom;
}
public Entite[] getEntite(){
return this.entite;
}
public void ajouter(Entite nouvelleEntite){
entite[entite.length-1] = nouvelleEntite;
}
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