/* Copyright 2001 Michael R. Wick */ package Factories; import Shapes.*; import java.util.*; import java.awt.Point; import java.awt.Color; import Util.*; public abstract class ShapeFactory { protected final int MIN_SHAPE_SIZE; protected final int MAX_SHAPE_SIZE; protected final int WIDTH; protected static Randomizer r = new Randomizer(); public ShapeFactory(int w) { WIDTH = w; MIN_SHAPE_SIZE = ((int)(0.10 * WIDTH)); MAX_SHAPE_SIZE = ((int)(0.20 * WIDTH)); } public abstract Shape createShape(); }