Class: Teien::AnimationManagerProxy
- Inherits:
-
Object
- Object
- Teien::AnimationManagerProxy
- Defined in:
- lib/teien/animation/animation_manager_proxy.rb
Instance Attribute Summary collapse
-
#animations ⇒ Object
Returns the value of attribute animations.
Instance Method Summary collapse
- #create_animation(object_name) ⇒ Object
-
#initialize ⇒ AnimationManagerProxy
constructor
A new instance of AnimationManagerProxy.
- #receive_event(event, from) ⇒ Object
Constructor Details
#initialize ⇒ AnimationManagerProxy
Returns a new instance of AnimationManagerProxy.
9 10 11 12 13 |
# File 'lib/teien/animation/animation_manager_proxy.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_proxy.rb', line 7 def animations @animations end |
Instance Method Details
#create_animation(object_name) ⇒ Object
15 16 17 |
# File 'lib/teien/animation/animation_manager_proxy.rb', line 15 def create_animation(object_name) @animations[object_name] = Animation.new end |
#receive_event(event, from) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/teien/animation/animation_manager_proxy.rb', line 19 def receive_event(event, from) case event when Teien::Event::Animation::SyncAnimation @animations[event.object_name] = event.animation end end |