Module: Playable

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

Instance Method Summary collapse

Instance Method Details

#blamObject



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

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

#strong?Boolean

Returns:

  • (Boolean)


12
13
14
15
16
17
18
# File 'lib/playable.rb', line 12

def strong?
  if @health >100
    return true
  else
    return false
  end
end

#w00tObject



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

def w00t
  @health = @health + 15
  puts "#{name} got w00ted!!"
  @health
end