Class: Reflex::PolygonShape

Inherits:
Shape
  • Object
show all
Defined in:
lib/reflex/polygon_shape.rb

Instance Method Summary collapse

Methods inherited from Shape

#on_contact, #on_contact_begin, #on_contact_end

Methods included from HasTags

#clear_tags, #tag, #tag=, #tags, #untag

Methods included from HasFrame

#inset_by, #move_by, #move_to, #resize_by, #resize_to

Methods included from Hookable

#hook

Constructor Details

#initialize(polygon, *args, &block) ⇒ PolygonShape

Returns a new instance of PolygonShape.



12
13
14
15
# File 'lib/reflex/polygon_shape.rb', line 12

def initialize(polygon, *args, &block)
  super(*args, &block)
  self.polygon = polygon
end