Uses of Class
com.bdtripp.hauntedhouse.model.Room
Packages that use Room
-
Uses of Room in com.bdtripp.hauntedhouse.engine
Methods in com.bdtripp.hauntedhouse.engine that return RoomModifier and TypeMethodDescriptionGameEngine.getRandomRoom()Returns a random room in the haunted houseMethods in com.bdtripp.hauntedhouse.engine with parameters of type RoomModifier and TypeMethodDescriptionGameEngine.movePlayerTo(Room nextRoom, boolean addToHistory) Moves the player to the specified room and returns details about the room -
Uses of Room in com.bdtripp.hauntedhouse.model
Methods in com.bdtripp.hauntedhouse.model that return RoomModifier and TypeMethodDescriptionPlayer.getBeamerLocation()Returns the room where the beamer was last charged.Player.getCurrentRoom()Returns the room the player is currently located in.Exit.getNeighbor()Returns the room that the exit leads to.Room.getNeighbor(Direction direction) Retrieves the neighboring room in the specified direction.Player.getPreviousRoom()Returns the previous room and removes it from the room historyGet the room that matches a nameWorld.getStartingRoom()Returns the room where the player begins the game.Methods in com.bdtripp.hauntedhouse.model that return types with arguments of type RoomModifier and TypeMethodDescriptionPlayer.getRoomHistory()Returns the stack of rooms the player has previously visited.World.getRooms()Returns all rooms that exist in the game world.Methods in com.bdtripp.hauntedhouse.model with parameters of type RoomModifier and TypeMethodDescriptionvoidPlayer.moveToRoom(Room room, boolean addToHistory) Moves the player to the specified roomvoidCreates an exit for the roomConstructors in com.bdtripp.hauntedhouse.model with parameters of type RoomModifierConstructorDescriptionCreates an exit and sets its direction, neighbor, and type.Create the game world that has a player, rooms, a starting room, key etc.Constructor parameters in com.bdtripp.hauntedhouse.model with type arguments of type Room