Package org.jdesktop.mtgame

Examples of org.jdesktop.mtgame.EntityComponent


    /**
     * Returns true if the given entity belongs to a WindowSwing.
     */
    private static boolean isWindowSwingEntity (Entity entity) {
  // We know whether it is a WindowSwing entity by looking for the attached WindowSwingEntityComponent
  EntityComponent comp = entity.getComponent(InputManager.WindowSwingViewMarker.class);
  return comp != null;
    }
View Full Code Here


            }
        }
        logger.fine("WindowSwing hit");
        logger.fine("Pick hit entity = " + ret.entity);

        EntityComponent comp = ret.entity.getComponent(WindowSwing.WindowSwingViewReference.class);
        assert comp != null;
        final View2D view = ((WindowSwing.WindowSwingViewReference) comp).getView();
        WindowSwing windowSwing = (WindowSwing) view.getWindow();

        // Keep track of the last window we hit
View Full Code Here

TOP

Related Classes of org.jdesktop.mtgame.EntityComponent

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.