Sha256: 2b3891bed6ee89cb03c9fc6b03288d6505d1388cf543f00fddde7b3405aba729

Contents?: true

Size: 677 Bytes

Versions: 2

Compression:

Stored size: 677 Bytes

Contents

require_relative 'm-job'

class Player < Job
    attr_reader :name
    attr_accessor :gold, :balance, :weapon, :armour, :achievements, :hp, :str, :dex, :int, :lck, :agi
    
    def initialize(name)
        @name = name
        @gold = 0
        @balance = 0
        @weapon = nil
        @armour = nil
        @achievements = []
    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

2 entries across 2 versions & 1 rubygems

Version Path
lotrd-0.1.6 lib/lotrd/m-player.rb
lotrd-0.1.5 lib/lotrd/m-player.rb