Package com.l2client.component

Examples of com.l2client.component.Component


    if(entityIds.contains(entityId)){
      HashMap<Class<? extends Component>, Component> set = entityComponents
      .get(entityId);
      if(set != null){
        Component[] arr = set.values().toArray(new Component[set.values().size()]);
        Component id = null;
        for(Component v : arr){
          if(v instanceof IdentityComponent)
            id = v; //remember id component for later removal
          else
            removeComponent(entityId, v);
View Full Code Here


      Entity e = id.getEntity();
      if(e != null)
        s.getSceneManager().changeWalkerNode(e,Action.REMOVE);
System.out.println("Starting to remove comps of "+id);     
      //FIXME check this is working correctly, what if we delete one which is currently updated, better queue for removal.
      Component pos = s.getEntityManager().getComponent(obj, PositioningComponent.class);
      s.getPosSystem().removeComponentForUpdate(pos);
      s.getJmeSystem().removeComponentForUpdate(pos);
      Component env = s.getEntityManager().getComponent(obj, EnvironmentComponent.class);
      s.getAnimSystem().removeComponentForUpdate(env);
System.out.println("Removed comps of "+id+" pos:"+pos+" env"+env);     
    } else {
System.out.println("ERROR!! Remove of "+id+" but no ID comp found!?! NO comps removed :-(");     
    }
View Full Code Here

TOP

Related Classes of com.l2client.component.Component

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.