Module: Playable

Included in:
DryGame::Player
Defined in:
lib/dry_game/playable.rb

Instance Method Summary collapse

Instance Method Details

#blamObject



3
4
5
6
# File 'lib/dry_game/playable.rb', line 3

def blam
  @health -= 10
 puts  "#@name got blammed"
end

#strong?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/dry_game/playable.rb', line 13

def strong?
  @health > 100
end

#wootObject



8
9
10
11
# File 'lib/dry_game/playable.rb', line 8

def woot
  @health += 15
  puts "#@name got wooted"
end