示例#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);
      }
    }
  }
示例#2
0
 @Override
 public void performLogic(int frameDelta) {
   lastFrameDelta = frameDelta;
   super.performLogic(frameDelta);
 }