Class: TEF::Animation::Box
- Inherits:
-
Animatable
- Object
- Animatable
- TEF::Animation::Box
- Defined in:
- lib/tef/Animation/Animatable.rb
Instance Attribute Summary collapse
-
#center ⇒ Coordinate
Coordinate for ‘center’ (ID 0xC200).
-
#color ⇒ Color
Animated color ‘color’ (ID 0).
-
#x_dir ⇒ Coordinate
Coordinate for ‘x_dir’ (ID 0xC000).
-
#y_dir ⇒ Coordinate
Coordinate for ‘y_dir’ (ID 0xC100).
Attributes inherited from Animatable
#death_delay, #death_time, #module_id
Instance Method Summary collapse
- #creation_string ⇒ Object
-
#initialize(layer_no = 0) ⇒ Box
constructor
A new instance of Box.
Methods inherited from Animatable
animatable_attr, animatable_color, animatable_coordinate, #configure, #death_time_string, #die!, #die_in, get_attr_list, get_color_list, get_coordinate_list, #get_set_strings, #get_setc_strings, #get_setss_strings, #is_dead?, #send_string
Constructor Details
#initialize(layer_no = 0) ⇒ Box
Returns a new instance of Box.
383 384 385 386 387 |
# File 'lib/tef/Animation/Animatable.rb', line 383 def initialize(layer_no = 0) super(); @layer = layer_no; end |
Instance Attribute Details
#center ⇒ Coordinate
Returns Coordinate for ‘center’ (ID 0xC200).
381 |
# File 'lib/tef/Animation/Animatable.rb', line 381 animatable_coordinate :center, 0xC200 |
#color ⇒ Color
Returns Animated color ‘color’ (ID 0).
371 |
# File 'lib/tef/Animation/Animatable.rb', line 371 animatable_color :color, 0 |
#x_dir ⇒ Coordinate
Returns Coordinate for ‘x_dir’ (ID 0xC000).
379 |
# File 'lib/tef/Animation/Animatable.rb', line 379 animatable_coordinate :x_dir, 0xC000 |
#y_dir ⇒ Coordinate
Returns Coordinate for ‘y_dir’ (ID 0xC100).
380 |
# File 'lib/tef/Animation/Animatable.rb', line 380 animatable_coordinate :y_dir, 0xC100 |
Instance Method Details
#creation_string ⇒ Object
389 390 391 |
# File 'lib/tef/Animation/Animatable.rb', line 389 def creation_string "BOX #{@module_id} #{@layer}" end |