Package com.hobbitsadventure.io

Examples of com.hobbitsadventure.io.ImageFactory


  private boolean traversable;
  private int yOffset = 0;
 
  public TileClass(String id, boolean traversable, int yOffset) {
    this.id = id;
    ImageFactory imgFactory = new ImageFactory();
    this.sprite = imgFactory.getImage(id);
    this.traversable = traversable;
    this.yOffset = yOffset;
  }
View Full Code Here


  private boolean traversable;
  private int yOffset = 0;
  private boolean occludedByTerrain;
 
  public Thing(String id, boolean traversable, int yOffset, boolean occludedByTerrain) {
    ImageFactory imgFactory = new ImageFactory();
    this.sprite = imgFactory.getImage(id);
    this.traversable = traversable;
    this.yOffset = yOffset;
    this.occludedByTerrain = occludedByTerrain;
  }
View Full Code Here

*/
public class NpcClass {
  private BufferedImage sprite;
 
  public NpcClass(String id) {
    ImageFactory imgFactory = new ImageFactory();
    this.sprite = imgFactory.getImage(id);
  }
View Full Code Here

  // Position
  private int rowIndex;
  private int colIndex;
 
  public PlayerCharacter() {
    ImageFactory imgFactory = new ImageFactory();
    this.sprite = imgFactory.getImage("images/characters/character_enderman");
  }
View Full Code Here

TOP

Related Classes of com.hobbitsadventure.io.ImageFactory

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.