Package tyrelion.objects

Examples of tyrelion.objects.Npc


     
      for (int j = 0; j < texts.size(); j++) {
        Element elem = (Element) texts.get(j);
        helloText[j] = elem.getTextNormalize();
      }
      npcs[i] = new Npc(id, 0, 0, animation, helloText);
    }
  }
View Full Code Here


      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

        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

Related Classes of tyrelion.objects.Npc

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.