Uses of Interface
games.stendhal.client.sprite.Sprite
Package
Description
the Stendhal Client.
handling of images for world objects and the user interface
-
Uses of Sprite in games.stendhal.client
Modifier and TypeMethodDescriptionOutfitStore.getAdjustedOutfit(String strcode, OutfitColor color, Color adjColor, Composite blend)
Get an outfit with color adjustment, such as a player in colored light.OutfitStore.getFailsafeOutfit()
Get the failsafe outfit.OutfitStore.getLayerSprite(String layer, int index)
Get the layer sprite tileset.OutfitStore.getLayerSprite(String layer, int index, OutfitColor color)
Get the layer sprite tileset.Modifier and TypeMethodDescriptionvoid
GameScreen.addStaticText(Sprite sprite, int textLength, int priority)
Add a text box bound to the bottom of the screen, with a timeout dependent on the text length.void
GameScreen.addTextBox(Sprite sprite, double x, double y, int textLength)
Adds a text bubble at a give position. -
Uses of Sprite in games.stendhal.client.gui.j2d
Modifier and TypeMethodDescriptionAchievementBoxFactory.createAchievementBox(String title, String description, String category)
Create a sprite for a reached achievementTextBoxFactory.createFancyTextBox(String text, Color textColor, int width, int leftMargin, int rightMargin, int topMargin, int bottomMargin, BackgroundPainter background)
Create a text box with an image background.TextBoxFactory.createTextBox(String text, int width, Color textColor, Color fillColor, boolean isTalking)
Creates a text box sprite.ModifierConstructorDescriptionRemovableSprite(Sprite sprite, int x, int y, long persistTime)
Create a new text object. -
Uses of Sprite in games.stendhal.client.gui.j2d.entity
Modifier and TypeMethodDescriptionvoid
Entity2DView.attachSprite(Sprite sprite, HorizontalAlignment xAlign, VerticalAlignment yAlign, int xOffset, int yOffset)
Attach a sprite to the view.void
Entity2DView.detachSprite(Sprite sprite)
Detach a sprite that has been previously attached to the view.protected void
Set the sprite. -
Uses of Sprite in games.stendhal.client.gui.j2d.entity.helpers
Modifier and TypeMethodDescriptionstatic void
DrawingHelper.drawAlignedSprite(Graphics2D g2d, Sprite sprite, HorizontalAlignment horizontalAlign, VerticalAlignment verticalAlign, int x, int y, int width, int height)
Align a sprite in a defined area, which is defined by upper left corner (x,y) and width to the right and height downwards -
Uses of Sprite in games.stendhal.client.gui.styled
ModifierConstructorDescriptionPixmapBorder(Sprite template, boolean raised)
Create a newPixmapBorder
. -
Uses of Sprite in games.stendhal.client.sprite
Modifier and TypeClassDescriptionclass
This is a sprite that transparently animates itself when drawn.class
A sprite that merges severalSprite
objects to one, and pre-renders those it can so that they do not need to be composited every time the sprite is drawn.class
An empty (non-drawing) sprite.class
class
A sprite to be displayed on the screen.class
An animated sprite that draw the frames once, and then signals the attached listener.class
Outlined text representation of a string.Modifier and TypeFieldDescriptionprotected Sprite[]
AnimatedSprite.frames
The frame sprites.protected Sprite
AnimatedSprite.sprite
The current sprite.Modifier and TypeMethodDescriptionAnimatedSprite.createRegion(int x, int y, int width, int height, Object ref)
Create a sub-region of this sprite.CompositeSprite.createRegion(int x, int y, int width, int height, Object ref)
EmptySprite.createRegion(int x, int y, int width, int height, Object ref)
Create a sub-region of this sprite.FlippedSprite.createRegion(int x, int y, int width, int height, Object ref)
ImageSprite.createRegion(int x, int y, int width, int height, Object ref)
Create a sub-region of this sprite.Sprite.createRegion(int x, int y, int width, int height, Object ref)
Create a sub-region of this sprite.Get a cached sprite.SpriteStore.getColoredSprite(String ref, Color color)
Get a colored version of a sprite.SpriteStore.getCombatSprite(String icon)
Retrieve a sprite from the "combat" folderstatic Sprite
CompositeSprite.getComposite(SpriteCache cache, List<Sprite> slaves, Composite blend, Sprite adj)
Get a composite of at least oneSprite
.SpriteStore.getEmptySprite()
Get an empty sprite with the size of a single tile.SpriteStore.getEmptySprite(int width, int height)
Get an empty sprite.SpriteStore.getFailsafe()
Get the failsafe sprite.ImageSprite.getFrame(int xIndex, int yIndex)
Retrieves a single frame from the image.SpriteStore.getModifiedSprite(String baseRef, Color color, Composite blend)
Get a modified version of a sprite.Retrieve a sprite from the store.SpriteTileset.getSprite(int index)
Get the sprite for an index tile of a tileset.Tileset.getSprite(int index)
Get the sprite for an index tile of a tileset.Get the animated sprite for an indexed tile of a tileset.SpriteStore.getStatusSprite(String icon)
Retrieve a sprite from the "status" folderCreate a sprite tile (sub-region).Sprite[]
Get sprite tiles from a sprite using pixel units.SpriteStore.modifySprite(Sprite base, Color color, Composite blend, Object ref)
Get a modified variant of a sprite.Modifier and TypeMethodDescriptionvoid
Add a sprite to the cache.SpriteStore.getAnimatedSprite(Sprite sprite, int delay)
Get an animated sprite from a sprite.SpriteStore.getAnimatedSprite(Sprite sprite, int width, int delay)
Get an animated sprite from a sprite.SpriteStore.getAnimatedSprite(Sprite sprite, int x, int y, int frameCount, int width, int height, int delay)
Create an animated sprite from a tile sprite using pixel units.static Sprite
CompositeSprite.getComposite(SpriteCache cache, List<Sprite> slaves, Composite blend, Sprite adj)
Get a composite of at least oneSprite
.Create a sprite tile (sub-region).Sprite[]
Get sprite tiles from a sprite using pixel units.SpriteStore.modifySprite(Sprite base, Color color, Composite blend, Object ref)
Get a modified variant of a sprite.Modifier and TypeMethodDescriptionstatic Sprite
CompositeSprite.getComposite(SpriteCache cache, List<Sprite> slaves, Composite blend, Sprite adj)
Get a composite of at least oneSprite
.ModifierConstructorDescriptionAnimatedSprite(Sprite[] frames, int delay, boolean animating)
Create an animated sprite from a set of frame sprites.FlippedSprite(Sprite orig, int flags)
ImageSprite(Sprite sprite)
Create an image sprite from another sprite.SequenceSprite(SequenceSprite.SequenceSpriteListener listener, Sprite[] frames, int delay)
Create a new SequenceSprite with constant delay between the frames.SpriteTileset(SpriteStore store, Sprite sprite, int size)
Create a tileset.