You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Gaertner2.java 664B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package garten.model;
  7. /**
  8. *
  9. * @author Jan
  10. */
  11. public class Gaertner2
  12. {
  13. private static int tempx,
  14. tempy,
  15. alter,
  16. startlaenge;
  17. public Gaertner2(int tempx,int tempy,int alter,int startlaenge)
  18. {
  19. this.tempx = tempx;
  20. this.tempy = tempy;
  21. this.alter = alter;
  22. this.startlaenge = startlaenge;
  23. }
  24. public Pflanze pflanzen()
  25. {
  26. return new Pflanze2(tempx, tempy, alter,startlaenge);
  27. }
  28. }