Sha256: 638d03c64c11811cb0ff17d54a33faa16c9f82314d9d2a23179d218f434be459

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

require_relative '../model/job'

class Player < Job
    attr_reader :name
    attr_accessor :gold, :balance, :weapon, :armour, :achievements, :hp, :def, :res, :str, :dex, :int, :lck, :agi
    
    def initialize(name)
        @name = name
        @gold = 0
        @balance = 0
        @weapon = nil
        @armour = nil
        @achievements = []
        @status = []
    end

    def elf
        super
    end

    def human
        super
    end

    def dwarf
        super
    end

    def god
        super
    end

    def beast
        super
    end
    
    def mage
        super
    end

    def knight
        super
    end

    def rogue
        super
    end

    def ranger
        super
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lotrd-0.1.9 lib/lotrd/model/player.rb