public void setDirection(int x, int y) { GameAnimationDirection dir = GameDefine.getDirection(gameMovement.PosX, gameMovement.PosY, x, y); gameMovement.setDirection(dir); }