diff options
author | Pacien TRAN-GIRARD | 2014-02-23 22:26:57 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-02-23 22:26:57 +0100 |
commit | 590a932e53423d9b1cd92344ee0187972b8ed961 (patch) | |
tree | 09f67d30c8611fd6eef724766f9e24429f01b2d2 /src | |
parent | 3ecc5150121965e1b6f4bbf807d60d5f6694dd1f (diff) | |
download | esieequest-590a932e53423d9b1cd92344ee0187972b8ed961.tar.gz |
Remove useless printLocationInfo()
Diffstat (limited to 'src')
-rw-r--r-- | src/esieequest/Game.java | 10 |
1 files changed, 3 insertions, 7 deletions
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 { | |||
21 | */ | 21 | */ |
22 | public Game() { | 22 | public Game() { |
23 | this.createRooms(); | 23 | this.createRooms(); |
24 | this.printWelcome(); | 24 | this.aParser = new Parser(); |
25 | this.printLocationInfo(); | ||
26 | this.play(); | 25 | this.play(); |
27 | } | 26 | } |
28 | 27 | ||
@@ -30,7 +29,7 @@ public class Game { | |||
30 | * Main play routine. Loops until end of play. | 29 | * Main play routine. Loops until end of play. |
31 | */ | 30 | */ |
32 | private void play() { | 31 | private void play() { |
33 | aParser = new Parser(); | 32 | this.printWelcome(); |
34 | boolean vFinished = false; | 33 | boolean vFinished = false; |
35 | while (!vFinished) { | 34 | while (!vFinished) { |
36 | Command vCommand = this.aParser.getCommand(); | 35 | Command vCommand = this.aParser.getCommand(); |
@@ -193,10 +192,6 @@ public class Game { | |||
193 | } | 192 | } |
194 | 193 | ||
195 | this.aCurrentRoom = vNextRoom; | 194 | this.aCurrentRoom = vNextRoom; |
196 | this.printLocationInfo(); | ||
197 | } | ||
198 | |||
199 | private void printLocationInfo() { | ||
200 | System.out.println(this.aCurrentRoom.getLongDescription()); | 195 | System.out.println(this.aCurrentRoom.getLongDescription()); |
201 | } | 196 | } |
202 | 197 | ||
@@ -208,6 +203,7 @@ public class Game { | |||
208 | System.out.println("ESIEEquest is a new, incredibly surprising adventure game."); | 203 | System.out.println("ESIEEquest is a new, incredibly surprising adventure game."); |
209 | System.out.println("Type 'help' if you need help."); | 204 | System.out.println("Type 'help' if you need help."); |
210 | System.out.println(""); | 205 | System.out.println(""); |
206 | System.out.println(this.aCurrentRoom.getLongDescription()); | ||
211 | } | 207 | } |
212 | 208 | ||
213 | /** | 209 | /** |