Advertisement
Guest User

kjhfs

a guest
Feb 16th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public Joueur(String nom, String prenom, int age, Pokemon[] equipe)
  2. {
  3. this.nom=nom;
  4. this.prenom=prenom;
  5. this.age=age;
  6. //Ici il conserve son equipe
  7. this.equipe=equipe;
  8. for(int i = 0; i < equipe.length ; i++)
  9. {
  10. if(null != equipe[i]) //Pas si le pokemon est null
  11. equipe[i].setMonJoueur(this);
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement