public void messageReceived(Client source, Message m) {

        if (m instanceof ChatMessage) {
            chatHud.addMessage((ChatMessage) m);
        } else if (m instanceof ActionMessage) {
            ActionMessage am = (ActionMessage) m;
            
            if (am.action.equals(ActionMessage.ACTION_JUMP_PLAYER)) {
                if (am.value1.equals(main.playerManager.gameData.myPlayerKey)) {
                    main.walkableState.character.jump();
                }
            }

            if (am.action.equals(ActionMessage.ACTION_RESPAWN_PLAYER)) {
                main.walkableState.respawnSelf();
                hud.updateHealthUi(100);
            }
        } else {
            System.out.println("DisplayManager: messageReceived. Couldn't recognize format.");
        }


    }