Class: TEF::Animation::Box

Inherits:
Animatable show all
Defined in:
lib/tef/Animation/Animatable.rb

Instance Attribute Summary collapse

Attributes inherited from Animatable

#death_delay, #death_time, #module_id

Instance Method Summary collapse

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

#centerCoordinate

Returns Coordinate for ‘center’ (ID 0xC200).

Returns:

  • (Coordinate)

    Coordinate for ‘center’ (ID 0xC200)



381
# File 'lib/tef/Animation/Animatable.rb', line 381

animatable_coordinate :center, 0xC200

#colorColor

Returns Animated color ‘color’ (ID 0).

Returns:

  • (Color)

    Animated color ‘color’ (ID 0)



371
# File 'lib/tef/Animation/Animatable.rb', line 371

animatable_color :color, 0

#x_dirCoordinate

Returns Coordinate for ‘x_dir’ (ID 0xC000).

Returns:

  • (Coordinate)

    Coordinate for ‘x_dir’ (ID 0xC000)



379
# File 'lib/tef/Animation/Animatable.rb', line 379

animatable_coordinate :x_dir, 0xC000

#y_dirCoordinate

Returns Coordinate for ‘y_dir’ (ID 0xC100).

Returns:

  • (Coordinate)

    Coordinate for ‘y_dir’ (ID 0xC100)



380
# File 'lib/tef/Animation/Animatable.rb', line 380

animatable_coordinate :y_dir, 0xC100

Instance Method Details

#creation_stringObject



389
390
391
# File 'lib/tef/Animation/Animatable.rb', line 389

def creation_string
	"BOX #{@module_id} #{@layer}"
end