Class: RPG::Animation
- Inherits:
-
Object
- Object
- RPG::Animation
- Defined in:
- lib/rgss3/rpg.rb
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.
-
#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_screen? ⇒ Boolean
Constructor Details
#initialize ⇒ Animation
Returns a new instance of Animation.
815 816 817 818 819 820 821 822 823 824 825 826 |
# File 'lib/rgss3/rpg.rb', line 815 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.
833 834 835 |
# File 'lib/rgss3/rpg.rb', line 833 def animation1_hue @animation1_hue end |
#animation1_name ⇒ Object
Returns the value of attribute animation1_name.
832 833 834 |
# File 'lib/rgss3/rpg.rb', line 832 def animation1_name @animation1_name end |
#animation2_hue ⇒ Object
Returns the value of attribute animation2_hue.
835 836 837 |
# File 'lib/rgss3/rpg.rb', line 835 def animation2_hue @animation2_hue end |
#animation2_name ⇒ Object
Returns the value of attribute animation2_name.
834 835 836 |
# File 'lib/rgss3/rpg.rb', line 834 def animation2_name @animation2_name end |
#frame_max ⇒ Object
Returns the value of attribute frame_max.
837 838 839 |
# File 'lib/rgss3/rpg.rb', line 837 def frame_max @frame_max end |
#frames ⇒ Object
Returns the value of attribute frames.
838 839 840 |
# File 'lib/rgss3/rpg.rb', line 838 def frames @frames end |
#id ⇒ Object
Returns the value of attribute id.
830 831 832 |
# File 'lib/rgss3/rpg.rb', line 830 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
831 832 833 |
# File 'lib/rgss3/rpg.rb', line 831 def name @name end |
#position ⇒ Object
Returns the value of attribute position.
836 837 838 |
# File 'lib/rgss3/rpg.rb', line 836 def position @position end |
#timings ⇒ Object
Returns the value of attribute timings.
839 840 841 |
# File 'lib/rgss3/rpg.rb', line 839 def timings @timings end |
Instance Method Details
#to_screen? ⇒ Boolean
827 828 829 |
# File 'lib/rgss3/rpg.rb', line 827 def to_screen? @position == 3 end |