예제 #1
0
 public Bullet(double x, double y) {
   super(new Image("/Shoot.png"));
   animating = new SpitzLaserWeaponAnimateStrategy();
   setViewport(animating.getCurrentView());
   setTranslateX(x); // Initial Location
   setTranslateY(y); // Initial Location
 }
예제 #2
0
 public void update() {
   this.setViewport(animating.getCurrentView());
   handle();
 }
예제 #3
0
 @Override
 public Rectangle2D getCurrentView() {
   return animating.getCurrentView();
 }
예제 #4
0
 @Override
 public void handle() {
   animating.handle();
 }