Example #1
0
  @Override
  public void destroy() {

    if (armor > 0) {
      armor--;
    } else {
      super.destroy();
    }

    // super.destroy();
  }
Example #2
0
  public String enemyTankPosition() {
    int x = enemyTank.getX() / 64;
    int y = enemyTank.getY() / 64;

    return x + "_" + y;
  }