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 Beet extends Gartenkomponente
- {
- int laenge;
- int breite;
-
- public Beet(int x, int y,int laenge, int breite)
- {
- positionx = x;
- positiony = y;
- this.laenge = laenge;
- this.breite = breite;
- }
- public int [] getKoordinaten()
- {
- int[] temp = {positionx,positiony,laenge,breite};
- return temp;
- }
-
- }
|