Class: RPG::Animation

Inherits:
Object
  • Object
show all
Defined in:
lib/R3EXS/RGSS3.rb

Defined Under Namespace

Classes: Frame, Timing

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAnimation

Returns a new instance of Animation.



1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
# File 'lib/R3EXS/RGSS3.rb', line 1135

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_hueObject

Returns the value of attribute animation1_hue.



1155
1156
1157
# File 'lib/R3EXS/RGSS3.rb', line 1155

def animation1_hue
  @animation1_hue
end

#animation1_nameObject

Returns the value of attribute animation1_name.



1154
1155
1156
# File 'lib/R3EXS/RGSS3.rb', line 1154

def animation1_name
  @animation1_name
end

#animation2_hueObject

Returns the value of attribute animation2_hue.



1157
1158
1159
# File 'lib/R3EXS/RGSS3.rb', line 1157

def animation2_hue
  @animation2_hue
end

#animation2_nameObject

Returns the value of attribute animation2_name.



1156
1157
1158
# File 'lib/R3EXS/RGSS3.rb', line 1156

def animation2_name
  @animation2_name
end

#frame_maxObject

Returns the value of attribute frame_max.



1159
1160
1161
# File 'lib/R3EXS/RGSS3.rb', line 1159

def frame_max
  @frame_max
end

#framesObject

Returns the value of attribute frames.



1160
1161
1162
# File 'lib/R3EXS/RGSS3.rb', line 1160

def frames
  @frames
end

#idObject

Returns the value of attribute id.



1152
1153
1154
# File 'lib/R3EXS/RGSS3.rb', line 1152

def id
  @id
end

#nameObject

Returns the value of attribute name.



1153
1154
1155
# File 'lib/R3EXS/RGSS3.rb', line 1153

def name
  @name
end

#positionObject

Returns the value of attribute position.



1158
1159
1160
# File 'lib/R3EXS/RGSS3.rb', line 1158

def position
  @position
end

#timingsObject

Returns the value of attribute timings.



1161
1162
1163
# File 'lib/R3EXS/RGSS3.rb', line 1161

def timings
  @timings
end

Instance Method Details

#to_screen?Boolean

Returns:

  • (Boolean)


1148
1149
1150
# File 'lib/R3EXS/RGSS3.rb', line 1148

def to_screen?
    @position == 3
end