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.

Beet.java 583B

12345678910111213141516171819202122232425262728293031
  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 Beet extends Gartenkomponente
  12. {
  13. int laenge;
  14. int breite;
  15. public Beet(int x, int y,int laenge, int breite)
  16. {
  17. positionx = x;
  18. positiony = y;
  19. this.laenge = laenge;
  20. this.breite = breite;
  21. }
  22. public int [] getKoordinaten()
  23. {
  24. int[] temp = {positionx,positiony,laenge,breite};
  25. return temp;
  26. }
  27. }