Class: Metro::TransitionScene

Inherits:
Scene
  • Object
show all
Defined in:
lib/metro/transitions/transition_scene.rb

Direct Known Subclasses

EditTransitionScene, FadeTransitionScene

Constant Summary

Constants included from Units

Units::Bounds

Instance Attribute Summary collapse

Attributes inherited from Scene

#window

Instance Method Summary collapse

Methods inherited from Scene

#_prepare_transition, #actor, #add_actors_to_scene, #after, after, #after_initialize, after_intervals, #base_draw, #base_update, #draw, #drawers, #enqueue, hierarchy, inherited, #initialize, metro_name, #notification, #register_actor, #register_actors!, #register_after_intervals!, #register_animations!, #register_events!, #register_events_for_target, #scene_name, scene_name, scenes, #show, #state, #to_hash, #to_s, #transition_to, #update, #updaters

Methods included from SceneView

included, #save_view, #view, #view_content, #view_name

Methods included from HasAnimations

#animate, included

Methods included from HasEvents

included

Methods included from Draws

included

Constructor Details

This class inherits a constructor from Metro::Scene

Instance Attribute Details

#next_sceneObject

Returns the value of attribute next_scene.



4
5
6
# File 'lib/metro/transitions/transition_scene.rb', line 4

def next_scene
  @next_scene
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/metro/transitions/transition_scene.rb', line 4

def options
  @options
end

#previous_sceneObject

Returns the value of attribute previous_scene.



4
5
6
# File 'lib/metro/transitions/transition_scene.rb', line 4

def previous_scene
  @previous_scene
end

Instance Method Details

#prepare_transition_from(old_scene) ⇒ Object



6
7
8
9
# File 'lib/metro/transitions/transition_scene.rb', line 6

def prepare_transition_from(old_scene)
  next_scene.prepare_transition_from(old_scene)
  @previous_scene = old_scene
end

#prepare_transition_to(new_scene) ⇒ Object



11
12
13
# File 'lib/metro/transitions/transition_scene.rb', line 11

def prepare_transition_to(new_scene)
  previous_scene.prepare_transition_to(new_scene)
end