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

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
              extended by org.jdesktop.wonderland.common.cell.messages.MovableAvatarMessage
All Implemented Interfaces:
java.io.Serializable

public class MovableAvatarMessage
extends MovableMessage

Author:
paulby
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.wonderland.common.cell.messages.MovableMessage
MovableMessage.ActionType
 
Constructor Summary
protected MovableAvatarMessage(CellID cellID, MovableMessage.ActionType action)
           
 
Method Summary
 java.lang.String getAnimationName()
           
 float getHeight()
           
 int getTrigger()
           
 boolean isCollision()
           
 boolean isPressed()
           
static CellMessage newMovedMessage(CellID cellID, CellTransform transform, int trigger, boolean pressed, java.lang.String animationName, float height, boolean collision)
           
static MovableAvatarMessage newMoveRequestMessage(CellID cellID, com.jme.math.Vector3f position, com.jme.math.Quaternion rotation, int trigger, boolean pressed, java.lang.String animationName, float height, boolean collision)
           
protected  void setAnimationName(java.lang.String animationName)
           
protected  void setCollision(boolean collision)
           
protected  void setHeight(float height)
           
protected  void setPressed(boolean pressed)
           
protected  void setTrigger(int trigger)
           
 
Methods inherited from class org.jdesktop.wonderland.common.cell.messages.MovableMessage
getActionType, getCellTransform, getRotation, getScale, getTranslation, newMovedMessage, newMovedMessage, newMovedMessage, newMoveRequestMessage, newMoveRequestMessage, newMoveRequestMessage, setRotation, setScale, setTranslation
 
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

MovableAvatarMessage

protected MovableAvatarMessage(CellID cellID,
                               MovableMessage.ActionType action)
Method Detail

newMoveRequestMessage

public static MovableAvatarMessage newMoveRequestMessage(CellID cellID,
                                                         com.jme.math.Vector3f position,
                                                         com.jme.math.Quaternion rotation,
                                                         int trigger,
                                                         boolean pressed,
                                                         java.lang.String animationName,
                                                         float height,
                                                         boolean collision)

newMovedMessage

public static CellMessage newMovedMessage(CellID cellID,
                                          CellTransform transform,
                                          int trigger,
                                          boolean pressed,
                                          java.lang.String animationName,
                                          float height,
                                          boolean collision)

getTrigger

public int getTrigger()
Returns:
the trigger

setTrigger

protected void setTrigger(int trigger)
Parameters:
trigger - the trigger to set

isPressed

public boolean isPressed()
Returns:
the pressed

setPressed

protected void setPressed(boolean pressed)
Parameters:
pressed - the pressed to set

setAnimationName

protected void setAnimationName(java.lang.String animationName)

getAnimationName

public java.lang.String getAnimationName()

getHeight

public float getHeight()

setHeight

protected void setHeight(float height)

isCollision

public boolean isCollision()

setCollision

protected void setCollision(boolean collision)


Open Wonderland - http://openwonderland.org