Module: Wackelkoepfe::Playable
- Included in:
- Player
- Defined in:
- lib/Wackelkoepfe/playable.rb
Instance Method Summary collapse
Instance Method Details
#blam ⇒ Object
3 4 5 6 |
# File 'lib/Wackelkoepfe/playable.rb', line 3 def blam self.health -= 10 puts "#{name} hat einen Schlag abbekommen!" end |
#strong? ⇒ Boolean
13 14 15 |
# File 'lib/Wackelkoepfe/playable.rb', line 13 def strong? health > 100 end |
#w00t ⇒ Object
8 9 10 11 |
# File 'lib/Wackelkoepfe/playable.rb', line 8 def w00t @health += 15 puts "#{name} wurde angefeuert!" end |