ComponentManager class
Manages als components of all entities.
- Inheritance
- Implementers
Properties
Methods
-
added(
int entity) → void -
Called when an
entity
is added to the world.inherited -
deleted(
int entity) → void -
Called when an
entity
is being deleted from the world.inherited -
destroy(
) → void -
Called when the world gets destroyed. Override if you need to clean up
your manager.
inherited
-
getComponent<
T extends Component> (int entity, ComponentType componentType) → T? -
Returns the component of type
T
for the givenentity
. -
getComponentsByType<
T extends Component> (ComponentType type) → List< T> -
Returns all components of
ComponentType type
. -
getComponentsFor(
int entity) → List< Component> -
Returns all components of
entity
. -
initialize(
) → void -
Override to implement code that gets executed when managers are
initialized.
override
-
isUpdateNeededForSystem(
EntitySystem system) → bool -
Returns true if the list of entities of
system
need to be updated. -
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