Class: RPG::Animation
- Inherits:
-
Object
- Object
- RPG::Animation
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/animation.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/animation.rb,
lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_frame.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/animation_frame.rb,
lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_timing.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/animation_timing.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/animation_frame.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/animation_timing.rb
Overview
The data class for animation.
Defined Under Namespace
Instance Attribute Summary collapse
-
#animation1_hue ⇒ Object
Returns the value of attribute animation1_hue.
-
#animation1_name ⇒ Object
Returns the value of attribute animation1_name.
-
#animation2_hue ⇒ Object
Returns the value of attribute animation2_hue.
-
#animation2_name ⇒ Object
Returns the value of attribute animation2_name.
-
#animation_hue ⇒ Object
Returns the value of attribute animation_hue.
-
#animation_name ⇒ Object
Returns the value of attribute animation_name.
-
#frame_max ⇒ Object
Returns the value of attribute frame_max.
-
#frames ⇒ Object
Returns the value of attribute frames.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#position ⇒ Object
Returns the value of attribute position.
-
#timings ⇒ Object
Returns the value of attribute timings.
Instance Method Summary collapse
-
#initialize ⇒ Animation
constructor
A new instance of Animation.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ Animation
Returns a new instance of Animation.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 11 def initialize @id = 0 @name = "" @animation1_name = "" @animation1_hue = 0 @animation2_name = "" @animation2_hue = 0 @position = 1 @frame_max = 1 @frames = [RPG::Animation::Frame.new] @timings = [] end |
Instance Attribute Details
#animation1_hue ⇒ Object
Returns the value of attribute animation1_hue.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 28 def animation1_hue @animation1_hue end |
#animation1_name ⇒ Object
Returns the value of attribute animation1_name.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 28 def animation1_name @animation1_name end |
#animation2_hue ⇒ Object
Returns the value of attribute animation2_hue.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 28 def animation2_hue @animation2_hue end |
#animation2_name ⇒ Object
Returns the value of attribute animation2_name.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 28 def animation2_name @animation2_name end |
#animation_hue ⇒ Object
Returns the value of attribute animation_hue.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/animation.rb', line 26 def animation_hue @animation_hue end |
#animation_name ⇒ Object
Returns the value of attribute animation_name.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/animation.rb', line 26 def animation_name @animation_name end |
#frame_max ⇒ Object
Returns the value of attribute frame_max.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 28 def frame_max @frame_max end |
#frames ⇒ Object
Returns the value of attribute frames.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 28 def frames @frames end |
#id ⇒ Object
Returns the value of attribute id.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 28 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 28 def name @name end |
#position ⇒ Object
Returns the value of attribute position.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 28 def position @position end |
#timings ⇒ Object
Returns the value of attribute timings.
28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 28 def timings @timings end |
Instance Method Details
#to_s ⇒ Object
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation.rb', line 24 def to_s @name.to_s end |