Package itumulator.display.animation
Class AnimationFactory
java.lang.Object
itumulator.display.animation.AnimationFactory
The AnimationFactory is used to determine which animations should be used for individual objects. It does so by comparing e (previous entities and their location in
World
) to e' (latest set of entitites and their location in World
).
By comparing the individual objects changes in location (and whether they still exist / are in the world) allow us to determine which animations to use.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetImages
(int length) Generates renders of animation sets for the next simulation stepvoid
void
-
Constructor Details
-
AnimationFactory
-
-
Method Details
-
setDisplayInformation
-
requestUpdate
public void requestUpdate() -
getImages
Generates renders of animation sets for the next simulation step- Parameters:
length
- is the amount of images to generate- Returns:
- a list of callable bufferedimages, generatable
-