// WARNING: This file is auto-generated and any changes to it will be overwritten import lang.stride.*; import java.util.*; import greenfoot.*; /** * Die Uebungen (mit Loesungen) zu diesem Szenario finden Sie hier: * http://www.informatikzentrale.de/uebungen-foreach-schleife-greenfoot-3.html */ public class Knopf extends Actor { protected Schaltpult welt; /** * Act - do whatever the Knopf wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { if (Greenfoot.mouseClicked(this)) { this.welt.allenTextLoeschen(); this.aktionAusfuehren(); } } /** * */ protected void addedToWorld(World world) { welt = (Schaltpult)this.getWorld(); } /** * */ public void aktionAusfuehren() { } }