Class: RPG::Animation::Timing
- Inherits:
-
Object
- Object
- RPG::Animation::Timing
- Defined in:
- lib/rpg/animation/timing.rb
Instance Attribute Summary (collapse)
-
- (Object) flash_color
Returns the value of attribute flash_color.
-
- (Object) flash_duration
Returns the value of attribute flash_duration.
-
- (Object) flash_scope
Returns the value of attribute flash_scope.
-
- (Object) frame
Returns the value of attribute frame.
-
- (Object) se
Returns the value of attribute se.
Instance Method Summary (collapse)
-
- (Timing) initialize
constructor
A new instance of Timing.
Constructor Details
- (Timing) initialize
Returns a new instance of Timing
4 5 6 7 8 9 10 |
# File 'lib/rpg/animation/timing.rb', line 4 def initialize @frame = 0 @se = RPG::SE.new('', 80) @flash_scope = 0 @flash_color = Color.new(255,255,255,255) @flash_duration = 5 end |
Instance Attribute Details
- (Object) flash_color
Returns the value of attribute flash_color
14 15 16 |
# File 'lib/rpg/animation/timing.rb', line 14 def flash_color @flash_color end |
- (Object) flash_duration
Returns the value of attribute flash_duration
15 16 17 |
# File 'lib/rpg/animation/timing.rb', line 15 def flash_duration @flash_duration end |
- (Object) flash_scope
Returns the value of attribute flash_scope
13 14 15 |
# File 'lib/rpg/animation/timing.rb', line 13 def flash_scope @flash_scope end |
- (Object) frame
Returns the value of attribute frame
11 12 13 |
# File 'lib/rpg/animation/timing.rb', line 11 def frame @frame end |
- (Object) se
Returns the value of attribute se
12 13 14 |
# File 'lib/rpg/animation/timing.rb', line 12 def se @se end |