Class: RPG::Enemy::DropItem
- Inherits:
-
Object
- Object
- RPG::Enemy::DropItem
- Defined in:
- lib/rpg/enemy/drop_item.rb
Instance Attribute Summary collapse
-
#data_id ⇒ Object
Returns the value of attribute data_id.
-
#denominator ⇒ Object
Returns the value of attribute denominator.
-
#kind ⇒ Object
Returns the value of attribute kind.
Instance Method Summary collapse
-
#initialize ⇒ DropItem
constructor
A new instance of DropItem.
Constructor Details
#initialize ⇒ DropItem
Returns a new instance of DropItem.
4 5 6 7 8 |
# File 'lib/rpg/enemy/drop_item.rb', line 4 def initialize @kind = 0 @data_id = 1 @denominator = 1 end |
Instance Attribute Details
#data_id ⇒ Object
Returns the value of attribute data_id.
10 11 12 |
# File 'lib/rpg/enemy/drop_item.rb', line 10 def data_id @data_id end |
#denominator ⇒ Object
Returns the value of attribute denominator.
11 12 13 |
# File 'lib/rpg/enemy/drop_item.rb', line 11 def denominator @denominator end |
#kind ⇒ Object
Returns the value of attribute kind.
9 10 11 |
# File 'lib/rpg/enemy/drop_item.rb', line 9 def kind @kind end |