Koronggenerálás kész.

This commit is contained in:
pp
2021-10-21 12:58:10 +02:00
parent fdc2b18bd7
commit 1b14e32589
3 changed files with 26 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ public class Rud {
this.szin = szin;
this.szelesseg = szelesseg;
this.magassag = magassag;
korongok = new ArrayList<Korong>();
}
public Rud(Rectangle tlap) {
@@ -26,7 +27,14 @@ public class Rud {
this.szin = (Color)tlap.getFill();
this.szelesseg = tlap.getWidth();
this.magassag = tlap.getHeight();
korongok = new ArrayList<Korong>();
}
public void addKorong(Korong k) {
//TODO ellen<65>rizni, hogy ne legyen nagyobb a korong a legfels<6C>n<EFBFBD>l
korongok.add(k);
}
public Color getSzin() {
return szin;