Class: Teien::Animation
- Inherits:
-
Object
- Object
- Teien::Animation
- Defined in:
- lib/teien/animation/animation.rb
Defined Under Namespace
Classes: Operator
Instance Attribute Summary collapse
-
#blend_mode ⇒ Object
Returns the value of attribute blend_mode.
-
#enable ⇒ Object
Returns the value of attribute enable.
-
#operators ⇒ Object
Returns the value of attribute operators.
Instance Method Summary collapse
- #create_operator(operator_name, animation_name, speed, loop) ⇒ Object
-
#initialize ⇒ Animation
constructor
A new instance of Animation.
Constructor Details
#initialize ⇒ Animation
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_mode ⇒ Object
Returns the value of attribute blend_mode.
5 6 7 |
# File 'lib/teien/animation/animation.rb', line 5 def blend_mode @blend_mode end |
#enable ⇒ Object
Returns the value of attribute enable.
4 5 6 |
# File 'lib/teien/animation/animation.rb', line 4 def enable @enable end |
#operators ⇒ Object
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 |