EntitySystem class abstract
The most raw entity system. It should not typically be used, but you can create your own entity system handling by extending this. It is recommended that you use the other provided entity system implementations.
There is no need to ever call any other method than process on objects of this class.
Constructors
- EntitySystem(Aspect aspect)
-
Creates an EntitySystem with
aspect
.
Properties
- delta → double
-
Returns the delta that has elapsed since the last update of the world.
no setter
- frame → int
-
Returns how often the systems in this group have been processed.
no setter
- group → int
-
Returns the group of this EntitySystem.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- passive → bool
-
Returns
true
if this EntitySystem is passive.no setter - 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 setter
- world → World
-
Returns the World this EntitySystem belongs to.
no setter
Methods
-
addComponent<
T extends Component> (int entity, T component) → void -
Add a
component
to anentity
. -
begin(
) → void - Called before processing of entities begins.
-
checkProcessing(
) → bool - Returns true if the system should be processed, false if not.
-
deleteFromWorld(
int entity) → void -
Delete
entity
from the world. -
destroy(
) → void - Gets called if the world gets destroyed. Override if there is cleanup to do.
-
end(
) → void - Called after the processing of entities ends.
-
initialize(
) → void - Override to implement code that gets executed when systems are initialized.
-
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,
-
processEntities(
Iterable< int> entities) → void -
Any implementing entity system must implement this method and the logic
to process the given
entities
of the system. -
removeComponent<
T extends Component> (int entity) → void -
Remove the component with type
T
from anentity
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited