public static void attract(Beam beam, Point point, double force) { // Calculate the effect of a force of attraction on a beam. // Update the motion of the beam. }
public Laser(int sprite, double x, double y, double velocity, double direction) { this.sprite = sprite; this.beam = new Beam(x,y,velocity,direction); }