Ant Farm - Robert Glen Martin
School for the Talented and Gifted
Dallas I.S.D.

Class Cake

java.lang.Object
  extended by info.gridworld.actor.Actor
      extended by Food
          extended by Cake
All Implemented Interfaces:
Processable

public class Cake
extends Food

A Cake sits around and waits for a WorkerAnt to get food from it. It does not act.


Field Summary
private static int BITE
          The size of a bite
 
Constructor Summary
Cake()
          Constructs a Cake actor.
 
Method Summary
 
Methods inherited from class Food
act, process, toString
 
Methods inherited from class info.gridworld.actor.Actor
getColor, getDirection, getGrid, getLocation, moveTo, putSelfInGrid, removeSelfFromGrid, setColor, setDirection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BITE

private static final int BITE
The size of a bite

See Also:
Constant Field Values
Constructor Detail

Cake

public Cake()
Constructs a Cake actor. The Cake.gif is displayed for this actor without tinting.


© 2007 Robert Glen Martin.
All rights reserved.