Class: DXRuby::Tiled::PointObject
Instance Attribute Summary
Attributes inherited from TMEObject
#id, #name, #properties, #type
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(x, y, width, height, options = {}) ⇒ PointObject
58
59
60
61
|
# File 'lib/dxruby_tiled/object.rb', line 58
def initialize(x, y, width, height, options = {})
super x, y, options
self.collision = [0, 0]
end
|
Class Method Details
.create_from_hash(hash) ⇒ Object
54
55
56
|
# File 'lib/dxruby_tiled/object.rb', line 54
def self.create_from_hash(hash)
self.new(hash[:x], hash[:y], hash)
end
|
Instance Method Details
#draw ⇒ Object
63
|
# File 'lib/dxruby_tiled/object.rb', line 63
def draw; end
|