class BattleRoyal::LamePlayer
Public Class Methods
new(name, health = 100, boost = 1)
click to toggle source
Calls superclass method
# File lib/battle_royal/lame_player.rb, line 4 def initialize(name, health = 100, boost = 1) super(name, health) @boost = boost end
Public Instance Methods
found_weapon(weapon)
click to toggle source
Calls superclass method
# File lib/battle_royal/lame_player.rb, line 9 def found_weapon(weapon) damaged_weapon = Weapon.new(weapon.name, weapon.points / 2) super(damaged_weapon) end
power_up()
click to toggle source
Calls superclass method
# File lib/battle_royal/lame_player.rb, line 14 def power_up @boost.times { super } end