IntervalEntitySystem class abstract
A system that processes entities at a interval in milliseconds. A typical usage would be a collision system or physics system.
- Inheritance
-
- Object
- EntitySystem
- IntervalEntitySystem
- Implementers
Constructors
- IntervalEntitySystem(double interval, Aspect aspect)
-
Create an IntervalEntitySystem with the specified
interval
andaspect
.
Properties
- delta → double
-
Returns the accumulated delta since the system was last invoked.
no setteroverride
- frame → int
-
Returns how often the systems in this group have been processed.
no setterinherited
- group → int
-
Returns the group of this EntitySystem.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- interval → double
-
The interval in which the system will be processed.
final
- passive → bool
-
Returns
true
if this EntitySystem is passive.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time → double
-
Returns the time that has elapsed for the systems in this group since
the game has started (sum of all deltas).
no setterinherited
- world → World
-
Returns the World this EntitySystem belongs to.
no setterinherited
Methods
-
addComponent<
T extends Component> (int entity, T component) → void -
Add a
component
to anentity
.inherited -
begin(
) → void -
Called before processing of entities begins.
inherited
-
checkProcessing(
) → bool -
Returns true if the system should be processed, false if not.
override
-
deleteFromWorld(
int entity) → void -
Delete
entity
from the world.inherited -
destroy(
) → void -
Gets called if the world gets destroyed. Override if there is cleanup to
do.
inherited
-
end(
) → void -
Resets the accumulated delta to 0.
override
-
initialize(
) → void -
Override to implement code that gets executed when systems are
initialized.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
) → void -
This is the only method that is supposed to be called from outside the
library,
inherited
-
processEntities(
Iterable< int> entities) → void -
Any implementing entity system must implement this method and the logic
to process the given
entities
of the system.inherited -
removeComponent<
T extends Component> (int entity) → void -
Remove the component with type
T
from anentity
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited