Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tech.zwilliams.textrpg.main;
- //Author Email: zwilliams@zwilliams.tech
- public class Rooms {
- //[id][name][desc][directions]
- private String[][] rooms = {
- {"0", "Slaughtered Hog", "A warm taven full of boisterous patrons.", "N S E W"},
- {"1", "Royal Castle", "A large magnificent castle with intricate statues of former kings and queens.", "W"},
- {"2", "Village Farm", "A farm for the village and castle.\nIn the distance you can see animals roaming the fields.", "N"},
- {"3", "Palace Park", "A huge park with fountains and statues depicting\nthe many feats of the castles knights and rulers.", "E"},
- {"4", "Mages Tower", "An impossibly large tower that seems to touch the clouds.\nYou feel dizzy trying to look up to the top.", "N S E"},
- {"5", "River", "A massive river that feeds the towns water supply.\nIt is also known for having large fish.", "S"},
- {"6", "Mystic Garden", "A beautiful garden with plants you have never seen.\nThe mages use this garden for research and potion supplies.", "W"}
- }; //Syntax error, insert "}" to complete ClassBody
- public String getRoomById(id) { //Syntax error, insert "... VariableDeclaratorId" to complete FormalParameterList
- for(int i = 0; i < rooms.length; i++) {
- if(rooms[i][0] == id) {
- return rooms[i][1];
- }
- }
- }
- } //Syntax error on token "}", delete this token
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement