ccdf4c5ad0ef4b44d8c9277b030b81e65f968b13
[applet-bots.git] / src / appletbots / gatherers / Food.java
1 /*
2  * Copyright (c) 2002 Erik Rasmussen - All Rights Reserved
3  */
4 package appletbots.gatherers;
5
6 import appletbots.CarriableObject;
7
8 import java.awt.*;
9
10 /**
11  * The class represents a piece of food in the appletbots world
12  *
13  * @author Erik Rasmussen
14  */
15 public class Food extends CarriableObject
16 {
17         /**
18          * Constructs a food with the given size (radius), maxSpeed, mass, and
19          * color.
20          *
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
25          */
26         public Food(final int size, final double maxSpeed, final double mass, final Color color)
27         {
28                 super(mass, maxSpeed, size, color);
29         }
30 }