import java.awt.Color; /** * Interface that lists useful constants for the display of the * caterpillar in a graphics window */ public interface CaterpillarConstants { // Possible directions for the motion of the caterpillar public static final int NORTH=1; public static final int EAST=2; public static final int WEST=3; public static final int SOUTH=4; // Distance covered by the caterpillar in one move public static final int STEP=10; // Thickness of the caterpillar public static final int CATERPILLAR_WIDTH=6; // Size of the graphics window public static final int WINDOW_HEIGHT=500; public static final int WINDOW_WIDTH=500; // Period of the animation (in ms) public static final int ANIMATION_PERIOD=30; }