class StudioGame::BeserkPlayer

Public Class Methods

new(name, health=100) click to toggle source
Calls superclass method
# File lib/studio_game/beserk_player.rb, line 6
def initialize(name, health=100)
  super(name, health)
  @times_w00ted = 0
end

Public Instance Methods

beserk?() click to toggle source
# File lib/studio_game/beserk_player.rb, line 11
def beserk?
  @times_w00ted > 5
end
blam() click to toggle source
Calls superclass method
# File lib/studio_game/beserk_player.rb, line 21
def blam
  beserk? ? w00t : super
end
w00t() click to toggle source
Calls superclass method
# File lib/studio_game/beserk_player.rb, line 15
def w00t
  super
  @times_w00ted += 1
  puts "#{@name} is beserk!" if beserk?
end