Examples of TSRef


Examples of games.stendhal.client.sprite.TileSprite.TSRef

   * @return tile found in cache or new one created from sprite
   */
  public Sprite getTile(final Sprite sprite, final int x, final int y, final int width, final int height) {
    final SpriteCache cache = SpriteCache.get();

    final TSRef reference = TileSprite.createReference(sprite, x, y, width,
        height);

    Sprite tile = cache.get(reference);

    if (tile == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.