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
found_treasure(treasure)
click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 16 def found_treasure(treasure) damaged_treasure = Treasure.new(treasure.name, treasure.points / 2.0 ) super(damaged_treasure) end
w00t()
click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 11 def w00t @health += @boost_factor super end