Uses of Interface
games.stendhal.client.sprite.Sprite
Packages that use Sprite
Package
Description
the Stendhal Client.
the user interface including all dialogs, the main game window and
views for the game entities.
handling of images for world objects and the user interface
-
Uses of Sprite in games.stendhal.client
Methods in games.stendhal.client that return SpriteModifier 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, boolean busty) Get the layer sprite tileset.OutfitStore.getLayerSprite(String layer, int index, OutfitColor color) Get the layer sprite tileset.OutfitStore.getLayerSprite(String layer, int index, OutfitColor color, boolean busty) Get the layer sprite tileset.Methods in games.stendhal.client with parameters of type SpriteModifier and TypeMethodDescriptionvoidvoidGameScreen.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.voidGameScreen.addTextBox(Sprite sprite, double x, double y, int textLength) Adds a text bubble at a give position.voidGameScreen.addTextBox(Sprite sprite, Entity entity, int textLength) Adds a text bubble that follows an entity.static intGameScreenSpriteHelper.findFreeTextBoxPosition(Sprite sprite, int x, int sy) Adjust the position of boxes placed at the same point to make it clear for the player there are more than one.static intGameScreenSpriteHelper.keepSpriteOnMapX(Sprite sprite, int sx) Try to keep a sprite on the map.static intGameScreenSpriteHelper.keepSpriteOnMapY(Sprite sprite, int sy) Try to keep a sprite on the map. -
Uses of Sprite in games.stendhal.client.gui
Methods in games.stendhal.client.gui with parameters of type Sprite -
Uses of Sprite in games.stendhal.client.gui.j2d
Methods in games.stendhal.client.gui.j2d that return SpriteModifier 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.Constructors in games.stendhal.client.gui.j2d with parameters of type SpriteModifierConstructorDescriptionRemovableSprite(Sprite sprite, int x, int y, long persistTime) Creates a new text object.RemovableSprite(Sprite sprite, Entity entity, long persistTime) Creates a new text object. -
Uses of Sprite in games.stendhal.client.gui.j2d.entity
Fields in games.stendhal.client.gui.j2d.entity with type parameters of type SpriteModifier and TypeFieldDescriptionStateEntity2DView.spritesMap of named sprites.Methods in games.stendhal.client.gui.j2d.entity that return SpriteMethods in games.stendhal.client.gui.j2d.entity with parameters of type SpriteModifier and TypeMethodDescriptionvoidEntity2DView.attachSprite(Sprite sprite, HorizontalAlignment xAlign, VerticalAlignment yAlign, int xOffset, int yOffset) Attach a sprite to the view.voidEntity2DView.detachSprite(Sprite sprite) Detach a sprite that has been previously attached to the view.protected voidSet the sprite. -
Uses of Sprite in games.stendhal.client.gui.j2d.entity.helpers
Methods in games.stendhal.client.gui.j2d.entity.helpers with parameters of type SpriteModifier and TypeMethodDescriptionstatic voidDrawingHelper.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
Methods in games.stendhal.client.gui.styled that return SpriteConstructors in games.stendhal.client.gui.styled with parameters of type SpriteModifierConstructorDescriptionPixmapBorder(Sprite template, boolean raised) Create a newPixmapBorder. -
Uses of Sprite in games.stendhal.client.sprite
Classes in games.stendhal.client.sprite that implement SpriteModifier and TypeClassDescriptionclassThis is a sprite that transparently animates itself when drawn.classA sprite that merges severalSpriteobjects to one, and pre-renders those it can so that they do not need to be composited every time the sprite is drawn.classAn empty (non-drawing) sprite.classclassA sprite to be displayed on the screen.classAn animated sprite that draw the frames once, and then signals the attached listener.classOutlined text representation of a string.Fields in games.stendhal.client.sprite declared as SpriteModifier and TypeFieldDescriptionprotected Sprite[]AnimatedSprite.framesThe frame sprites.protected SpriteAnimatedSprite.spriteThe current sprite.Methods in games.stendhal.client.sprite that return SpriteModifier and TypeMethodDescriptionCreates an emoji sprite.AnimatedSprite.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 SpriteCompositeSprite.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.Methods in games.stendhal.client.sprite with parameters of type SpriteModifier and TypeMethodDescriptionvoidAdd 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 SpriteCompositeSprite.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.Method parameters in games.stendhal.client.sprite with type arguments of type SpriteModifier and TypeMethodDescriptionstatic SpriteCompositeSprite.getComposite(SpriteCache cache, List<Sprite> slaves, Composite blend, Sprite adj) Get a composite of at least oneSprite.Constructors in games.stendhal.client.sprite with parameters of type SpriteModifierConstructorDescriptionAnimatedSprite(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.