ComponentManager class

Manages als components of all entities.

Inheritance
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
world World
The World where this manager resides.
no setterinherited

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 given entity.
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