module StudioGame::Playable

Public Instance Methods

<=>(other) click to toggle source
# File lib/studio_game/playable.rb, line 22
def <=>(other)
  other.score <=> score
end
blam() click to toggle source
# File lib/studio_game/playable.rb, line 9
def blam 
  puts "#{name} got blammed!"
  self.health -= 10
end
score() click to toggle source
# File lib/studio_game/playable.rb, line 14
def score
  health + points
end
strong?() click to toggle source
# File lib/studio_game/playable.rb, line 18
def strong? 
  health > 100 #don't think that I need to use self.health here, since it just seems like it's reading the health value.
end
w00t() click to toggle source
# File lib/studio_game/playable.rb, line 4
def w00t
  puts "#{name} got w00ted!"
  self.health += 15
end