ccdf4c5ad0ef4b44d8c9277b030b81e65f968b13
2 * Copyright (c) 2002 Erik Rasmussen - All Rights Reserved
4 package appletbots
.gatherers
;
6 import appletbots
.CarriableObject
;
11 * The class represents a piece of food in the appletbots world
13 * @author Erik Rasmussen
15 public class Food
extends CarriableObject
18 * Constructs a food with the given size (radius), maxSpeed, mass, and
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
);