Package games.stendhal.client.sprite
Class SpriteTileset
java.lang.Object
games.stendhal.client.sprite.SpriteTileset
- All Implemented Interfaces:
Tileset
A tileset that is created from a source sprite.
-
Constructor Summary
ConstructorDescriptionSpriteTileset(SpriteStore store, Sprite sprite, int size)
Create a tileset.SpriteTileset(SpriteStore store, String filename, Color color, Composite blend)
Create a tileset. -
Method Summary
-
Constructor Details
-
SpriteTileset
Create a tileset.- Parameters:
store
- A sprite store.filename
- A sprite resource path.color
- Adjustment color for the tileset, ornull
blend
- Blend mode for applying the adjustment color, ornull
-
SpriteTileset
Create a tileset.- Parameters:
store
- A sprite store.sprite
- A source sprite.size
- The tile size.
-
-
Method Details
-
getSize
public int getSize()Get the number of tiles. -
getSprite
Get the sprite for an index tile of a tileset.
-