Class: RPG::Actor

Inherits:
BaseItem show all
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

Attributes inherited from BaseItem

#description, #features, #icon_index, #note

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeActor

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_fixObject

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_idObject

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_fixObject

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_idObject

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_fixObject

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_idObject

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_fixObject

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_idObject

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_battleObject

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_hueObject

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_nameObject

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_hueObject

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_indexObject

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_nameObject

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_idObject

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_bonusObject

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

#equipsObject

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_basisObject

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_inflationObject

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_indexObject

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_nameObject

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_levelObject

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_equipmentObject

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

#idObject

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_levelObject

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_levelObject

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

#nameObject

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

#nicknameObject

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

#parametersObject

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

#pharmacologyObject

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_guardObject

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_styleObject

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_fixObject

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_idObject

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_sObject



36
37
38
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/actor.rb', line 36

def to_s
  @name.to_s
end