class TankHealth < Health
  RESPAWN_DELAY = 5000
  attr_accessor :health

  def initialize(object, object_pool)
    super(object, object_pool, 100, true)
  end

  def should_respawn?
    Gosu.milliseconds - @death_time > RESPAWN_DELAY
  end

  protected

  def draw?
    true
  end

  def after_death
    @death_time = Gosu.milliseconds
    object.reset_modifiers
    Thread.new do
      sleep(rand(0.1..0.3))
      Explosion.new(@object_pool, x, y)
    end
  end
end

class TankHealth < Health
  RESPAWN_DELAY = 5000
  attr_accessor :health

  def initialize(object, object_pool)
    super(object, object_pool, 100, true)
  end

  def should_respawn?
    Gosu.milliseconds - @death_time > RESPAWN_DELAY
  end

  protected

  def draw?
    true
  end

  def after_death
    object.reset_modifiers
    @death_time = Gosu.milliseconds
    Thread.new do
      sleep(rand(0.1..0.3))
      Explosion.new(@object_pool, x, y)
    end
  end
end

Rearrange code to look better
Rearrange code to look better
