Class: DXRuby::Tiled::PointObject
- 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
- #draw ⇒ Object
-
#initialize(x, y, width, height, options = {}) ⇒ PointObject
constructor
A new instance of PointObject.
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, = {}) super x, y, 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 |