Module: StudioGame::Playable

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

Instance Method Summary collapse

Instance Method Details

#high_fiveObject



8
9
10
11
# File 'lib/studio_game/Playable.rb', line 8

def high_five
puts "#{name} just got a high-five! Awesome!"
self.health += 15
end

#shartObject



3
4
5
6
# File 'lib/studio_game/Playable.rb', line 3

def shart
puts "#{name} sharted! How embarassing!"
self.health -= 10
end

#strong?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/studio_game/Playable.rb', line 13

def strong?
health > 100
end