Class Index | File Index

Classes


Class CAAT.Module.Collision.QuadTree


Defined in: Quadtree.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
For each quadtree level this keeps the list of overlapping elements.
 
For each quadtree, this quadData keeps another 4 quadtrees up to the maximum recursion level.
Method Summary
Method Attributes Method Name and Description
<private>  
 
create(l, t, r, b, backgroundElements, minWidth, maxElements)
 
Call this method to thet the list of colliding elements with the parameter rectangle.
Class Detail
CAAT.Module.Collision.QuadTree()
Field Detail
bgActors
For each quadtree level this keeps the list of overlapping elements.

quadData
For each quadtree, this quadData keeps another 4 quadtrees up to the maximum recursion level.
Method Detail
<private> __getOverlappingActorList(actorList)
Parameters:
actorList

create(l, t, r, b, backgroundElements, minWidth, maxElements)
Parameters:
l
t
r
b
backgroundElements
minWidth
maxElements

{Array} getOverlappingActors(rectangle)
Call this method to thet the list of colliding elements with the parameter rectangle.
Parameters:
rectangle
Returns:
{Array}

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:19 GMT-0700 (PDT)