From a29e182f45cf43132bd38d0b7cb1d955ee2c0fc8 Mon Sep 17 00:00:00 2001 From: d0tslash <brian@kearneymail.com> Date: Sat, 23 Aug 2014 21:18:00 -0700 Subject: [PATCH] roomdesc --- .../java/com/comandante/creeper/Main.java | 72 ++++++++++++++++++- 1 file changed, 70 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/comandante/creeper/Main.java b/src/main/java/com/comandante/creeper/Main.java index 3c5d36c6..47d73ddb 100644 --- a/src/main/java/com/comandante/creeper/Main.java +++ b/src/main/java/com/comandante/creeper/Main.java @@ -42,16 +42,84 @@ public class Main { RoomManager roomManager = new RoomManager(); EntityManager entityManager = new EntityManager(roomManager); GameManager gameManager = new GameManager(roomManager, playerManager, entityManager); + entityManager.addEntity(new BasicRoom( 1, - "Lobby", + "Entrance to Federation Training Encampment", + Optional.of(2), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + "You are standing before the Federation Training Encampment. A huge wall surronds the base. To the north you see a two doors leading inside. Above the doors you sits the symbol of the Federation, a single red star with five points and a raised fist in the center. Sentries along the encampment walls begin to eye you suspiciously. You then remember that malingering in front of a Federation base could prove to be a fatal mistake.\r\n")); + + entityManager.addEntity(new BasicRoom( + 2, + "Quarter Deck", + Optional.of(3), + Optional.of(1), + Optional.of(4), + Optional.of(5), + Optional.of(6), + Optional.<Integer>absent(), + "You are standing on the quarter deck of the Training Encampment. Federation flags line the walls of this large room. A statue of the Grand Marshal of the Federation sit in the back. A Private on watch is behind a desk in the center of the room. To the west you hear the sounds of gun fire. To the east a sentry stands by a door waiting to scan the credentials of anyone looking for access to the armory. A staircase leads up stairs. You get the feeling only high ranking officers are allowed on the second floor. To the north is a door leading to the training fields.\r\n")); + + entityManager.addEntity(new BasicRoom( + 3, + "Training Field", + Optional.of(7), Optional.of(2), Optional.<Integer>absent(), Optional.<Integer>absent(), Optional.<Integer>absent(), Optional.<Integer>absent(), + "You are standing on the center of a massive training field. You see a large field with a track surronding it. A main pathway connects from the Port to the north to the main Federation building. Soldiers of all ranks are going about their business here.\r\n")); + + entityManager.addEntity(new BasicRoom( + 4, + "Armory", + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.of(2), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + "You are standing in the Federation Training Encampment armory.\r\n")); + + entityManager.addEntity(new BasicRoom( + 5, + "Firing Range", Optional.<Integer>absent(), - "This is the lobby. It's pretty empty and the paint still smells fresh.\r\n")); + Optional.<Integer>absent(), + Optional.of(2), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + "You are standing in the Federation Training Encampment firing range.\r\n")); + + entityManager.addEntity(new BasicRoom( + 6, + "Marshal's Office", + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.of(2), + "You are standing in the Marshal's office.\r\n")); + + entityManager.addEntity(new BasicRoom( + 7, + "Port", + Optional.<Integer>absent(), + Optional.of(3), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + Optional.<Integer>absent(), + "You are standing in the main port of the Federation Encampment.\r\n")); + entityManager.addEntity(new Derper(gameManager, 1)); CommandService commandService = new CommandService(); DefaultCommandHandler defaultCommandHandler = new DefaultCommandHandler(gameManager, commandService); -- GitLab