Question
Using the UML, Implement a simple form of a Multi-User Domain that contains a single player. All commands will be performed at the console using
Using the UML, Implement a simple form of a Multi-User Domain that contains a single player. All commands will be performed at the console using the Scanner class and output will simply be text printed to the console. Rooms will contain items that the player will be able to get and drop. That is the extent of what will be implemented at this stage. This should be done using Java
Requirements:
1. The single player will enter direction commands to move from room to room. The command get will allow the player to pick up an item in the room. If the item is not contained in the room an appropriate message should be displayed. The command drop will allow the player to drop an item that is being carried. Again, display appropriate messages for any error conditions.
2. After each command, messages to the console should display a description of the current room, with exits, and contents of the room.
3. The command exit will terminate the execution of the program.
4. When finished, export your project as a ZIP archive and submit one copy. Your code should be fully commented and your project should contain JavaDoc documentation for all your classes.
Doors Room properties connectRoom roomName containsltem containCharacter Game use0 Characters Room Doors Controls tems Item lookAround0 returnsDirections0 checkRoomName0 itemlsUsed itemlsPickedUp itemlsDropped temLocation MOBs pickUp0 drop0 useo move0 interact(0 exit0 ame movement orientation pickUp0 drop0 useo moveo interact0 Controls playerCommands Entity getCommand0 ame location Player Character characterName characterLocation ame inventory location move0 move useo interact(Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started