Beispiel #1
0
  @Override
  public void draw(Graphics2D g, ViewRect rect) {
    super.draw(g, rect);

    if (phRoundHandler.get().isRoundOnGoing() && !pointWell.isEmpty()) {
      particle.draw(lastFrameDelta, g, rect);
      if (owned() && particle.isExpired() && pointWell.takePoints(1)) {
        particle.reset();
        shop.addPoints(1);
      }
    }
  }
Beispiel #2
0
 @Override
 public void onRemoved() {
   shop.addPoints(150);
 }