Class: Carbuncle::AnimatedSprite::Animation

Inherits:
Struct show all
Defined in:
gems/carbuncle-graphics/mrblib/animated_sprite.rb

Overview

This class represents an animation

Constant Summary

Constants included from Enumerable

Enumerable::NONE

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

#==, #[], #[]=, #_inspect, #dig, #each, #each_pair, #eql?, #initialize, #initialize_copy, #inspect, #length, #members, #select, #size, #to_a, #to_h, #values, #values_at

Methods included from Enumerable

__update_hash, #all?, #any?, #chain, #collect, #count, #cycle, #detect, #drop, #drop_while, #each_cons, #each_slice, #each_with_index, #each_with_object, #entries, #filter_map, #find_all, #find_index, #first, #flat_map, #grep, #group_by, #hash, #include?, #inject, #lazy, #max, #max_by, #min, #min_by, #minmax, #minmax_by, #none?, #one?, #partition, #reject, #reverse_each, #sort, #sort_by, #sum, #take, #take_while, #tally, #to_h, #uniq, #zip

Constructor Details

This class inherits a constructor from Struct

Instance Attribute Details

#delayObject

Returns the value of attribute delay

Returns:

  • (Object)

    the current value of delay



7
8
9
# File 'gems/carbuncle-graphics/mrblib/animated_sprite.rb', line 7

def delay
  @delay
end

#framesObject

Returns the value of attribute frames

Returns:

  • (Object)

    the current value of frames



7
8
9
# File 'gems/carbuncle-graphics/mrblib/animated_sprite.rb', line 7

def frames
  @frames
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'gems/carbuncle-graphics/mrblib/animated_sprite.rb', line 7

def name
  @name
end