Class: Teien::AnimationManager

Inherits:
Object
  • Object
show all
Defined in:
lib/teien/animation/animation_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAnimationManager

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

#animationsObject

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