Examples of NPC


Examples of tyrelion.objects.Npc

      npcs[i] = new Npc(id, 0, 0, animation, helloText);
    }
  }
 
  public Npc getNpc(int id) {
    Npc npc = null;
    for (Npc e : npcs) {
      if (id == e.getUid()) {
        npc = e;
        break;
      }
View Full Code Here

Examples of tyrelion.objects.Npc

        Element e = (Element) childs.get(i);
        int id = e.getAttribute("id").getIntValue();
        int posX = e.getAttribute("posX").getIntValue();
        int posY = e.getAttribute("posY").getIntValue();
       
        Npc npc = NpcLoader.getInstance().getNpc(id);
        npc.setX(posX);
        npc.setY(posY);
       
        npcs.addNpc(npc);
      }
    } catch (Exception e) {
      e.printStackTrace();
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.