Class: Kawaii::Scene
- Inherits:
-
Object
- Object
- Kawaii::Scene
- Defined in:
- lib/kawaii/scene.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#scene_manager ⇒ Object
Returns the value of attribute scene_manager.
Instance Method Summary collapse
- #draw ⇒ Object
-
#initialize(scene_manager) ⇒ Scene
constructor
A new instance of Scene.
- #transition_in(current, duration) ⇒ Object
- #transition_out(current, duration) ⇒ Object
- #update(dt) ⇒ Object
Constructor Details
#initialize(scene_manager) ⇒ Scene
Returns a new instance of Scene.
5 6 7 |
# File 'lib/kawaii/scene.rb', line 5 def initialize scene_manager @scene_manager = scene_manager end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/kawaii/scene.rb', line 3 def name @name end |
#scene_manager ⇒ Object
Returns the value of attribute scene_manager.
3 4 5 |
# File 'lib/kawaii/scene.rb', line 3 def scene_manager @scene_manager end |
Instance Method Details
#draw ⇒ Object
18 19 |
# File 'lib/kawaii/scene.rb', line 18 def draw end |
#transition_in(current, duration) ⇒ Object
9 10 |
# File 'lib/kawaii/scene.rb', line 9 def transition_in current, duration end |
#transition_out(current, duration) ⇒ Object
12 13 |
# File 'lib/kawaii/scene.rb', line 12 def transition_out current, duration end |
#update(dt) ⇒ Object
15 16 |
# File 'lib/kawaii/scene.rb', line 15 def update dt end |