lib/strategy_game_backend/behaviours/destructable.rb
# When the destructable has zero primary health, it is destroyed.
When the destructable has zero primary health, it is destroyed.
When the destructable has zero primary health it is destroyed .
def destroyed?
        if @primary_health.nil?
          raise StrategyGameBackend::Behaviours::Destructable::Error,
                "#{self.class.name} has not had its health set. Missing set_initial_health call?"
        end
        @primary_health <= 0
      end
def destroyed? if @primary_health . nil? raise StrategyGameBackend :: Behaviours :: Destructable :: Error , "#{self.class.name} has not had its health set. Missing set_initial_health call?" end @primary_health <= 0 end
When the destructable has zero primary health, it is destroyed.
When the destructable has zero primary health it is destroyed .