The data class for animation.
The animation ID.
The animation name.
The file name of the first animation's graphic.
The adjustment value for the hue of the first animation's graphic (0..360).
The file name of the second animation's graphic.
The adjustment value for the hue of the second animation's graphic (0..360).
The base position (0: head, 1: center, 2: feet, 3: screen).
Number of frames.
Frame contents. An RPG::Animation::Frame array.
Timing for SE and flash effects. An RPG::Animation::Timing array.
Determines whether the animation is to be displayed full screen. Returns true if the value of position is 3.
class RPG::Animation 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 def to_screen? @position == 3 end attr_accessor :id attr_accessor :name attr_accessor :animation1_name attr_accessor :animation1_hue attr_accessor :animation2_name attr_accessor :animation2_hue attr_accessor :position attr_accessor :frame_max attr_accessor :frames attr_accessor :timings end