switch (link.getDirection())
{
case UP:
link.setAnimation(upAnimation);
game.getScene().addNewGObject(new Arrow(game, link.getX() + 7, link.getY()));
break;
case DOWN:
link.setAnimation(downAnimation);
game.getScene().addNewGObject(new Arrow(game, link.getX() + 7, link.getY()));
break;
case LEFT:
link.setAnimation(leftAnimation);
game.getScene().addNewGObject(new Arrow(game, link.getX(), link.getY() + 9));
break;
case RIGHT:
link.setAnimation(rightAnimation);
game.getScene().addNewGObject(new Arrow(game, link.getX(), link.getY() + 9));
break;
}
}