class StudioGame::ClumsyPlayer
Attributes
boost[R]
Public Class Methods
new(name, health=100, boost)
click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 7 def initialize(name, health=100, boost) super(name, health) @boost = boost end
Public Instance Methods
found_treasure(treasure)
click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 11 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 16 def w00t @boost.times do super end end