Koronggenerálás kész.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user