Class: Core::Frame

Inherits:
Object show all
Defined in:
lib/animation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFrame

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

#colorObject (readonly)

Returns the value of attribute color.



65
66
67
# File 'lib/animation.rb', line 65

def color
  @color
end

#lengthObject (readonly)

Returns the value of attribute length.



65
66
67
# File 'lib/animation.rb', line 65

def length
  @length
end

#modeObject (readonly)

Returns the value of attribute mode.



65
66
67
# File 'lib/animation.rb', line 65

def mode
  @mode
end

#xObject (readonly)

Returns the value of attribute x.



65
66
67
# File 'lib/animation.rb', line 65

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



65
66
67
# File 'lib/animation.rb', line 65

def y
  @y
end