QuadTreePool

arcade.QuadTreePool (Class)

Object pool for QuadTree instances to reduce garbage collection overhead.

Instance Members

arcade
clearPool(): Void

arcade
create(x: Float, y: Float, width: Float, height: Float, ?maxObjects: Int = 10, ?maxLevels: Int = 4, ?level: Int = 0): QuadTree
Name Type Default
x Float
y Float
width Float
height Float
maxObjects Int 10
maxLevels Int 4
level Int 0
Returns
QuadTree

arcade
recycleAll(): Void

arcade
recycle(quadTree: QuadTree): Void
Name Type
quadTree QuadTree

arcade
new(): Void

Private Members