Class: Reflex::PolygonShape
Instance Method Summary collapse
-
#initialize(polygon, *args, &block) ⇒ PolygonShape
constructor
A new instance of PolygonShape.
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
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 |