Package org.jdesktop.wonderland.server.cell.view

Examples of org.jdesktop.wonderland.server.cell.view.AvatarCellMO


    public void clientDisconnected(WonderlandClientSender sender,
                                   WonderlandClientID clientID)
    {
        UserMO user = WonderlandContext.getUserManager().getUser(clientID);
        AvatarCellMO avatar = user.getAvatar(clientID, viewID);
        if (avatar == null) {
            logger.severe("clientDetached has null avatar for session");
            return;
        }
       
        avatar.detach();    // Detach avatar from world

        AvatarCellCacheMO acc = avatar.getCellCache();
        acc.logout(clientID);
    }
View Full Code Here


   
    private ViewCreateResponseMessage createAvatar(WonderlandClientSender sender,
                                                     WonderlandClientID clientID,
                                                     CellHierarchyMessage msg) {
        UserMO user = WonderlandContext.getUserManager().getUser(clientID);
        AvatarCellMO avatar = user.getAvatar(clientID, msg.getViewID());
        if (avatar == null) {
            user.getReference().getForUpdate(); // Mark for update
            avatar = new AvatarCellMO(user, clientID);
            viewID = msg.getViewID();
            user.putAvatar(clientID, viewID, avatar);
        }
       
        // Set the properties for this connection in the cell cache
        avatar.getCellCache().setConnectionProperties(connectionProperties);
       
        avatar.getCellCache().login(sender, clientID);
       
        return new ViewCreateResponseMessage(msg.getMessageID(), avatar.getCellID());
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.server.cell.view.AvatarCellMO

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.