Esempio n. 1
0
 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.
 }
Esempio n. 2
0
 public Laser(int sprite, double x, double y, double velocity, double direction)
 {
     this.sprite = sprite;
     this.beam = new Beam(x,y,velocity,direction);
 }