class flixel.system.FlxList implements IFlxDestroyable

Available on all platforms

A miniature linked list class. * Useful for optimizing time-critical or highly repetitive tasks! * See FlxQuadTree for how to use it, IF YOU DARE.

Class Fields

static var _NUM_CACHED_FLX_LIST:Int

Pooling mechanism, when FlxLists are destroyed, they get added to this collection, and when they get recycled they get removed.

static function clearCache():Void

Clear cached List nodes. You might want to do this when loading new levels (probably not though, no need to clear cache unless you run into memory problems).

static function recycle():FlxList

Recycle a cached Linked List, or creates a new one if needed.

Instance Fields

var next:FlxList

Stores a reference to the next link in the list.

var object:FlxObject

Stores a reference to a FlxObject.

function destroy():Void

Clean up memory.