|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object appletbots.WorldObject appletbots.CarriableObject appletbots.gatherers.Food
public class Food
The class represents a piece of food in the appletbots world
Field Summary |
---|
Fields inherited from class appletbots.WorldObject |
---|
color, mass, maxSpeed, size |
Constructor Summary | |
---|---|
Food(int size,
double maxSpeed,
double mass,
java.awt.Color color)
Constructs a food with the given size (radius), maxSpeed, mass, and color. |
Method Summary |
---|
Methods inherited from class appletbots.CarriableObject |
---|
getCarriedBy, isCarried, setCarriedBy |
Methods inherited from class appletbots.WorldObject |
---|
collidedWith, getColor, getMass, getMaxSpeed, getSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Food(int size, double maxSpeed, double mass, java.awt.Color color)
size
- The radius of the foodmaxSpeed
- The maximum speed of the foodmass
- The mass of the foodcolor
- The color of the food
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |