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

java.lang.Object
  extended by org.jdesktop.wonderland.common.messages.Message
      extended by org.jdesktop.wonderland.common.messages.ResponseMessage
          extended by org.jdesktop.wonderland.common.cell.messages.MovableMessageResponse
All Implemented Interfaces:
java.io.Serializable

public class MovableMessageResponse
extends ResponseMessage

Message from the server indicating that a move request was modified. This occurs if the server determines the cell is not permitted to move to the desired position.

Author:
paulby
See Also:
Serialized Form

Nested Class Summary
static class MovableMessageResponse.ActionType
          MOVE_MODIFIED - the final destination of the move requested by the user has been modified by the server
 
Method Summary
 MovableMessageResponse.ActionType getActionType()
           
 com.jme.math.Quaternion getRotation()
           
 float getScale()
           
 com.jme.math.Vector3f getTranslation()
           
static MovableMessageResponse newMoveModifiedMessage(MessageID msgID, com.jme.math.Vector3f translation, com.jme.math.Quaternion rotation, float scale)
           
 void setRotation(com.jme.math.Quaternion rotation)
           
 void setScale(float scale)
           
 
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
 

Method Detail

getTranslation

public com.jme.math.Vector3f getTranslation()

getRotation

public com.jme.math.Quaternion getRotation()

setRotation

public void setRotation(com.jme.math.Quaternion rotation)

getScale

public float getScale()
Returns:
the scale

setScale

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

getActionType

public MovableMessageResponse.ActionType getActionType()

newMoveModifiedMessage

public static MovableMessageResponse newMoveModifiedMessage(MessageID msgID,
                                                            com.jme.math.Vector3f translation,
                                                            com.jme.math.Quaternion rotation,
                                                            float scale)


Open Wonderland - http://openwonderland.org