/* * StickFigure.java * * Created on October 20, 2004, 1:19 PM */ /** * * @author wu_staff */ public class StickFigure implements Moveable{ int a; int q; int v; /** Creates a new instance of StickFigure */ public StickFigure() { } public StickFigure(int a, int q, int v) { this.a = a; this.q = q; this.v = v; } public void move(int dx, int dy) { a = a + dx * 2; q = q + dy * 3; v = 4 * (dx + dy); } }