Class: DXRuby::Tiled::PointObject

Inherits:
TMEObject
  • Object
show all
Defined in:
lib/dxruby_tiled/object.rb

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

Returns a new instance of 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

#drawObject



63
# File 'lib/dxruby_tiled/object.rb', line 63

def draw; end