Package com.l2client.controller.entity

Examples of com.l2client.controller.entity.EntityManager.addComponent()


    VisualComponent vis = new VisualComponent();
    EnvironmentComponent env = new EnvironmentComponent();
    TargetComponent tgt = new TargetComponent();
    LoggingComponent log = new LoggingComponent();
   
    em.addComponent(ent.getId(), env);
    em.addComponent(ent.getId(), l2j);
    em.addComponent(ent.getId(), pos);   
    em.addComponent(ent.getId(), vis);
    em.addComponent(ent.getId(), tgt);
    em.addComponent(ent.getId(), log);
View Full Code Here


    EnvironmentComponent env = new EnvironmentComponent();
    TargetComponent tgt = new TargetComponent();
    LoggingComponent log = new LoggingComponent();
   
    em.addComponent(ent.getId(), env);
    em.addComponent(ent.getId(), l2j);
    em.addComponent(ent.getId(), pos);   
    em.addComponent(ent.getId(), vis);
    em.addComponent(ent.getId(), tgt);
    em.addComponent(ent.getId(), log);
       
View Full Code Here

    TargetComponent tgt = new TargetComponent();
    LoggingComponent log = new LoggingComponent();
   
    em.addComponent(ent.getId(), env);
    em.addComponent(ent.getId(), l2j);
    em.addComponent(ent.getId(), pos);   
    em.addComponent(ent.getId(), vis);
    em.addComponent(ent.getId(), tgt);
    em.addComponent(ent.getId(), log);
       
    //done here extra as in update values will be left untouched
View Full Code Here

    LoggingComponent log = new LoggingComponent();
   
    em.addComponent(ent.getId(), env);
    em.addComponent(ent.getId(), l2j);
    em.addComponent(ent.getId(), pos);   
    em.addComponent(ent.getId(), vis);
    em.addComponent(ent.getId(), tgt);
    em.addComponent(ent.getId(), log);
       
    //done here extra as in update values will be left untouched
    pos.startPos.set(e.getX(), e.getY(), e.getZ());
View Full Code Here

   
    em.addComponent(ent.getId(), env);
    em.addComponent(ent.getId(), l2j);
    em.addComponent(ent.getId(), pos);   
    em.addComponent(ent.getId(), vis);
    em.addComponent(ent.getId(), tgt);
    em.addComponent(ent.getId(), log);
       
    //done here extra as in update values will be left untouched
    pos.startPos.set(e.getX(), e.getY(), e.getZ());
    pos.position.set(pos.startPos);
View Full Code Here

    em.addComponent(ent.getId(), env);
    em.addComponent(ent.getId(), l2j);
    em.addComponent(ent.getId(), pos);   
    em.addComponent(ent.getId(), vis);
    em.addComponent(ent.getId(), tgt);
    em.addComponent(ent.getId(), log);
       
    //done here extra as in update values will be left untouched
    pos.startPos.set(e.getX(), e.getY(), e.getZ());
    pos.position.set(pos.startPos);
    pos.goalPos.set(pos.position);
View Full Code Here

    EnvironmentComponent env = new EnvironmentComponent();
    //FIXME parallel create problems, synchronize creation and essential components or at least create/check of components
System.out.println("createNpc pre createEntity "+e.getObjectId());
    Entity ent = em.createEntity(e.getObjectId());
System.out.println("createNpc post createEntity "+e.getObjectId());
    em.addComponent(ent.getId(), pos);
System.out.println("createNpc post Add pos "+e.getObjectId());
    em.addComponent(ent.getId(), vis);
    System.out.println("createNpc post Add vis "+e.getObjectId());
    em.addComponent(ent.getId(), env);
    System.out.println("createNpc post Add env "+e.getObjectId());
View Full Code Here

System.out.println("createNpc pre createEntity "+e.getObjectId());
    Entity ent = em.createEntity(e.getObjectId());
System.out.println("createNpc post createEntity "+e.getObjectId());
    em.addComponent(ent.getId(), pos);
System.out.println("createNpc post Add pos "+e.getObjectId());
    em.addComponent(ent.getId(), vis);
    System.out.println("createNpc post Add vis "+e.getObjectId());
    em.addComponent(ent.getId(), env);
    System.out.println("createNpc post Add env "+e.getObjectId());
    em.addComponent(ent.getId(), l2j);
    System.out.println("createNpc post Add l2j "+e.getObjectId());
View Full Code Here

System.out.println("createNpc post createEntity "+e.getObjectId());
    em.addComponent(ent.getId(), pos);
System.out.println("createNpc post Add pos "+e.getObjectId());
    em.addComponent(ent.getId(), vis);
    System.out.println("createNpc post Add vis "+e.getObjectId());
    em.addComponent(ent.getId(), env);
    System.out.println("createNpc post Add env "+e.getObjectId());
    em.addComponent(ent.getId(), l2j);
    System.out.println("createNpc post Add l2j "+e.getObjectId());
   
    updateComponents(e, ent, pos, l2j, env, vis);//vis might take some time so we already added pos for updates
View Full Code Here

System.out.println("createNpc post Add pos "+e.getObjectId());
    em.addComponent(ent.getId(), vis);
    System.out.println("createNpc post Add vis "+e.getObjectId());
    em.addComponent(ent.getId(), env);
    System.out.println("createNpc post Add env "+e.getObjectId());
    em.addComponent(ent.getId(), l2j);
    System.out.println("createNpc post Add l2j "+e.getObjectId());
   
    updateComponents(e, ent, pos, l2j, env, vis);//vis might take some time so we already added pos for updates
    System.out.println("createNpc end  "+e.getObjectId());
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.