Heres marge.class, but i need to put the wanted code in Mikrobe.class right?
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Homer here. * * @author (your name) * @version (a version number or a date) */ public class Marge extends Opfer { private static final double WALKING_SPEED = 5.0; /** * Act - do whatever the Homer wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { { if ( atWorldEdge() ) { turn(35); } if ( Greenfoot.getRandomNumber(100) <10 ) { turn(5); } heal(); move(); meetMikrobe(); if(meetMikrobe()) { if (Greenfoot.getRandomNumber(100)<50) { getsick(); } } } } public boolean meetMikrobe() { Actor Mikrobe = getOneObjectAtOffset(0, 0, Mikrobe.class) ; if(Mikrobe != null) { return true; } else { return false; } } public void getsick() { setImage("ORIGINAL MARGE KRANK.gif"); } public void heal() { if (canSee(Retter.class)) { setImage("ORIGINAL MARGE.gif"); } } }