return MovableAvatarMessage.class;
}
@Override
public void moveRequest(WonderlandClientID clientID, MovableMessage msg) {
MovableAvatarMessage aMsg = (MovableAvatarMessage) msg;
CellTransform transform = msg.getCellTransform();
CellMO cell = cellRef.getForUpdate();
ChannelComponentMO channelComponent;
cell.setLocalTransform(transform);
//store trigger value
if(aMsg.getTrigger()!=-1) {
currentTrigeer = aMsg.getTrigger();
currentAnimationName = aMsg.getAnimationName();
AppContext.getDataManager().markForUpdate(this);
}
channelComponent = channelComponentRef.getForUpdate();
if (cell.isLive()) {
channelComponent.sendAll(clientID,
MovableAvatarMessage.newMovedMessage(cell.getCellID(),
transform, aMsg.getTrigger(), aMsg.isPressed(),
aMsg.getAnimationName(), aMsg.getHeight(),
aMsg.isCollision()));
}
}