Exemplo n.º 1
0
  @Override
  public void render(@Nonnull Graphics g) {
    if (performRendering()) {
      super.render(g);

      if (showNumber && (number != null)) {
        number.render(g);
      }
    }
    showHighlight = 0;
  }
Exemplo n.º 2
0
  @Override
  public void update(@Nonnull GameContainer container, int delta) {
    super.update(container, delta);

    if (showNumber && (number != null)) {
      number.addToCamera(getDisplayCoordinate().getX(), getDisplayCoordinate().getY());
      number.updateHeightAndWidth();
      number.setOffset(
          (MapConstants.TILE_W / 2) - number.getHeight() - number.getWidth(),
          -number.getHeight() / 2);
      number.update(container, delta);
    }
  }