Class: MG::JumpBy

Inherits:
Action show all
Defined in:
doc/API_reference.rb

Instance Attribute Summary

Attributes inherited from Action

#done?

Constructors collapse

Methods inherited from Action

#clone, #reverse

Constructor Details

#initialize(delta_location, height, jumps, interval) ⇒ JumpBy

Creates an action that will jump the receiver to a new location determined by the sum of the current location and the given delta_location object.

Parameters:

  • delta_location (Point)

    a point that will be added to the receiver’s current location during jumping.

  • height (Float)

    the height of the jump

  • jumps (Float)

    the number of jumps

  • interval (Float)

    the animation interval.



70
# File 'doc/API_reference.rb', line 70

def initialize(delta_location, height, jumps, interval); end