Module: StudioGame::Playable
- Included in:
- Player
- Defined in:
- lib/studio_game/playable.rb
Overview
includes shared playable behavior
Instance Method Summary collapse
Instance Method Details
#boost ⇒ Object
10 11 12 |
# File 'lib/studio_game/playable.rb', line 10 def boost self.health += 15 end |
#drain ⇒ Object
6 7 8 |
# File 'lib/studio_game/playable.rb', line 6 def drain self.health -= 10 end |