class StudioGame::ClumsyPlayer

Attributes

boost_factor[R]

Public Class Methods

new(name, health, boost_factor) click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 10
def initialize(name, health, boost_factor)
    super(name, health)
    @boost_factor = boost_factor
end

Public Instance Methods

found_treasure(treasure) click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 19
def found_treasure(treasure)
    damaged_treasure = Treasure.new(treasure.name, treasure.points / 2)
    super(damaged_treasure)
end
w00t() click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 15
def w00t
    @boost_factor.times { super }
end