Added left, right, back and forward directions to all directional commands.

This commit is contained in:
TomyLobo 2011-10-25 01:07:08 +02:00
parent 2d654b59c5
commit 3ed867ed53

View File

@ -823,10 +823,23 @@ public class WorldEdit {
dir = PlayerDirection.DOWN; dir = PlayerDirection.DOWN;
break; break;
case 'm': case 'm': // me
case 'f': // forward
dir = player.getCardinalDirection(0); dir = player.getCardinalDirection(0);
break; break;
case 'b': // back
dir = player.getCardinalDirection(180);
break;
case 'l': // left
dir = player.getCardinalDirection(-90);
break;
case 'r': // right
dir = player.getCardinalDirection(90);
break;
default: default:
throw new UnknownDirectionException(dirStr); throw new UnknownDirectionException(dirStr);
} }