Module: Battle::MoveAnimation
- Defined in:
- docs/5_Battle_20_MoveAnimation.rb
Overview
Module responsive of handling all move animation
All animation will have the following values in their resolver:
- :visual => Battle::Visual object
- :user => BattleUI::PokemonSprite of the user of the move
- :target => BattleUI::PokemonSprite of the target of the move (first if user animation, current if target animation)
- :viewport => Viewport of the user sprite
Class Method Summary collapse
-
.get(move, *animation_reason) ⇒ Array<Yuki::Animation::TimedAnimation>?
Function that retreives the animation for the user & the target depending on the condition.
-
.play(animations, visual, user, targets)
Function that plays an animation.
-
.register_generic_animation(move_kind, move_type, animation_user, animation_target)
Function that stores a generic move animation.
-
.register_specific_animation(move_db_symbol, animation_reason, animation_user, animation_target)
Function that store a specific move animation.
Class Method Details
.get(move, *animation_reason) ⇒ Array<Yuki::Animation::TimedAnimation>?
Function that retreives the animation for the user & the target depending on the condition
31 32 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 31 def get(move, *animation_reason) end |
.play(animations, visual, user, targets)
Function that plays an animation
38 39 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 38 def play(animations, visual, user, targets) end |
.register_generic_animation(move_kind, move_type, animation_user, animation_target)
Function that stores a generic move animation
25 26 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 25 def register_generic_animation(move_kind, move_type, animation_user, animation_target) end |
.register_specific_animation(move_db_symbol, animation_reason, animation_user, animation_target)
Function that store a specific move animation
18 19 |
# File 'docs/5_Battle_20_MoveAnimation.rb', line 18 def register_specific_animation(move_db_symbol, animation_reason, animation_user, animation_target) end |