Class: RPG::Animation
- Inherits:
-
Object
- Object
- RPG::Animation
- Defined in:
- lib/rpg/animation.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#animation_hue ⇒ Object
The adjustment value for the animation graphic’s hue (0..360).
-
#animation_name ⇒ Object
The animation’s graphic file name.
-
#frame_max ⇒ Object
Number of frames.
-
#frames ⇒ Array<RPG::Animation::Frame>
Frame contents.
-
#id ⇒ Object
The animation ID.
-
#name ⇒ Object
The animation name.
-
#position ⇒ Object
- The animation’s position: 0
- top 1
- middle 2
- bottom 3
-
screen.
-
#timings ⇒ Array<RPG::Animation::Timing>
Timing for SE and flash effects.
Instance Method Summary collapse
-
#initialize ⇒ Animation
constructor
A new instance of Animation.
Constructor Details
Instance Attribute Details
#animation_hue ⇒ Object
The adjustment value for the animation graphic’s hue (0..360).
26 27 28 |
# File 'lib/rpg/animation.rb', line 26 def animation_hue @animation_hue end |
#animation_name ⇒ Object
The animation’s graphic file name.
23 24 25 |
# File 'lib/rpg/animation.rb', line 23 def animation_name @animation_name end |
#frame_max ⇒ Object
Number of frames.
36 37 38 |
# File 'lib/rpg/animation.rb', line 36 def frame_max @frame_max end |
#frames ⇒ Array<RPG::Animation::Frame>
Frame contents. An RPG::Animation::Frame array.
40 41 42 |
# File 'lib/rpg/animation.rb', line 40 def frames @frames end |
#id ⇒ Object
The animation ID.
17 18 19 |
# File 'lib/rpg/animation.rb', line 17 def id @id end |
#name ⇒ Object
The animation name.
20 21 22 |
# File 'lib/rpg/animation.rb', line 20 def name @name end |
#position ⇒ Object
The animation’s position:
- 0
-
top
- 1
-
middle
- 2
-
bottom
- 3
-
screen
33 34 35 |
# File 'lib/rpg/animation.rb', line 33 def position @position end |
#timings ⇒ Array<RPG::Animation::Timing>
Timing for SE and flash effects. An Timing array.
44 45 46 |
# File 'lib/rpg/animation.rb', line 44 def timings @timings end |