class StudioGame::ClumsyPlayer

Attributes

boost_factor[R]

Public Class Methods

new(name, health = 100, boost=1) click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 5
def initialize (name, health = 100, boost=1)
  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 9
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 13
def w00t
  @boost.times { super }
end