module StudioGame::Playable

Public Instance Methods

heal() click to toggle source
# File lib/studio_game/playable.rb, line 8
def heal
  @health += 15
  puts "\t#{self.name} has been healed!"
end
hit() click to toggle source
# File lib/studio_game/playable.rb, line 3
def hit
  self.health -= 10
  puts "\t#{self.name} got hit!"
end
strong?() click to toggle source
# File lib/studio_game/playable.rb, line 13
def strong?
  self.health > 100
end