Class: Teien::AnimationManager
- Inherits:
-
Object
- Object
- Teien::AnimationManager
- Defined in:
- lib/teien/animation/animation_manager.rb
Instance Attribute Summary collapse
-
#animations ⇒ Object
Returns the value of attribute animations.
Instance Method Summary collapse
- #create_animation(object_name) ⇒ Object
-
#initialize ⇒ AnimationManager
constructor
A new instance of AnimationManager.
- #update(delta) ⇒ Object
Constructor Details
#initialize ⇒ AnimationManager
Returns a new instance of AnimationManager.
9 10 11 12 13 |
# File 'lib/teien/animation/animation_manager.rb', line 9 def initialize() @animations = Hash.new @event_router = Teien::get_component("event_router") @event_router.register_receiver(self) end |
Instance Attribute Details
#animations ⇒ Object
Returns the value of attribute animations.
7 8 9 |
# File 'lib/teien/animation/animation_manager.rb', line 7 def animations @animations end |
Instance Method Details
#create_animation(object_name) ⇒ Object
15 16 17 |
# File 'lib/teien/animation/animation_manager.rb', line 15 def create_animation(object_name) @animations[object_name] = Animation.new end |
#update(delta) ⇒ Object
19 20 |
# File 'lib/teien/animation/animation_manager.rb', line 19 def update(delta) end |