java.lang.Objectgreenfoot.Actor
Gras
public class Gras
Gras - eine Klasse für das Gras. Das Attribut "zustand" soll beschreiben, wie gut gewachsen das Gras ist.
Constructor Summary | |
---|---|
Gras()
|
Method Summary | |
---|---|
void |
act()
The act method is called by the greenfoot framework to give objects a chance to perform some action. |
void |
aufessen()
|
boolean |
essbar()
Gras ist nur essbar, wenn es gut gewachsen ist |
Methods inherited from class greenfoot.Actor |
---|
addedToWorld, getHeight, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWidth, getWorld, getX, getY, intersects, setImage, setImage, setLocation, setRotation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Gras()
Method Detail |
---|
public void act()
greenfoot.Actor
act
in class greenfoot.Actor
public void aufessen()
public boolean essbar()