Module: Yuki::Animation::Mutant

Defined in:
docs/4_Systems_005_Animation.rb

Overview

Mutant player, for the case an animation is used to perform play_before and other actions

Instance Method Summary collapse

Instance Method Details

#done? ⇒ Boolean

Check if the animation is done

Returns:

  • (Boolean)


157
158
# File 'docs/4_Systems_005_Animation.rb', line 157

def done?
end

#duration ⇒ Float

Get the animation duration in seconds

Returns:

  • (Float)


161
162
# File 'docs/4_Systems_005_Animation.rb', line 161

def duration
end

#player=(player)

Set the player

Parameters:



165
166
# File 'docs/4_Systems_005_Animation.rb', line 165

def player=(player)
end

#resolver=(value)

Set the resolver

Parameters:

  • value (Hash) —

    new resolver



169
170
# File 'docs/4_Systems_005_Animation.rb', line 169

def resolver=(value)
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)


149
150
# File 'docs/4_Systems_005_Animation.rb', line 149

def start(begin_offset = 0)
end

#update ⇒ self

Update the animation

Returns:

  • (self)


153
154
# File 'docs/4_Systems_005_Animation.rb', line 153

def update
end