Class: RPG::Enemy
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy.rb,
lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy_action.rb,
lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_drop_item.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy_action.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy_drop_item.rb
Overview
The data class for enemies.
Defined Under Namespace
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#agi ⇒ Object
Returns the value of attribute agi.
-
#animation1_id ⇒ Object
Returns the value of attribute animation1_id.
-
#animation2_id ⇒ Object
Returns the value of attribute animation2_id.
-
#armor_id ⇒ Object
Returns the value of attribute armor_id.
-
#atk ⇒ Object
Returns the value of attribute atk.
-
#battler_hue ⇒ Object
Returns the value of attribute battler_hue.
-
#battler_name ⇒ Object
Returns the value of attribute battler_name.
-
#def ⇒ Object
Returns the value of attribute def.
-
#dex ⇒ Object
Returns the value of attribute dex.
-
#drop_item1 ⇒ Object
Returns the value of attribute drop_item1.
-
#drop_item2 ⇒ Object
Returns the value of attribute drop_item2.
-
#drop_items ⇒ Object
Returns the value of attribute drop_items.
-
#element_ranks ⇒ Object
Returns the value of attribute element_ranks.
-
#eva ⇒ Object
Returns the value of attribute eva.
-
#exp ⇒ Object
Returns the value of attribute exp.
-
#gold ⇒ Object
Returns the value of attribute gold.
-
#has_critical ⇒ Object
Returns the value of attribute has_critical.
-
#hit ⇒ Object
Returns the value of attribute hit.
-
#id ⇒ Object
Returns the value of attribute id.
-
#int ⇒ Object
Returns the value of attribute int.
-
#item_id ⇒ Object
Returns the value of attribute item_id.
-
#levitate ⇒ Object
Returns the value of attribute levitate.
-
#maxhp ⇒ Object
Returns the value of attribute maxhp.
-
#maxmp ⇒ Object
Returns the value of attribute maxmp.
-
#maxsp ⇒ Object
Returns the value of attribute maxsp.
-
#mdef ⇒ Object
Returns the value of attribute mdef.
-
#name ⇒ Object
Returns the value of attribute name.
-
#note ⇒ Object
Returns the value of attribute note.
-
#params ⇒ Object
Returns the value of attribute params.
-
#pdef ⇒ Object
Returns the value of attribute pdef.
-
#spi ⇒ Object
Returns the value of attribute spi.
-
#state_ranks ⇒ Object
Returns the value of attribute state_ranks.
-
#str ⇒ Object
Returns the value of attribute str.
-
#treasure_prob ⇒ Object
Returns the value of attribute treasure_prob.
-
#weapon_id ⇒ Object
Returns the value of attribute weapon_id.
Attributes inherited from BaseItem
#description, #features, #icon_index
Instance Method Summary collapse
-
#initialize ⇒ Enemy
constructor
A new instance of Enemy.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ Enemy
Returns a new instance of Enemy.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 11 def initialize @id = 0 @name = "" @battler_name = "" @battler_hue = 0 @maxhp = 10 @maxmp = 10 @atk = 10 @def = 10 @spi = 10 @agi = 10 @hit = 95 @eva = 5 @exp = 0 @gold = 0 @drop_item1 = RPG::Enemy::DropItem.new @drop_item2 = RPG::Enemy::DropItem.new @levitate = false @has_critical = false @element_ranks = Table.new(1) @state_ranks = Table.new(1) @actions = [RPG::Enemy::Action.new] @note = "" end |
Instance Attribute Details
#actions ⇒ Object
Returns the value of attribute actions.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def actions @actions end |
#agi ⇒ Object
Returns the value of attribute agi.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def agi @agi end |
#animation1_id ⇒ Object
Returns the value of attribute animation1_id.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def animation1_id @animation1_id end |
#animation2_id ⇒ Object
Returns the value of attribute animation2_id.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def animation2_id @animation2_id end |
#armor_id ⇒ Object
Returns the value of attribute armor_id.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def armor_id @armor_id end |
#atk ⇒ Object
Returns the value of attribute atk.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def atk @atk end |
#battler_hue ⇒ Object
Returns the value of attribute battler_hue.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def battler_hue @battler_hue end |
#battler_name ⇒ Object
Returns the value of attribute battler_name.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def battler_name @battler_name end |
#def ⇒ Object
Returns the value of attribute def.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def def @def end |
#dex ⇒ Object
Returns the value of attribute dex.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def dex @dex end |
#drop_item1 ⇒ Object
Returns the value of attribute drop_item1.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def drop_item1 @drop_item1 end |
#drop_item2 ⇒ Object
Returns the value of attribute drop_item2.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def drop_item2 @drop_item2 end |
#drop_items ⇒ Object
Returns the value of attribute drop_items.
25 26 27 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy.rb', line 25 def drop_items @drop_items end |
#element_ranks ⇒ Object
Returns the value of attribute element_ranks.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def element_ranks @element_ranks end |
#eva ⇒ Object
Returns the value of attribute eva.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def eva @eva end |
#exp ⇒ Object
Returns the value of attribute exp.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def exp @exp end |
#gold ⇒ Object
Returns the value of attribute gold.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def gold @gold end |
#has_critical ⇒ Object
Returns the value of attribute has_critical.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def has_critical @has_critical end |
#hit ⇒ Object
Returns the value of attribute hit.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def hit @hit end |
#id ⇒ Object
Returns the value of attribute id.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def id @id end |
#int ⇒ Object
Returns the value of attribute int.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def int @int end |
#item_id ⇒ Object
Returns the value of attribute item_id.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def item_id @item_id end |
#levitate ⇒ Object
Returns the value of attribute levitate.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def levitate @levitate end |
#maxhp ⇒ Object
Returns the value of attribute maxhp.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def maxhp @maxhp end |
#maxmp ⇒ Object
Returns the value of attribute maxmp.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def maxmp @maxmp end |
#maxsp ⇒ Object
Returns the value of attribute maxsp.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def maxsp @maxsp end |
#mdef ⇒ Object
Returns the value of attribute mdef.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def mdef @mdef end |
#name ⇒ Object
Returns the value of attribute name.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def name @name end |
#note ⇒ Object
Returns the value of attribute note.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def note @note end |
#params ⇒ Object
Returns the value of attribute params.
25 26 27 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy.rb', line 25 def params @params end |
#pdef ⇒ Object
Returns the value of attribute pdef.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def pdef @pdef end |
#spi ⇒ Object
Returns the value of attribute spi.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def spi @spi end |
#state_ranks ⇒ Object
Returns the value of attribute state_ranks.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 40 def state_ranks @state_ranks end |
#str ⇒ Object
Returns the value of attribute str.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def str @str end |
#treasure_prob ⇒ Object
Returns the value of attribute treasure_prob.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def treasure_prob @treasure_prob end |
#weapon_id ⇒ Object
Returns the value of attribute weapon_id.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy.rb', line 43 def weapon_id @weapon_id end |
Instance Method Details
#to_s ⇒ Object
36 37 38 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy.rb', line 36 def to_s @name.to_s end |