Module: StudioGame::Playable

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

Overview

Provides methods for a playable behavior

Instance Method Summary collapse

Instance Method Details

#boostObject



6
7
8
# File 'lib/studio_game/playable.rb', line 6

def boost
  @health += 15
end

#drainObject



10
11
12
# File 'lib/studio_game/playable.rb', line 10

def drain
  @health -= 10
end