Class Gras

java.lang.Object
  extended by greenfoot.Actor
      extended by Gras

public class Gras
extends greenfoot.Actor

Gras - eine Klasse für das Gras. Das Attribut "zustand" soll beschreiben, wie gut gewachsen das Gras ist.

Version:
16.2.2007
Author:
Ralf Punkenburg

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

Gras

public Gras()
Method Detail

act

public void act()
Description copied from class: greenfoot.Actor
The act method is called by the greenfoot framework to give objects a chance to perform some action. At each action step in the environment, each object's act method is invoked, in unspecified order. This method does nothing. It should be overridden in subclasses to implement an object's action.

Overrides:
act in class greenfoot.Actor

aufessen

public void aufessen()

essbar

public boolean essbar()
Gras ist nur essbar, wenn es gut gewachsen ist