Class: Adam::Kill::Loot

Inherits:
Object
  • Object
show all
Defined in:
lib/adam/kill.rb

Overview

Instances of the Loot class represent a piece of loot of a kill.

Accessors:

  • name - A string describing the name of the item.

  • quantity - An integer describing the quantity of the item.

  • cargo - A boolean describing whether or not this item was in the cargo hold.

  • drone_bay - A boolean describing whether or not this item was in the drone bay.

  • dropped - A boolean describing whether or not this item was dropped.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Loot

Returns a new instance of Loot.

Yields:

  • (_self)

Yield Parameters:



190
191
192
# File 'lib/adam/kill.rb', line 190

def initialize
  yield self if block_given?
end

Instance Attribute Details

#cargoObject

Returns the value of attribute cargo.



180
181
182
# File 'lib/adam/kill.rb', line 180

def cargo
  @cargo
end

#drone_bayObject

Returns the value of attribute drone_bay.



180
181
182
# File 'lib/adam/kill.rb', line 180

def drone_bay
  @drone_bay
end

#droppedObject

Returns the value of attribute dropped.



180
181
182
# File 'lib/adam/kill.rb', line 180

def dropped
  @dropped
end

#nameObject

Returns the value of attribute name.



180
181
182
# File 'lib/adam/kill.rb', line 180

def name
  @name
end

#quantityObject

Returns the value of attribute quantity.



180
181
182
# File 'lib/adam/kill.rb', line 180

def quantity
  @quantity
end

Instance Method Details

#cargo?Boolean

Returns:

  • (Boolean)


182
183
184
# File 'lib/adam/kill.rb', line 182

def cargo?
  cargo
end

#dropped?Boolean

Returns:

  • (Boolean)


186
187
188
# File 'lib/adam/kill.rb', line 186

def dropped?
  dropped
end