Class: RPG::Animation
- Inherits:
-
Object
- Object
- RPG::Animation
- Defined in:
- lib/R3EXS/RGSS3.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.
1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 |
# File 'lib/R3EXS/RGSS3.rb', line 1113 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.
1133 1134 1135 |
# File 'lib/R3EXS/RGSS3.rb', line 1133 def animation1_hue @animation1_hue end |
#animation1_name ⇒ Object
Returns the value of attribute animation1_name.
1132 1133 1134 |
# File 'lib/R3EXS/RGSS3.rb', line 1132 def animation1_name @animation1_name end |
#animation2_hue ⇒ Object
Returns the value of attribute animation2_hue.
1135 1136 1137 |
# File 'lib/R3EXS/RGSS3.rb', line 1135 def animation2_hue @animation2_hue end |
#animation2_name ⇒ Object
Returns the value of attribute animation2_name.
1134 1135 1136 |
# File 'lib/R3EXS/RGSS3.rb', line 1134 def animation2_name @animation2_name end |
#frame_max ⇒ Object
Returns the value of attribute frame_max.
1137 1138 1139 |
# File 'lib/R3EXS/RGSS3.rb', line 1137 def frame_max @frame_max end |
#frames ⇒ Object
Returns the value of attribute frames.
1138 1139 1140 |
# File 'lib/R3EXS/RGSS3.rb', line 1138 def frames @frames end |
#id ⇒ Object
Returns the value of attribute id.
1130 1131 1132 |
# File 'lib/R3EXS/RGSS3.rb', line 1130 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
1131 1132 1133 |
# File 'lib/R3EXS/RGSS3.rb', line 1131 def name @name end |
#position ⇒ Object
Returns the value of attribute position.
1136 1137 1138 |
# File 'lib/R3EXS/RGSS3.rb', line 1136 def position @position end |
#timings ⇒ Object
Returns the value of attribute timings.
1139 1140 1141 |
# File 'lib/R3EXS/RGSS3.rb', line 1139 def timings @timings end |
Instance Method Details
#to_screen? ⇒ Boolean
1126 1127 1128 |
# File 'lib/R3EXS/RGSS3.rb', line 1126 def to_screen? @position == 3 end |