Sha256: d143f15098b19368e1f44af678e4882fd11abda5e64dc4c7fc41d56f039fa40c
Contents?: true
Size: 364 Bytes
Versions: 6
Compression:
Stored size: 364 Bytes
Contents
require 'director' class PhysicalDirector < Director def find_physical_obj(shape) @actors.select{|a|a.respond_to?(:shape) && a.shape==shape}.first end def remove_physical_obj(shape) act = find_physical_obj shape act.remove_self act end def actor_removed(act) act.stage.unregister_physical_object act if act.is? :physical end end
Version data entries
6 entries across 6 versions & 1 rubygems