Viewing file: comp249/assignment1/Locomote.java | Back to directory listing
Author: Loren Segal | Last modified: February 21 2006 12:00 am | Download

 
/**
 * Locomotion controls the Widgets ability to move.
 * 
 * @author Loren Segal
 * @version 1.0
 */
 
public interface Locomote
{
    /**
     * How far the Widget can move
     * 
     * @return  movement length in meters
     */
    public int howFar();
    
    /**
     * Locomotion type of the Widget
     * 
     * @return the type of locomotion produced by Widget
     */
    public String style();
}