Class: RPG::Actor
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/actor.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/actor.rb
Overview
The data class for actors.
Instance Attribute Summary collapse
-
#armor1_fix ⇒ Object
Returns the value of attribute armor1_fix.
-
#armor1_id ⇒ Object
Returns the value of attribute armor1_id.
-
#armor2_fix ⇒ Object
Returns the value of attribute armor2_fix.
-
#armor2_id ⇒ Object
Returns the value of attribute armor2_id.
-
#armor3_fix ⇒ Object
Returns the value of attribute armor3_fix.
-
#armor3_id ⇒ Object
Returns the value of attribute armor3_id.
-
#armor4_fix ⇒ Object
Returns the value of attribute armor4_fix.
-
#armor4_id ⇒ Object
Returns the value of attribute armor4_id.
-
#auto_battle ⇒ Object
Returns the value of attribute auto_battle.
-
#battler_hue ⇒ Object
Returns the value of attribute battler_hue.
-
#battler_name ⇒ Object
Returns the value of attribute battler_name.
-
#character_hue ⇒ Object
Returns the value of attribute character_hue.
-
#character_index ⇒ Object
Returns the value of attribute character_index.
-
#character_name ⇒ Object
Returns the value of attribute character_name.
-
#class_id ⇒ Object
Returns the value of attribute class_id.
-
#critical_bonus ⇒ Object
Returns the value of attribute critical_bonus.
-
#equips ⇒ Object
Returns the value of attribute equips.
-
#exp_basis ⇒ Object
Returns the value of attribute exp_basis.
-
#exp_inflation ⇒ Object
Returns the value of attribute exp_inflation.
-
#face_index ⇒ Object
Returns the value of attribute face_index.
-
#face_name ⇒ Object
Returns the value of attribute face_name.
-
#final_level ⇒ Object
Returns the value of attribute final_level.
-
#fix_equipment ⇒ Object
Returns the value of attribute fix_equipment.
-
#id ⇒ Object
Returns the value of attribute id.
-
#initial_level ⇒ Object
Returns the value of attribute initial_level.
-
#max_level ⇒ Object
Returns the value of attribute max_level.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#pharmacology ⇒ Object
Returns the value of attribute pharmacology.
-
#super_guard ⇒ Object
Returns the value of attribute super_guard.
-
#two_swords_style ⇒ Object
Returns the value of attribute two_swords_style.
-
#weapon_fix ⇒ Object
Returns the value of attribute weapon_fix.
-
#weapon_id ⇒ Object
Returns the value of attribute weapon_id.
Attributes inherited from BaseItem
#description, #features, #icon_index, #note
Instance Method Summary collapse
-
#initialize ⇒ Actor
constructor
A new instance of Actor.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ Actor
Returns a new instance of Actor.
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/actor.rb', line 11 def initialize @id = 0 @name = "" @class_id = 1 @initial_level = 1 @exp_basis = 25 @exp_inflation = 35 @character_name = "" @character_index = 0 @face_name = "" @face_index = 0 @parameters = Table.new(6, 100) @weapon_id = 0 @armor1_id = 0 @armor2_id = 0 @armor3_id = 0 @armor4_id = 0 @two_swords_style = false @fix_equipment = false @auto_battle = false @super_guard = false @pharmacology = false @critical_bonus = false end |
Instance Attribute Details
#armor1_fix ⇒ Object
Returns the value of attribute armor1_fix.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/actor.rb', line 40 def armor1_fix @armor1_fix end |
#armor1_id ⇒ Object
Returns the value of attribute armor1_id.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def armor1_id @armor1_id end |
#armor2_fix ⇒ Object
Returns the value of attribute armor2_fix.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/actor.rb', line 40 def armor2_fix @armor2_fix end |
#armor2_id ⇒ Object
Returns the value of attribute armor2_id.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def armor2_id @armor2_id end |
#armor3_fix ⇒ Object
Returns the value of attribute armor3_fix.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/actor.rb', line 40 def armor3_fix @armor3_fix end |
#armor3_id ⇒ Object
Returns the value of attribute armor3_id.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def armor3_id @armor3_id end |
#armor4_fix ⇒ Object
Returns the value of attribute armor4_fix.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/actor.rb', line 40 def armor4_fix @armor4_fix end |
#armor4_id ⇒ Object
Returns the value of attribute armor4_id.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def armor4_id @armor4_id end |
#auto_battle ⇒ Object
Returns the value of attribute auto_battle.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def auto_battle @auto_battle end |
#battler_hue ⇒ Object
Returns the value of attribute battler_hue.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/actor.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/xp/rpg/actor.rb', line 40 def battler_name @battler_name end |
#character_hue ⇒ Object
Returns the value of attribute character_hue.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/actor.rb', line 40 def character_hue @character_hue end |
#character_index ⇒ Object
Returns the value of attribute character_index.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def character_index @character_index end |
#character_name ⇒ Object
Returns the value of attribute character_name.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def character_name @character_name end |
#class_id ⇒ Object
Returns the value of attribute class_id.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def class_id @class_id end |
#critical_bonus ⇒ Object
Returns the value of attribute critical_bonus.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def critical_bonus @critical_bonus end |
#equips ⇒ Object
Returns the value of attribute equips.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/actor.rb', line 24 def equips @equips end |
#exp_basis ⇒ Object
Returns the value of attribute exp_basis.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def exp_basis @exp_basis end |
#exp_inflation ⇒ Object
Returns the value of attribute exp_inflation.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def exp_inflation @exp_inflation end |
#face_index ⇒ Object
Returns the value of attribute face_index.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def face_index @face_index end |
#face_name ⇒ Object
Returns the value of attribute face_name.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def face_name @face_name end |
#final_level ⇒ Object
Returns the value of attribute final_level.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/actor.rb', line 40 def final_level @final_level end |
#fix_equipment ⇒ Object
Returns the value of attribute fix_equipment.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def fix_equipment @fix_equipment end |
#id ⇒ Object
Returns the value of attribute id.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def id @id end |
#initial_level ⇒ Object
Returns the value of attribute initial_level.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def initial_level @initial_level end |
#max_level ⇒ Object
Returns the value of attribute max_level.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/actor.rb', line 24 def max_level @max_level end |
#name ⇒ Object
Returns the value of attribute name.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def name @name end |
#nickname ⇒ Object
Returns the value of attribute nickname.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/actor.rb', line 24 def nickname @nickname end |
#parameters ⇒ Object
Returns the value of attribute parameters.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def parameters @parameters end |
#pharmacology ⇒ Object
Returns the value of attribute pharmacology.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def pharmacology @pharmacology end |
#super_guard ⇒ Object
Returns the value of attribute super_guard.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def super_guard @super_guard end |
#two_swords_style ⇒ Object
Returns the value of attribute two_swords_style.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 def two_swords_style @two_swords_style end |
#weapon_fix ⇒ Object
Returns the value of attribute weapon_fix.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/actor.rb', line 40 def weapon_fix @weapon_fix end |
#weapon_id ⇒ Object
Returns the value of attribute weapon_id.
40 41 42 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 40 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/actor.rb', line 36 def to_s @name.to_s end |