Module: StudioGame::Playable

Included in:
Player
Defined in:
lib/studio_game/playable.rb

Instance Method Summary collapse

Instance Method Details

#blamObject



24
25
26
27
# File 'lib/studio_game/playable.rb', line 24

def blam
  self.health -= 10
  puts "#{name} got blammed!"
end

#strong?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/studio_game/playable.rb', line 29

def strong?
  self.health > 100
end

#w00tObject



19
20
21
22
# File 'lib/studio_game/playable.rb', line 19

def w00t
  self.health += 15
  puts "#{name} got w00ted!"
end