Packagecom.whirled.contrib.platformer.game
Classpublic class CollisionHandler
SubclassesAttackCollisionHandler, BounceCollisionHandler, HoverCollisionHandler, ShotCollisionHandler, WalkableCollisionHandler



Protected Properties
 PropertyDefined by
  _handledClass : Class
CollisionHandler
Public Methods
 MethodDefined by
  
CollisionHandler
  
collide(source:Object, target:Object, cd:ColliderDetails):void
CollisionHandler
  
handlesObject(o:Object):Boolean
Returns true if this handler handles collisions for this class.
CollisionHandler
  
Returns true if this handler handles subclasses of the supplied handler.
CollisionHandler
  
reset():void
CollisionHandler
Property detail
_handledClassproperty
protected var _handledClass:Class
Constructor detail
CollisionHandler()constructor
public function CollisionHandler(c:Class)Parameters
c:Class
Method detail
collide()method
public function collide(source:Object, target:Object, cd:ColliderDetails):voidParameters
source:Object
 
target:Object
 
cd:ColliderDetails
handlesObject()method 
public function handlesObject(o:Object):Boolean

Returns true if this handler handles collisions for this class.

Parameters
o:Object

Returns
Boolean
handlesSubclass()method 
public function handlesSubclass(ch:CollisionHandler):Boolean

Returns true if this handler handles subclasses of the supplied handler.

Parameters
ch:CollisionHandler

Returns
Boolean
reset()method 
public function reset():void