org.holtz.zoe
Class Joule

java.lang.Object
  extended by java.util.Observable
      extended by org.holtz.zoe.ZObject
          extended by org.holtz.zoe.Joule

public class Joule
extends ZObject

A pellet of edible energy in a World.

Author:
Brian Holtz

Field Summary
 double joules
           
 
Fields inherited from class org.holtz.zoe.ZObject
id, world
 
Constructor Summary
Joule(World theWorld)
           
 
Method Summary
 java.awt.Color color()
           
 void getBit(double bite)
           
 int getNextId()
           
 int getNumEverCreated()
           
 boolean isGone()
           
 double mass()
           
 
Methods inherited from class org.holtz.zoe.ZObject
bearing, bearing, brownianMotion, evaluate, getContext, location, move, range, range, repaint, setContext, setXY, x, y
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

joules

public double joules
Constructor Detail

Joule

public Joule(World theWorld)
Method Detail

mass

public double mass()
Specified by:
mass in class ZObject

color

public java.awt.Color color()
Specified by:
color in class ZObject

isGone

public boolean isGone()
Overrides:
isGone in class ZObject

getBit

public void getBit(double bite)

getNextId

public int getNextId()
Specified by:
getNextId in class ZObject

getNumEverCreated

public int getNumEverCreated()
Specified by:
getNumEverCreated in class ZObject