Examples of CellClientSession


Examples of org.jdesktop.wonderland.client.comms.CellClientSession

       
        // setup a classloader with the module jars
        loader = setupClassLoader();
       
        // create a session
        session = new CellClientSession(server, loader) {
            @Override
            protected CellCache createCellCache() {
                getCellCacheConnection().addListener(boundsPanel);
                return boundsPanel;
            }
View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.CellClientSession

            ServerSessionManager mgr = LoginManager.getSessionManager(serverURL);
            session = mgr.createSession(new SessionCreator<CellClientSession>() {

                public CellClientSession createSession(ServerSessionManager sessionMgr,
                        WonderlandServerInfo serverInfo, ClassLoader loader) {
                    CellClientSession ccs = new CellClientSession(sessionMgr, serverInfo, loader) {

                        @Override
                        protected CellCache createCellCache() {
                            CellCacheBasicImpl impl = new CellCacheBasicImpl(this,
                                    getClassLoader(), getCellCacheConnection(),
                                    getCellChannelConnection()) {

                                @Override
                                protected CellRenderer createCellRenderer(Cell cell) {
                                    return null;
                                }
                            };

                            getCellCacheConnection().addListener(impl);
                            return impl;
                        }
                    };
                    ccs.addSessionStatusListener(Client3DSim.this);

                    final LocalAvatar avatar = ccs.getLocalAvatar();
                    avatar.addViewCellConfiguredListener(new ViewCellConfiguredListener() {

                        public void viewConfigured(LocalAvatar localAvatar) {
//                            MovableComponent mc =
//                                    avatar.getViewCell().getComponent(MovableComponent.class);
View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.CellClientSession

        System.err.println("USER "+startedClients+" group "+group);
       
        startedClients++;
       
        // login
        CellClientSession session = new CellClientSession(server);
        session.addSessionStatusListener(this);
        session.login(login);
       
        logger.info(getName() + " login succeeded");
       
        LocalAvatar avatar = session.getLocalAvatar();
       
        // pick a direction to move
//        int dir = (int) Math.random() * 10;
//        dir = 5;
//        if (dir < 2) {
View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.CellClientSession

        switch(status) {
            case ACTIVE :
                if (increasing) {
                    // TODO, check this is the local avatar
                    CellClientSession s = (CellClientSession)getCellCache().getSession();
                    if (s.getCellCacheConnection().getViewCellID().equals(getCellID()))
                        s.getLocalAvatar().viewCellConfigured(getCellID());
                   
                    MovableComponent mc = getComponent(MovableComponent.class);
                    if (mc != null && mc instanceof MovableAvatarComponent) {
                        movableComp = (MovableAvatarComponent) getComponent(MovableComponent.class);
                    }
                }
                break;
            case INACTIVE :
                if (!increasing) {
                    CellClientSession s = (CellClientSession)getCellCache().getSession();
                    if (s.getCellCacheConnection().getViewCellID().equals(getCellID()))
                        s.getLocalAvatar().viewCellConfigured(null);
                    movableComp = null;
                }
                break;
        }
    }
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.