Exemplo n.º 1
0
  public static void movePlayerWest() {
    if (!xml.roomWestDescript().equals("an invisible wall")) {
      Door currentRoomDoor = currentRoom.getRoomDoor();
      if (currentRoom.containsLockedDoor()
          && currentRoomDoor.getDirection().equalsIgnoreCase("west")) {

        GameGUI.addToConsole("You run head first into a " + currentRoomDoor.getName());
      } else {
        CartesianPoint.x--;
        loadRoom();
      }
    } else
      GameGUI.addToConsole("You run head first into an invisible wall. You remain the same room.");
  }
Exemplo n.º 2
0
 public static String getWestDescript() {
   return xml.roomWestDescript();
 }