Package controller
Class EntityController
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Entity>
,Collection<Entity>
,Set<Entity>
Keeps a set of entities and calls their update method every frame.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
update()
Removes deletable entities and calls the update and draw method for every registered entity.Methods inherited from class controller.AbstractController
add, contains, remove
Methods inherited from class java.util.LinkedHashSet
spliterator
Methods inherited from class java.util.HashSet
clear, clone, isEmpty, iterator, size, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
EntityController
public EntityController()
-
-
Method Details
-
update
public void update()Removes deletable entities and calls the update and draw method for every registered entity.- Specified by:
update
in classAbstractController<Entity>
-