module BattleRoyal::Playable

Public Instance Methods

damage() click to toggle source
# File lib/battle_royal/playable.rb, line 8
def damage
  self.health -= 10
  puts "\n#{name} got damaged and now has a health of #{health}"
end
power_up() click to toggle source
# File lib/battle_royal/playable.rb, line 3
def power_up
  self.health += 15
  puts "\n#{name} got a power up!"
end
strong?() click to toggle source
# File lib/battle_royal/playable.rb, line 13
def strong?
  self.health >= 100
end