class Gosuplus::GUI::Icon
Attributes
body[RW]
Public Class Methods
new(image, position)
click to toggle source
# File lib/Gosuplus/gui/icon.rb, line 7 def initialize(image, position) @image = image @body = Body.new(position, image.width, image.height) end
Public Instance Methods
draw()
click to toggle source
# File lib/Gosuplus/gui/icon.rb, line 13 def draw; @image.draw(@body.position.x, @body.position.y, 499); end
update()
click to toggle source
# File lib/Gosuplus/gui/icon.rb, line 12 def update; end