class Partyhat::Player

Public Class Methods

new(name) click to toggle source
# File lib/partyhat/player.rb, line 6
def initialize name
  @name = name
  @stats = Partyhat::Highscores.find_player(@name)
end

Public Instance Methods

combat() click to toggle source
# File lib/partyhat/player.rb, line 19
def combat
  Partyhat::Calculators.combat(stats)
end
name() click to toggle source
# File lib/partyhat/player.rb, line 11
def name
  @name
end
stats() click to toggle source
# File lib/partyhat/player.rb, line 15
def stats
  @stats
end