21222324252627282930
public MovableObject() { /** Default MovableObject has allocated velocity and accel * vectors with a position of 0,0.*/ velocity = new Vector2(); acceleration = new Vector2(); this.x = 0; this.y = 0; }
29303132333435363738
this.y = 0; } public MovableObject(short x, short y) { velocity = new Vector2(); acceleration = new Vector2(); this.x = x; this.y = y; }
383940414243444546
} public MovableObject(short x, short y, Vector2 velocity) { this.velocity = velocity; acceleration = new Vector2(); this.x = x; this.y = y; }