Module: RubyGame::Playable

Included in:
Players
Defined in:
lib/ruby_game/playable.rb

Instance Method Summary collapse

Instance Method Details

#blammedObject



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

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

#strong?Boolean

Returns:

  • (Boolean)


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

def strong?
    if @health>=60
        true
    else
        false
    end
end

#wootedObject



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

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