Class: Teien::Animation

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

Defined Under Namespace

Classes: Operator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAnimation

Returns a new instance of Animation.



20
21
22
23
24
# File 'lib/teien/animation/animation.rb', line 20

def initialize()
  @enable = false
  @blend_mode = Ogre::ANIMBLEND_CUMULATIVE
  @operators = Hash.new
end

Instance Attribute Details

#blend_modeObject

Returns the value of attribute blend_mode.



5
6
7
# File 'lib/teien/animation/animation.rb', line 5

def blend_mode
  @blend_mode
end

#enableObject

Returns the value of attribute enable.



4
5
6
# File 'lib/teien/animation/animation.rb', line 4

def enable
  @enable
end

#operatorsObject

Returns the value of attribute operators.



6
7
8
# File 'lib/teien/animation/animation.rb', line 6

def operators
  @operators
end

Instance Method Details

#create_operator(operator_name, animation_name, speed, loop) ⇒ Object



26
27
28
29
30
31
# File 'lib/teien/animation/animation.rb', line 26

def create_operator(operator_name, animation_name, speed, loop)
  unless @operators[operator_name] 
    @operators[operator_name] = Operator.new(animation_name, speed, loop)
  end
  return @operators[operator_name]
end