AnimationComponent

public class AnimationComponent

The AnimationComponent class provides functionalities to manage and animate a ModeledEntity instance. It enables playing, stopping, and blending animations as well as scaling down and removing the entity with transitions.

Constructors

Link copied to clipboard
public void AnimationComponent(ModeledEntity modeledEntity)

Properties

Link copied to clipboard
public boolean isScalingDown

Functions

Link copied to clipboard
public boolean hasAnimation(String animationName)
Checks if the animation with the specified name exists for the current animation manager.
Link copied to clipboard
public void initializeAnimationManager(FileModelConverter fileModelConverter)
Internal use only - do not call manually
Link copied to clipboard
public boolean isScalingDown()
Link copied to clipboard
public boolean playAnimation(String animationName, boolean blendAnimation, boolean loop)
Plays an animation as set by the string name.
Link copied to clipboard
public boolean playDeathAnimation()
Plays the "death" animation for the entity using the animation manager.
Link copied to clipboard
Internal use only - do not call manually
Link copied to clipboard
public void setAnimationManager(AnimationManager animationManager)
Link copied to clipboard
public void stopCurrentAnimations()
Stops all currently playing animations
Link copied to clipboard
public void tick()
Internal use only - do not call manually