// WARNING: This file is auto-generated and any changes to it will be overwritten import lang.stride.*; import java.util.*; import greenfoot.*; /** * */ public class Waldfrucht extends Actor { private String name; private int gewicht; /** * */ public Waldfrucht(String name, int gewicht, String hintergrundbilddateiname) { this.name = name; this.gewicht = gewicht; this.setImage(hintergrundbilddateiname); } /** * Act - tut, was auch immer Frucht tun will. Diese Methode wird aufgerufen, sobald der 'Act' oder 'Run' Button in der Umgebung angeklickt werden. */ public void act() { } /** * */ public String getName() { return this.name; } /** * */ public int getGewicht() { return this.gewicht; } }