Sha256: 113236ce3f04cb639241e0087512efb598497792a74f4503e814c12d918d8031

Contents?: true

Size: 437 Bytes

Versions: 10

Compression:

Stored size: 437 Bytes

Contents

# lib/gemwarrior/entities/item.rb
# Item base class

require_relative 'entity'

module Gemwarrior
  class Item < Entity
    attr_accessor :atk_lo, 
                  :atk_hi, 
                  :takeable, 
                  :useable, 
                  :equippable, 
                  :equipped,
                  :use
    
    def use(inventory = nil)
      'That item does not do anything...yet.'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gemwarrior-0.8.5 lib/gemwarrior/entities/item.rb
gemwarrior-0.8.3 lib/gemwarrior/entities/item.rb
gemwarrior-0.8.2 lib/gemwarrior/entities/item.rb
gemwarrior-0.8.1 lib/gemwarrior/entities/item.rb
gemwarrior-0.8.0 lib/gemwarrior/entities/item.rb
gemwarrior-0.7.9 lib/gemwarrior/entities/item.rb
gemwarrior-0.7.8 lib/gemwarrior/entities/item.rb
gemwarrior-0.7.7 lib/gemwarrior/entities/item.rb
gemwarrior-0.7.6 lib/gemwarrior/entities/item.rb
gemwarrior-0.7.5 lib/gemwarrior/entities/item.rb