Class: RPG::Enemy

Inherits:
BaseItem show all
Defined in:
lib/rgss3/rpg.rb

Defined Under Namespace

Classes: Action, DropItem

Instance Attribute Summary collapse

Attributes inherited from BaseItem

#description, #features, #icon_index, #id, #name, #note

Instance Method Summary collapse

Constructor Details

#initializeEnemy

Returns a new instance of Enemy.



656
657
658
659
660
661
662
663
664
665
666
667
668
# File 'lib/rgss3/rpg.rb', line 656

def initialize
  super
  @battler_name = ''
  @battler_hue = 0
  @params = [100,0,10,10,10,10,10,10]
  @exp = 0
  @gold = 0
  @drop_items = Array.new(3) { RPG::Enemy::DropItem.new }
  @actions = [RPG::Enemy::Action.new]
  @features.push(RPG::BaseItem::Feature.new(22, 0, 0.95))
  @features.push(RPG::BaseItem::Feature.new(22, 1, 0.05))
  @features.push(RPG::BaseItem::Feature.new(31, 1, 0))
end

Instance Attribute Details

#actionsObject

Returns the value of attribute actions.



675
676
677
# File 'lib/rgss3/rpg.rb', line 675

def actions
  @actions
end

#battler_hueObject

Returns the value of attribute battler_hue.



670
671
672
# File 'lib/rgss3/rpg.rb', line 670

def battler_hue
  @battler_hue
end

#battler_nameObject

Returns the value of attribute battler_name.



669
670
671
# File 'lib/rgss3/rpg.rb', line 669

def battler_name
  @battler_name
end

#drop_itemsObject

Returns the value of attribute drop_items.



674
675
676
# File 'lib/rgss3/rpg.rb', line 674

def drop_items
  @drop_items
end

#expObject

Returns the value of attribute exp.



672
673
674
# File 'lib/rgss3/rpg.rb', line 672

def exp
  @exp
end

#goldObject

Returns the value of attribute gold.



673
674
675
# File 'lib/rgss3/rpg.rb', line 673

def gold
  @gold
end

#paramsObject

Returns the value of attribute params.



671
672
673
# File 'lib/rgss3/rpg.rb', line 671

def params
  @params
end