Class: Core::Frame
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize ⇒ Frame
constructor
A new instance of Frame.
Constructor Details
#initialize ⇒ Frame
Returns a new instance of Frame.
66 67 68 69 70 71 |
# File 'lib/animation.rb', line 66 def initialize @length = 1 @color = Gosu::Color::WHITE @x, @y = 0, 0 @mode = :default end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
65 66 67 |
# File 'lib/animation.rb', line 65 def color @color end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
65 66 67 |
# File 'lib/animation.rb', line 65 def length @length end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
65 66 67 |
# File 'lib/animation.rb', line 65 def mode @mode end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
65 66 67 |
# File 'lib/animation.rb', line 65 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
65 66 67 |
# File 'lib/animation.rb', line 65 def y @y end |