Class AntHill

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

public class AntHill
extends greenfoot.Actor

A hill full of ants.

Version:
1.0.1
Author:
Michael Kolling

Constructor Summary
AntHill()
           
AntHill(int numberOfAnts)
           
 
Method Summary
 void act()
           
 void countFood()
          Record that we have collected another bit of food.
 
Methods inherited from class greenfoot.Actor
addedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, 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

AntHill

public AntHill()

AntHill

public AntHill(int numberOfAnts)
Method Detail

act

public void act()
Overrides:
act in class greenfoot.Actor

countFood

public void countFood()
Record that we have collected another bit of food.