public ComponentMessageReceiverImpl(MovableComponentMO comp) {
compRef = AppContext.getDataManager().createReference(comp);
}
public void messageReceived(WonderlandClientSender sender, WonderlandClientID clientID, CellMessage message) {
MovableMessage ent = (MovableMessage) message;
// System.out.println("MovableComponentMO.messageReceived "+ent.getActionType());
switch (ent.getActionType()) {
case MOVE_REQUEST:
// TODO check permisions
compRef.getForUpdate().moveRequest(clientID, ent);