Class: RPG::Animation::Timing
- Inherits:
-
Object
- Object
- RPG::Animation::Timing
- Defined in:
- lib/rpg/animation.rb
Overview
Data class for the timing of an animation’s SE and flash effects.
Instance Attribute Summary collapse
-
#condition ⇒ Object
- Condition of the effect: 0
- none 1
- hit 2
-
miss.
-
#flash_color ⇒ Object
Flash Color.
-
#flash_duration ⇒ Object
Flash duration.
-
#flash_scope ⇒ Object
- Flash area: 0
- none 1
- target 2
- screen 3
-
delete target.
-
#frame ⇒ Object
Frame number.
-
#se ⇒ Object
SE, or sound effect (RPG::AudioFile).
Instance Method Summary collapse
-
#initialize ⇒ Timing
constructor
A new instance of Timing.
Constructor Details
Instance Attribute Details
#condition ⇒ Object
Condition of the effect:
- 0
-
none
- 1
-
hit
- 2
-
miss
110 111 112 |
# File 'lib/rpg/animation.rb', line 110 def condition @condition end |
#flash_color ⇒ Object
Flash Color.
101 102 103 |
# File 'lib/rpg/animation.rb', line 101 def flash_color @flash_color end |
#flash_duration ⇒ Object
Flash duration.
104 105 106 |
# File 'lib/rpg/animation.rb', line 104 def flash_duration @flash_duration end |
#flash_scope ⇒ Object
Flash area:
- 0
-
none
- 1
-
target
- 2
-
screen
- 3
-
delete target
98 99 100 |
# File 'lib/rpg/animation.rb', line 98 def flash_scope @flash_scope end |
#frame ⇒ Object
Frame number. 1 less than the number displayed in RPGXP.
88 89 90 |
# File 'lib/rpg/animation.rb', line 88 def frame @frame end |
#se ⇒ Object
SE, or sound effect (RPG::AudioFile).
91 92 93 |
# File 'lib/rpg/animation.rb', line 91 def se @se end |