lib/units/thing.rb in gosu_extensions-0.3.0 vs lib/units/thing.rb in gosu_extensions-0.3.1

- old
+ new

@@ -1,10 +1,11 @@ # Thing is a physical version of a sprite. Collides and has a mass and a moment. # class Thing < Sprite attr_reader :shape + delegate :collision_type, :to => :shape def mass 0.1 end def moment @@ -25,12 +26,9 @@ :segment => CP::Shape::Segment # :segment, ... # TODO :image => # Special, just traces the extent of the image. } def shape form, *args form_shape_class_mapping = @@form_shape_class_mapping - define_method :radius do - args.first # TODO fix! - end InitializerHooks.prepend self do shape_class = form_shape_class_mapping[form] raise "Shape #{form} does not exist." unless shape_class params = [] \ No newline at end of file