ProspectPool<T extends Hitbox<T>> class

This pool is used to not create unnecessary CollisionProspect objects during collision detection, but to re-use the ones that have already been created.

Constructors

ProspectPool({int incrementSize = 1000})

Properties

hashCode int
The hash code for this object.
no setterinherited
incrementSize int
How much the pool should increase in size every time it needs to be made larger.
final
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

expand(T dummyItem) → void
The size of the pool will expand with incrementSize amount of CollisionProspects that are initially populated with two dummyItems.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) CollisionProspect<T>