This commit is contained in:
2025-02-18 13:23:39 +01:00
parent dc93484457
commit 2368d3b492
2 changed files with 43 additions and 69 deletions

View File

@@ -52,17 +52,40 @@ public class Game
wizardsRoom = new Room("in a wizards room");
// initialise room exits
marketsquare.setExits(tavern, templePyramid, null, sacrificialSite, null, null);
templePyramid.setExits(hut, null, null, marketsquare, wizardsRoom, basement);
tavern.setExits(null, hut, marketsquare, null, null, null);
sacrificialSite.setExits(null, marketsquare, null , null, null, cave);
hut.setExits(null, jungle, templePyramid, tavern, null, null);
jungle.setExits(null, null, null, hut, null, null);
secretPassage.setExits(null, basement, null, cave, null, null);
cave.setExits(null, secretPassage, beach, null, sacrificialSite, null);
beach.setExits(cave, null, null, null, null, null);
basement.setExits(null, null, null, secretPassage, templePyramid, null);
wizardsRoom.setExits(null, null, null, null, null, templePyramid);
marketsquare.setExit("north", tavern);
marketsquare.setExit("east", templePyramid);
marketsquare.setExit("west", sacrificialSite);
templePyramid.setExit("north", hut);
templePyramid.setExit("up", wizardsRoom);
templePyramid.setExit("down", basement);
templePyramid.setExit("west", marketsquare);
tavern.setExit("east", hut);
tavern.setExit("south", marketsquare);
sacrificialSite.setExit("east", marketsquare);
sacrificialSite.setExit("down", cave);
hut.setExit("east", jungle);
hut.setExit("south", templePyramid);
hut.setExit("west", tavern);
jungle.setExit("west", hut);
secretPassage.setExit("east", basement);
secretPassage.setExit("west", cave);
cave.setExit("east", secretPassage);
cave.setExit("south", beach);
cave.setExit("up", sacrificialSite);
beach.setExit("north", cave);
basement.setExit("west", secretPassage);
basement.setExit("up", templePyramid);
wizardsRoom.setExit("down", templePyramid);
currentRoom = marketsquare; // start game on marketsquare
}