org.jdesktop.wonderland.common.cell.messages
Class MovableMessage

java.lang.Object
  extended by org.jdesktop.wonderland.common.messages.Message
      extended by org.jdesktop.wonderland.common.cell.messages.CellMessage
          extended by org.jdesktop.wonderland.common.cell.messages.MovableMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MovableAvatarMessage

public class MovableMessage
extends CellMessage

Messages to/from MovableCells

Author:
paulby
See Also:
Serialized Form

Nested Class Summary
static class MovableMessage.ActionType
          MOVE_REQUEST - client asking the server to move cell MOVED - server informing clients cell has moved
 
Constructor Summary
protected MovableMessage(CellID cellID, MovableMessage.ActionType actionType)
           
 
Method Summary
 MovableMessage.ActionType getActionType()
           
 CellTransform getCellTransform()
          Return a new CellTransform with the values from this MovableMessage
 com.jme.math.Quaternion getRotation()
           
 float getScale()
           
 com.jme.math.Vector3f getTranslation()
           
static MovableMessage newMovedMessage(CellID cellID, CellTransform transform)
           
static MovableMessage newMovedMessage(CellID cellID, com.jme.math.Vector3f translation, com.jme.math.Quaternion rotation)
           
static MovableMessage newMovedMessage(CellID cellID, com.jme.math.Vector3f translation, com.jme.math.Quaternion rotation, float scale)
           
static MovableMessage newMoveRequestMessage(CellID cellID, CellTransform transform)
           
static MovableMessage newMoveRequestMessage(CellID cellID, com.jme.math.Vector3f translation, com.jme.math.Quaternion rotation)
           
static MovableMessage newMoveRequestMessage(CellID cellID, com.jme.math.Vector3f translation, com.jme.math.Quaternion rotation, float scale)
           
protected  void setRotation(com.jme.math.Quaternion orientation)
           
 void setScale(float scale)
           
protected  void setTranslation(com.jme.math.Vector3f locationVW)
           
 
Methods inherited from class org.jdesktop.wonderland.common.cell.messages.CellMessage
getCellID, getSenderID, setCellID, setSenderID
 
Methods inherited from class org.jdesktop.wonderland.common.messages.Message
getMessageID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovableMessage

protected MovableMessage(CellID cellID,
                         MovableMessage.ActionType actionType)
Method Detail

getTranslation

public com.jme.math.Vector3f getTranslation()

setTranslation

protected void setTranslation(com.jme.math.Vector3f locationVW)

getRotation

public com.jme.math.Quaternion getRotation()

setRotation

protected void setRotation(com.jme.math.Quaternion orientation)

getScale

public float getScale()
Returns:
the scale

setScale

public void setScale(float scale)
Parameters:
scale - the scale to set

getActionType

public MovableMessage.ActionType getActionType()

newMovedMessage

public static MovableMessage newMovedMessage(CellID cellID,
                                             CellTransform transform)

newMovedMessage

public static MovableMessage newMovedMessage(CellID cellID,
                                             com.jme.math.Vector3f translation,
                                             com.jme.math.Quaternion rotation)

newMovedMessage

public static MovableMessage newMovedMessage(CellID cellID,
                                             com.jme.math.Vector3f translation,
                                             com.jme.math.Quaternion rotation,
                                             float scale)

newMoveRequestMessage

public static MovableMessage newMoveRequestMessage(CellID cellID,
                                                   CellTransform transform)

newMoveRequestMessage

public static MovableMessage newMoveRequestMessage(CellID cellID,
                                                   com.jme.math.Vector3f translation,
                                                   com.jme.math.Quaternion rotation)

newMoveRequestMessage

public static MovableMessage newMoveRequestMessage(CellID cellID,
                                                   com.jme.math.Vector3f translation,
                                                   com.jme.math.Quaternion rotation,
                                                   float scale)

getCellTransform

public CellTransform getCellTransform()
Return a new CellTransform with the values from this MovableMessage

Returns:


Open Wonderland - http://openwonderland.org