ccdf4c5ad0ef4b44d8c9277b030b81e65f968b13
[applet-bots.git] / src / appletbots / gatherers / Food.java
blobccdf4c5ad0ef4b44d8c9277b030b81e65f968b13
1 /*
2 * Copyright (c) 2002 Erik Rasmussen - All Rights Reserved
3 */
4 package appletbots.gatherers;
6 import appletbots.CarriableObject;
8 import java.awt.*;
10 /**
11 * The class represents a piece of food in the appletbots world
13 * @author Erik Rasmussen
15 public class Food extends CarriableObject
17 /**
18 * Constructs a food with the given size (radius), maxSpeed, mass, and
19 * color.
21 * @param size The radius of the food
22 * @param maxSpeed The maximum speed of the food
23 * @param mass The mass of the food
24 * @param color The color of the food
26 public Food(final int size, final double maxSpeed, final double mass, final Color color)
28 super(mass, maxSpeed, size, color);