Package games.stendhal.client.sprite

Examples of games.stendhal.client.sprite.SpriteCache


   *            The outfit code.
   *
   * @return An walking state tileset.
   */
  public Sprite getOutfit(final int code) {
    final SpriteCache cache = SpriteCache.get();

    final OutfitRef reference = new OutfitRef(code);

    Sprite sprite = cache.get(reference);

    if (sprite == null) {
      sprite = buildOutfit(code);
      cache.add(reference, sprite);
    }

    return sprite;
  }
View Full Code Here


   * @param renderers slave layers
   */
  private void createComposites(List<TileRenderer> renderers) {
    int size = width * height;
    spriteMap = new Sprite[size];
    SpriteCache cache = SpriteCache.get();
    int layers = renderers.size();
   
    List<Sprite> slaveSprites = new ArrayList<Sprite>(layers);
   
    for (int i = 0; i < size; i++) {
View Full Code Here

TOP

Related Classes of games.stendhal.client.sprite.SpriteCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.