public int interpretCommand(String command, GameCharacter actor) { if (command.toLowerCase().equals("use") || command.toLowerCase().startsWith("go")) { if (actor.moveTo(target)) actor.getLastRoom().receiveMessage(actor.getName() + " goes through the " + this.getName()); else actor.receiveMessage("This door doesn't go anywhere."); return 1; } else return 0; }