public class TomatoPile
extends greenfoot.Actor
| Constructor and Description |
|---|
TomatoPile(int tomatoes)
Create a pile of a given number of tomatoes.
|
| Modifier and Type | Method and Description |
|---|---|
<A> java.util.List<A> |
getIntersectingObjects(java.lang.Class<A> cls) |
void |
takeOne()
Remove a tomato from this pile.
|
act, addedToWorld, getImage, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWorld, getWorldOfType, getX, getY, intersects, isAtEdge, isTouching, move, removeTouching, setImage, setImage, setLocation, setRotation, turn, turnTowardspublic TomatoPile(int tomatoes)
public <A> java.util.List<A> getIntersectingObjects(java.lang.Class<A> cls)
getIntersectingObjects in class greenfoot.Actorpublic void takeOne()