class StudioGame::ClumsyPlayer

Attributes

boost[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 7
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 12
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 17
def w00t
  @boost.times { super }
end