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.

Weg.java 635B

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 Weg extends Gartenkomponente
  12. {
  13. public int startpositionx,startpositiony,endpositionx,endpositiony;
  14. Weg(int sx, int sy, int ex, int ey)
  15. {
  16. startpositionx = sx;
  17. startpositiony = sy;
  18. endpositionx = ex;
  19. endpositiony = ey;
  20. }
  21. public int [] getKoordinaten()
  22. {
  23. int[] temp = {startpositionx,startpositiony,endpositionx,endpositiony};
  24. return temp;
  25. }
  26. }