class StudioGame::ClumsyPlayer

Public Class Methods

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

Public Instance Methods

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