Class: Yuki::Animation::UserBankRelativeAnimation

Inherits:
Player show all
Defined in:
docs/5_Battle_20_MoveAnimation.rb

Overview

Class describing an animation that plays depending on the user's bank

Instance Attribute Summary

Attributes included from Yuki::AnimationMixin

#player, #resolver

Instance Method Summary collapse

Methods inherited from Player

#animation_index, #done?, #duration, #first_start_time, #last_end_time, #parallel_add, #play, #resolver=, #root, #update

Methods included from Yuki::AnimationMixin

#begin_offset_for_next_animation, #done?, #duration, #update

Constructor Details

#initialize(banks = nil) ⇒ UserBankRelativeAnimation

Create a new UserBankRelativeAnimation

Parameters:

  • banks (Array<AnimationMixin>) (defaults to: nil) —

    animations that plays on each banks



56
57
# File 'docs/5_Battle_20_MoveAnimation.rb', line 56

def initialize(banks = nil)
end

Instance Method Details

#play_before_on_bank(bank, other)

Deprecated.

Inherits from bad practices



59
60
# File 'docs/5_Battle_20_MoveAnimation.rb', line 59

def play_before_on_bank(bank, other)
end

#start(begin_offset = 0) ⇒ self

Start the animation

Parameters:

  • begin_offset (Float) (defaults to: 0) —

    offset for starting the animation (added to animation's clock)

Returns:

  • (self)


64
65
# File 'docs/5_Battle_20_MoveAnimation.rb', line 64

def start(begin_offset = 0)
end