org.jdesktop.wonderland.client.cell.view
Class LocalAvatar

java.lang.Object
  extended by org.jdesktop.wonderland.client.cell.view.LocalAvatar
All Implemented Interfaces:
ClientView

public class LocalAvatar
extends java.lang.Object
implements ClientView

The Avatar that is local to this client. Local means it's controlled by this client

Author:
paulby

Nested Class Summary
static interface LocalAvatar.ViewCellConfiguredListener
          A listener interface for notification when the ViewCell is attached to this LocalAvatar
 
Constructor Summary
LocalAvatar(WonderlandSession session)
           
 
Method Summary
 void addViewCellConfiguredListener(LocalAvatar.ViewCellConfiguredListener listener)
          Add a listener which will be notified when the cell is configured for this localAvatar
 ViewCell getViewCell()
          Return the ViewCell associated with this avatar, or null if the ViewCell has not been configured yet.
 java.lang.String getViewID()
          Return the id of this view
 void localMoveRequest(com.jme.math.Vector3f location, com.jme.math.Quaternion rotation)
          A request from this client to move the avatar.
 void removeViewCellConfiguredListener(LocalAvatar.ViewCellConfiguredListener listener)
           
 void serverInitialized(ViewCreateResponseMessage msg)
          Notification that the server view initialization has taken place
 void viewCellConfigured(CellID cellID)
          The ViewCell for this view has been configured on this client
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalAvatar

public LocalAvatar(WonderlandSession session)
Method Detail

localMoveRequest

public void localMoveRequest(com.jme.math.Vector3f location,
                             com.jme.math.Quaternion rotation)
A request from this client to move the avatar. This request is sent to the server, and if approved will be applied to the world

Parameters:
location -
rotation -

getViewID

public java.lang.String getViewID()
Description copied from interface: ClientView
Return the id of this view

Specified by:
getViewID in interface ClientView
Returns:

serverInitialized

public void serverInitialized(ViewCreateResponseMessage msg)
Description copied from interface: ClientView
Notification that the server view initialization has taken place

Specified by:
serverInitialized in interface ClientView

viewCellConfigured

public void viewCellConfigured(CellID cellID)
Description copied from interface: ClientView
The ViewCell for this view has been configured on this client

Specified by:
viewCellConfigured in interface ClientView

addViewCellConfiguredListener

public void addViewCellConfiguredListener(LocalAvatar.ViewCellConfiguredListener listener)
Add a listener which will be notified when the cell is configured for this localAvatar

Parameters:
listener -

removeViewCellConfiguredListener

public void removeViewCellConfiguredListener(LocalAvatar.ViewCellConfiguredListener listener)

getViewCell

public ViewCell getViewCell()
Return the ViewCell associated with this avatar, or null if the ViewCell has not been configured yet.

Returns:


Open Wonderland - http://openwonderland.org