Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Joueur(String nom, String prenom, int age, Pokemon[] equipe)
- {
- this.nom=nom;
- this.prenom=prenom;
- this.age=age;
- //Ici il conserve son equipe
- this.equipe=equipe;
- for(int i = 0; i < equipe.length ; i++)
- {
- if(null != equipe[i]) //Pas si le pokemon est null
- equipe[i].setMonJoueur(this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement