Module: Playable
- Included in:
- DryGame::Player
- Defined in:
- lib/dry_game/playable.rb
Instance Method Summary collapse
Instance Method Details
#blam ⇒ Object
3 4 5 6 |
# File 'lib/dry_game/playable.rb', line 3 def blam @health -= 10 puts "#@name got blammed" end |
#strong? ⇒ Boolean
13 14 15 |
# File 'lib/dry_game/playable.rb', line 13 def strong? @health > 100 end |
#woot ⇒ Object
8 9 10 11 |
# File 'lib/dry_game/playable.rb', line 8 def woot @health += 15 puts "#@name got wooted" end |