/** * Konstruktor der Klasse Goodies * * @param posx x-Position des Goodies * @param posy y-Position des Goodies * @param goodieType Typ des Goodies (goodie1 = heart, goodie2 = shield, usw) * @param goodieAmount Betrag des Goodies (für Credits) */ private Goodies(int posx, int posy, String goodieType, int goodieAmount) { // valid = true; x = posx; y = posy; type = goodieType; img = getImageOfType(type); imgSizeX = img.getWidth(null); imgSizeY = img.getHeight(null); tag = "goodie" + marker; amount = goodieAmount; DisplayManager.displayImage(img, x, y, tag); }