Package games.stendhal.client.gui.j2d
Class ImageEffect
java.lang.Object
games.stendhal.client.gui.j2d.ImageEffect
- All Implemented Interfaces:
SequenceSprite.SequenceSpriteListener
A graphical effect that attachs itself to an entity view, and removes itself
once all the animation frames have been drawn.
-
Constructor Summary
ConstructorDescriptionImageEffect(Entity2DView<? extends IEntity> view, String image)
Create a new ImageEffect. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when all the image frames have been drawn.
-
Constructor Details
-
ImageEffect
Create a new ImageEffect.- Parameters:
view
- the view where the effect binds itself toimage
- name of the image that is used for the the animation
-
-
Method Details
-
endSequence
public void endSequence()Description copied from interface:SequenceSprite.SequenceSpriteListener
Called when all the image frames have been drawn.- Specified by:
endSequence
in interfaceSequenceSprite.SequenceSpriteListener
-