Package org.jdesktop.mtgame

Examples of org.jdesktop.mtgame.Entity.removeEntity()


                    try {
                        Entity child = getEntity();
                        Entity parent = child.getParent();
                        if (parent!=null)
                            parent.removeEntity(child);
                        else
                            ClientContextJME.getWorldManager().removeEntity(child);
                        cleanupSceneGraph(child);
                    } catch(Exception e) {
                        System.err.println("NPE in "+this);
View Full Code Here


    public void detachFromViewEntity () {
        if (!attached) return;

        Entity viewEntity = view.getEntity();
        if (viewEntity == null) return;
        viewEntity.removeEntity(frameEntity);
        RenderComponent rcFrame = (RenderComponent) frameEntity.getComponent(RenderComponent.class);
        if (rcFrame != null) {
            rcFrame.setAttachPoint(null);
        }
        if (header != null) {
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.