12345678910111213141516171819202122232425262728293031 |
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-
- package garten.model;
-
- /**
- *
- * @author Jan
- */
- public class Weg extends Gartenkomponente
- {
-
- public int startpositionx,startpositiony,endpositionx,endpositiony;
-
- Weg(int sx, int sy, int ex, int ey)
- {
- startpositionx = sx;
- startpositiony = sy;
- endpositionx = ex;
- endpositiony = ey;
- }
-
- public int [] getKoordinaten()
- {
- int[] temp = {startpositionx,startpositiony,endpositionx,endpositiony};
- return temp;
- }
- }
|