Sweep<T extends Hitbox<T>> class

Inheritance

Constructors

Sweep({List<T>? items})

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<T>
Returns a flat List of items regardless of what data structure is used to store collision information.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(T item) → void
Adds an item to the broadphase. Should be called in a CollisionDetection class while adding a hitbox into its collision detection system.
override
addAll(Iterable<T> items) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query() Iterable<CollisionProspect<T>>
Returns the potential hitbox collisions
override
remove(T item) → void
Removes an item from the broadphase. Should be called in a CollisionDetection class while removing a hitbox from its collision detection system.
override
removeAll(Iterable<T> items) → void
inherited
toString() String
A string representation of this object.
inherited
update() → void
This method can be used if there are things that needs to be prepared in each tick.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited