This content has been marked as final. Show 5 replies
ah, it works if i change jump() to static
i was now wondering how to make the user interface
work with this ethod in the Game() class
private void goRoom(Command command)
// if there is no second word, we don't know where to go...
String direction = command.getSecondWord();
// Try to leave current room.
Room nextRoom = currentRoom.getExit(direction);
if (nextRoom == null)
System.out.println("There is no door!");
currentRoom = nextRoom;
i was thinking something like
private void jButton1_actionPerformed(ActionEvent e)
it doesnt seem to like that though.. :s