module StudioGame::Playable
Public Instance Methods
blam()
click to toggle source
# File lib/studio_game/playable.rb, line 8 def blam puts "Oh! #{name} was blamed :(" self.health -= 10 end
score()
click to toggle source
# File lib/studio_game/playable.rb, line 13 def score self.health + points end
status()
click to toggle source
# File lib/studio_game/playable.rb, line 17 def status strong? ? "#{name} is still standing." : "#{name} is out blammed." end
strong?()
click to toggle source
# File lib/studio_game/playable.rb, line 21 def strong? health > 150 end
w00t()
click to toggle source
# File lib/studio_game/playable.rb, line 3 def w00t puts "#{name} was w00ted, Yeah!!!" self.health += 15 end