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);