From 590a932e53423d9b1cd92344ee0187972b8ed961 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 23 Feb 2014 22:26:57 +0100 Subject: Remove useless printLocationInfo() --- src/esieequest/Game.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/esieequest/Game.java b/src/esieequest/Game.java index ece1bcc..165724a 100644 --- a/src/esieequest/Game.java +++ b/src/esieequest/Game.java @@ -21,8 +21,7 @@ public class Game { */ public Game() { this.createRooms(); - this.printWelcome(); - this.printLocationInfo(); + this.aParser = new Parser(); this.play(); } @@ -30,7 +29,7 @@ public class Game { * Main play routine. Loops until end of play. */ private void play() { - aParser = new Parser(); + this.printWelcome(); boolean vFinished = false; while (!vFinished) { Command vCommand = this.aParser.getCommand(); @@ -193,10 +192,6 @@ public class Game { } this.aCurrentRoom = vNextRoom; - this.printLocationInfo(); - } - - private void printLocationInfo() { System.out.println(this.aCurrentRoom.getLongDescription()); } @@ -208,6 +203,7 @@ public class Game { System.out.println("ESIEEquest is a new, incredibly surprising adventure game."); System.out.println("Type 'help' if you need help."); System.out.println(""); + System.out.println(this.aCurrentRoom.getLongDescription()); } /** -- cgit v1.2.3