public class PropAnimationController<T extends Prop> extends EntityAnimationController<T>
EntityAnimationController.AnimationRule
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_IDENTIFIER |
Constructor and Description |
---|
PropAnimationController(T prop) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
getCurrentSprite() |
static java.lang.String |
getSpriteName(Prop prop,
boolean appendState) |
static java.lang.String |
getSpriteName(Prop prop,
PropState state,
boolean appendState) |
boolean |
isAutoScaling() |
void |
update()
This method is called by the game loop on all objects that need to update
their attributes.
|
addAnimationRule, getDefaultSpritePrefixes, getEntity, getSpritePrefix, scaleSprite, scaleSprite, setAutoScaling, setSpritePrefix
add, add, addListener, attach, buildCurrentCacheKey, detach, getAffineTransform, getAnimation, getAnimations, getCurrentAnimation, getCurrentSprite, getDefaultAnimation, getImageEffects, hasAnimation, isPlaying, playAnimation, remove, remove, removeListener, setAffineTransform, setDefaultAnimation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, addListener, getAffineTransform, getAnimation, getAnimations, getCurrentAnimation, getCurrentSprite, getDefaultAnimation, getImageEffects, hasAnimation, isPlaying, playAnimation, remove, remove, removeListener, setAffineTransform, setDefaultAnimation
attach, detach
public static final java.lang.String PROP_IDENTIFIER
public PropAnimationController(T prop)
public java.awt.image.BufferedImage getCurrentSprite()
getCurrentSprite
in interface IAnimationController
getCurrentSprite
in class AnimationController
public void update()
IUpdateable
update
in interface IUpdateable
update
in class EntityAnimationController<T extends Prop>
public boolean isAutoScaling()
isAutoScaling
in interface IEntityAnimationController
isAutoScaling
in class EntityAnimationController<T extends Prop>
public static java.lang.String getSpriteName(Prop prop, boolean appendState)